Rainbow Electronics AT89C5122 User Manual

Page 60

Advertising
background image

60

AT8xC5122/23

4202E–SCR–06/06

Figure 29. LED Source Current

Notes:

1. When switching a low level, LEDCTRL device has a permanent current of about

N mA/15 (N is 2, 4 or 8).

2. The port must be configured as standard C51 port by means of PMOD0 and PMOD1

registers and the level of current must be programmed by means of LEDCON0 and
LEDCON1 registers before switching the led on.

Table 35. LED Source Current

LEDx.1

LEDx.0

Port Latch Data

NMOS

PIN

Comments

0

0

0

1

0

LED control disabled

0

0

1

0

1

0

1

0

0

0

LED mode 2 mA

0

1

1

0

1

1

0

0

0

0

LED mode 4 mA

1

0

1

0

1

1

1

0

0

0

LED mode 10 mA

1

1

1

0

1

Pin

Port Latch

Data

LEDx.0

LEDx.1

NMOS

N

N

LEDCTRL

Advertising