![LAPIS Semiconductor ML610472 User Manual Download Page 223](http://html1.mh-extra.com/html/lapis-semiconductor/ml610472/ml610472_user-manual_3645865223.webp)
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.
Summary of Contents for ML610472
Page 12: ...Chapter 1 Overview...
Page 38: ...Chapter 2 CPU and Memory Space...
Page 44: ...Chapter 3 Reset Function...
Page 48: ...Chapter 4 MCU Control Function...
Page 62: ...Chapter 5 Interrupts...
Page 82: ...Chapter 6 Clock Generation Circuit...
Page 94: ...Chapter 7 Time Base Counter...
Page 105: ...Chapter 8 Capture...
Page 114: ...Chapter 9 Timer...
Page 133: ...Chapter 10 Watchdog Timer...
Page 141: ...Chapter 11 UART...
Page 164: ...Chapter 12 Port 0...
Page 173: ...Chapter 13 Port 2...
Page 180: ...Chapter 14 Port 3...
Page 188: ...Chapter 15 Port 4...
Page 199: ...Chapter 16 Port 6...
Page 205: ...Chapter 17 RC Oscillation Type A D Converter...
Page 225: ...Chapter 18 LCD Drivers...
Page 243: ...Chapter 19 Power Supply Circuit...
Page 245: ...Chapter 20 uEASE Flash Writer System...
Page 249: ...Chapter 21 Software Development...
Page 258: ...Appendixes...
Page 280: ...Revision History...