www
.mcu.com.cn
160
/
239
Rev.
1.00
CMS80F731x Reference Manual
19.4.12
P04-P07 Drive Current Control
Register
LEDSDRP0H
F711H
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
LEDSDRP0H
--
--
--
--
DRC3
DRC2
DRC1
DRC0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset value
0
0
0
0
1
1
1
1
Bit7~Bit4
--
Reserved, must be 0.
Bit3~Bit0
DRC<3:0>:
Pull current drive select control position (control P04/P05/P06/P07
four ports);
0000=
0mA;
1000=
21.6mA;
0001=
2.7mA;
1001=
24.3mA;
0010=
5.4mA;
1010=
27.0mA;
0011=
8.1mA;
1011=
29.7mA;
0100=
10.9mA;
1100=
32.4mA;
0101=
13.5mA;
1101=
35.1mA;
0110=
16.2mA;
1110=
37.8mA;
0111=
18.9mA;
1111=
40.5mA.
19.4.13
LED Pin Drive Enable Low 8-bit LEDENL
F75EH
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
LEDENL
LEDENL7
LEDENL6
LEDENL5
LEDENL4
LEDENL3
LEDENL2
LEDENL1
LEDENL0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset value
0
0
0
0
0
0
0
0
Bit7
LEDENL7:
(LEDMODE==0xAA) dot matrix drive mode LED7 (P07) pin function and drive enable bit;
1= Led7 pins of the dot matrix drive function enable;
The pull current drive of the LED7 pins is configured by
the LEDSDRP0H
register.
0= The dot matrix drive function of the LED7 pins is Disabled as a GPIO function;
The current drive of the LED7 pin is the default
.
(LEDMODE!=0xAA) Matrix drive mode SEG7 (P13) / software drive P13 pin current drive
enable bit;
1= The pull current drive of the P13 pin is configured by
the LEDSDRP1L register;
0= The pull current drive of the P13 pin is the default.
Bit6
LEDENL6:
(LEDMODE==0xAA) dot matrix drive mode LED6 (P06) pin function and current drive
enable bit;
1= Led6 pins are enabled by dot matrix drive function;
The pull current drive at the LED6 pins is configured by
the LEDSDRP0H
register.
0= The dot matrix drive function of the LED6 pins is Disabled as a GPIO function;
The pull current drive of the LED6 pin is the default
value.
(LEDMODE!=0xAA) Matrix drive mode SEG6 (P12) / software drive P12 pin current drive
enable bit;
1= The pull current drive of the P12 pin is configured by
the LEDSDRP1L register;
0= The pull current drive of the P12 pin is the default value.
Bit5
LEDENL5:
(LEDMODE==0xAA) dot matrix drive mode LED5 (P05) pin function and current drive
enable bit;
1= Led5 pins of the dot matrix drive function enable;
The pull current drive at the LED5 pins is configured by
the LEDSDRP0H
register.
0= The dot matrix drive function of the LED5 pins is Disabled as a GPIO function;