Using FIO0PIN1 in LPC2103

First I’ve been successful in toggleing the IO pins using IOSET and

IOCLR so I know my dev board is working ok.

I’ve connected a LCD to P8 to P15 so I need to write a byte to these port.

In the LPC2103 User manual it says I can write to the port by using the

fast GPIO register like

FIO0PIN1 = 0xA5;

but this doesn’t work. I don’t see any changes on the port.

How do I use the Fast GPIO command so I can write a byte to the port?

Did you set the SCS register accordingly for fast GPIO? The legacy registers (IOSET, IOCLR, etc.) are enabled and the fast GPIO registers are disabled by default.

Yes, you are right.

Got it working now. :smiley:

Many thanks.