2012-11-09 12:44 AM
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-data2012-11-09 06:01 PM
*((__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);