113
CHAPTER 4 I/O PORTS
4.8 Programming Example of I/O Port

This section provides an example of programming with I/O ports.

I/O Port Programming Example
Processing specification
Ports 0 and 3 are used to light all seven segments of LED (eight segments if the decimal point is included).
Pin P00 is connected to the anode common pin of LED and pins P30 to P37 are connected to the pins of the
segments.
Figure 4.8-1 provides an example of the pins and the 8-segment LED connected.
Figure 4.8-1 Example of the Pins and the 8-segment LED Connected
P30
P36
P37
.
.
.
P00
MB89202/V201/F202/F202RA