
ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 17 RC Oscillation Type A/D Converter
17-18
17.4 Specifying Port Registers
To enable the RC-ADC function, the applicable bit of each related port register needs to be set. See Chapter 14, “Port 3”
and Chapter 15, “Port 4” for detail about the port registers.
17.4.1 Functioning P47(RT1), P46(RS1), P45(CS1) and P44(IN1) as the RC-ADC(Ch1)
Set P47MD1-P44MD1 bits(bit7-bit4 of P4MOD1 register) to “0” and set P47MD0-P44MD0(bit7-bit4 of P4MOD0
register) to “1”, for specifying the RC-ADC as the secondary function of P47, P46, P45 and P44.
Register
name
P4MOD1 register (Address: 0F225H)
Bit
7 6 5 4
3 2 1 0
Bit name
P47MD1 P46MD1 P45MD1
P44MD1
P43MD1
- -
-
Setting
value
0
0
0
0
* - - -
Register
name
P4MOD0 register (Address: 0F224H)
Bit
7
6
5 4
3
2
1
0
Bit name
P47MD0
P46MD0
P45MD0
P44MD0
P43MD0
-
-
-
Setting
value
1
1
1
1
* - -
-
Set the P47C1 to P44C1 bits (P4CON1 register bits 7 to 4) to “0”, the P47C0 to P44C0 bits (P4CON0 register bits 7 to
4) to “0”, and the P47DIR to P44DIR bits (P4DIR register bits 7 to 4) to “1” for selecting the state mode of the P47, P46,
P45, and P44 to high-impedance input. The P47C1-P44C1 bit and P47C0-P44C0 bit can be set to all “1” instead of all
“0” to select the high-impedance inputs.
Register
name
P4CON1 register (Address: 0F223H)
Bit
7 6 5 4
3 2 1 0
Bit name
P47C1 P46C1 P45C1 P44C1
P43C1 -
-
-
Setting
value
0 0 0 0
* - - -
Register
name
P4CON0 register (Address: 0F222H)
Bit
7
6
5
4
3 2 1
0
Bit name
P47C0
P46C0
P45C0
P44C0
P43C0 -
-
-
Setting
value
0
0
0
0
* - -
-
Register
name
P4DIR register (Address: 0F221H)
Bit
7 6 5 4
3 2 1 0
Bit name
P47DIR P46DIR P45DIR
P44DIR
P43DIR
- - -
Setting
value
1 1 1 1
* - -
-
Data of P47D-P44D bits (bit7-4 of P4D register) do not affect to the RC-ADC function, so don’t care the data for the
function.
Содержание ML610471
Страница 12: ...Chapter 1 Overview...
Страница 38: ...Chapter 2 CPU and Memory Space...
Страница 44: ...Chapter 3 Reset Function...
Страница 48: ...Chapter 4 MCU Control Function...
Страница 62: ...Chapter 5 Interrupts...
Страница 82: ...Chapter 6 Clock Generation Circuit...
Страница 94: ...Chapter 7 Time Base Counter...
Страница 105: ...Chapter 8 Capture...
Страница 114: ...Chapter 9 Timer...
Страница 133: ...Chapter 10 Watchdog Timer...
Страница 141: ...Chapter 11 UART...
Страница 164: ...Chapter 12 Port 0...
Страница 173: ...Chapter 13 Port 2...
Страница 180: ...Chapter 14 Port 3...
Страница 188: ...Chapter 15 Port 4...
Страница 199: ...Chapter 16 Port 6...
Страница 205: ...Chapter 17 RC Oscillation Type A D Converter...
Страница 225: ...Chapter 18 LCD Drivers...
Страница 243: ...Chapter 19 Power Supply Circuit...
Страница 245: ...Chapter 20 uEASE Flash Writer System...
Страница 249: ...Chapter 21 Software Development...
Страница 258: ...Appendixes...
Страница 280: ...Revision History...