beautypg.com

8 programming example of i/o port, Programming example of i/o port – FUJITSU F2MC-8L F202RA User Manual

Page 129

background image

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

P

3

0

P

3

6

P

3

7

.

.

.

P00

MB

8

9202/V201/F202/F202RA

This manual is related to the following products: