Programmable led – Rainbow Electronics AT89C5131 User Manual
Page 103

103
AT89C5131
4136A–USB–03/03
Programmable LED
AT89C5131 have up to 4 programmable LED current sources, configured by the regis-
ter LEDCON.
Reset Value = 00h
Table 75. 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
LED0 Configuration
0
0
Standard C51 Port
0
1
2 mA current source when P3.7 is O
1
0
4 mA current source when P3.7 is O
1
1
10 mA current source when P3.7 is O
5:4
LED2
Port
LED0 Configuration
0
0
Standard C51 Port
0
1
2 mA current source when P3.6 is O
1
0
4 mA current source when P3.6 is O
1
1
10 mA current source when P3.6 is O
3:2
LED1
Port
LED0 Configuration
0
0
Standard C51 Port
0
1
2 mA current source when P3.5 is O
1
0
4 mA current source when P3.5 is O
1
1
10 mA current source when P3.5 is O
1:0
LED0
Port
LED0 Configuration
0
0
Standard C51 Port
0
1
2 mA current source when P3.3 is O
1
0
4 mA current source when P3.3 is O
1
1
10 mA current source when P3.3 is O