Quickest way to set multiple port pins
Hi,
I am trying to connect to a 16 bit parallel display interface. To write new data, I have to use pins on five different ports (GPIOs A, B, C, D, E). Right now I am setting these pins like this:
PORT_D15->BSRR = (PIN_D15 << 16) | (((data >> 15) & 0x01) * PIN_D15) ;repeat for all other 15 pins.
This is causing the display to update slowly, you can see the screen 'rolling in' from the top.
On a previous controller all pins were in one port, and one access to
PORT_DISPLAY->ODRwas enough to set all pins.
Is there a quicker way to set all those port pins?
