Write data to port pins C1- C9
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-11-09 12:44 AM
Posted on November 09, 2012 at 09:44
Hello All,
I am programming an LCD display. I want to write some data to pins C1-C9, interfaced to LCD parallely. COuld anyone suggest me how this could be done Thanks #portc-data
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-11-09 6:01 PM
Posted on November 10, 2012 at 03:01
*((__IO uint32_t *)&GPIOC->BSRRL) = ((x & 0xFF) << 1) | ((~x & 0xFF) << (1 + 16)); // Set the 1 bits, Clear the 0 bits, QED
or GPIOC->ODR = (GPIOC->ODR & ~(0xFF << 1)) | ((x & 0xFF) << 1);
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
