5 years, 4 months ago.

Digital I/O ports

I am porting an application from a '51 architecture controller to Arm (probably NXP 8xx series), but I guess that the question would apply to any Arm device. How can I implement a 8-bit parallel I/O port. It will actually be used to switch the segments of a 7-segment LED.

1 Answer

5 years, 4 months ago.

All devices are different of course (no generic ARM way to do it, only the CPU is equal for all, at least on gate level, on hardware also different). Within mbed you can use BusOut (easiest, not fastest, but tbh 7-segment isn't that fast required), or PortOut (you need to nicely use pins belonging to a single port, and often on demo boards they are in completely random order).

Accepted Answer