parallel output
Posted: Thu Jan 10, 2013 3:33 pm
I need to bit bang some outputs in a parallel fashion (simultaneous changes).
After looking in this forum, I've discovered that the Armmite BASIC doesn't
support this directly but it's possible to do this using direct access to the
hardware. But after looking at the datasheet for the LPC2103, I'm still unsure
how to do this. I'm pretty sure I'll have to use pointers to get direct access
to ARM peripheral registers. I've also found that tracing the hardware reveals
that IO pin 0 is actually pin 30 on the LPC2103 which is P0.9, likewise IO1 is
pin 29 P0.8, and IO2 is pin 15 P0.30. At this point, I ran out of steam - does
anyone have sample code for parallel bit banging and a map of IO pins to P0 port
pins? A mask will be needed as some pins are input and some output.
Thanks
J
After looking in this forum, I've discovered that the Armmite BASIC doesn't
support this directly but it's possible to do this using direct access to the
hardware. But after looking at the datasheet for the LPC2103, I'm still unsure
how to do this. I'm pretty sure I'll have to use pointers to get direct access
to ARM peripheral registers. I've also found that tracing the hardware reveals
that IO pin 0 is actually pin 30 on the LPC2103 which is P0.9, likewise IO1 is
pin 29 P0.8, and IO2 is pin 15 P0.30. At this point, I ran out of steam - does
anyone have sample code for parallel bit banging and a map of IO pins to P0 port
pins? A mask will be needed as some pins are input and some output.
Thanks
J