Datasheet
92
4337K–USB–04/08
AT89C5130A/31A-M
18. Programmable LED
AT89C5130A/31A-M have up to 4 programmable LED current sources, configured by the regis-
ter LEDCON.
Reset Value = 00h
Table 18-1. LEDCON Register
LEDCON (S:F1h) LED Control Register
7 6 5 4 3 2 1 0
LED3 LED2 LED1 LED0
Bit Number
Bit
Mnemonic Description
7:6 LED3
Port LED3 Configuration
0 0 Standard C51 Port
0 1 2 mA current source when P3.7 is low
1 0 4 mA current source when P3.7 is low
1 1 10 mA current source when P3.7 is low
5:4 LED2
Port /LED2 Configuration
0 0 Standard C51 Port
0 1 2 mA current source when P3.6 is low
1 0 4 mA current source when P3.6 is low
1 1 10 mA current source when P3.6 is low
3:2 LED1
Port/ LED1 Configuration
0 0 Standard C51 Port
0 1 2 mA current source when P3.5 is low
1 0 4 mA current source when P3.5 is low
1 1 10 mA current source when P3.5 is low
1:0 LED0
Port/ LED0 Configuration
0 0 Standard C51 Port
0 1 2 mA current source when P3.3 is low
1 0 4 mA current source when P3.3 is low
1 1 10 mA current source when P3.3 is low