Use I/O pins as an 8 bit wide port | Cypress Semiconductor
Use I/O pins as an 8 bit wide port
I'm migrating a design from the EZ-USB FX2LP microcontroller to the EZ-USB-FX3. Previously, I used the I/O pins to control a slow peripheral (2 x 16 character LCD panel with an 8 bit data bus).
This used to be easy - I just wrote the value I wanted on the LCD data bus to one of the I/O port registers (e.g. IOC = 0x42) and then used a couple of other I/O lines to clock the data in.
This all worked fine and I wanted to do the same with the new device. Unfortunately, the I/O lines in the EZ-USB-FX3 are not grouped into separate 8 bit ports - they are all treated individually.
Can anyone tell me how I would write a single 8 bit byte to 8 of the I/O lines without having to write each bit individually? I'm just looking for a simple solution to this (I'd prefer not to have to do this through GPIF II as this seems like a lot of work just to set 8 I/O pins at the same time).
Thanks in advance