![LAPIS Semiconductor ML610472 User Manual Download Page 213](http://html1.mh-extra.com/html/lapis-semiconductor/ml610472/ml610472_user-manual_3645865213.webp)
ML610471/472/473/Q471/Q472/Q473 User's Manual
Chapter 17 RC Oscillation Type A/D Converter
17-8
17.3 Description of Operation
Counter A (RADCA0 and RADCA1) is a 16-bit binary counter for counting the base clock (BSCLK), which is used as
the standard of time. Counter A can count up to 0FFFFH.
Counter B (RADCB0 to RADCB1) is a 16-bit binary counter for counting the oscillator clock (RCCLK) of the RC
oscillator circuits. Counter B can count up to 0FFFFH.
Counters A and B are provided with overflow flags (OVFA and OVFB, respectively). Each overflow output results in
generation of an RC-ADC interrupt request signal (RADINT). Use the RADI bit of the RC-ADC mode register
(RADMOD) to select whether to generate an overflow interrupt by an overflow on Counter A or Counter B: setting
RADI to “0” specifies Counter A overflow and setting it to “1” specifies Counter B overflow.
The RARUN bit of the RC-ADC control register (RADCON) is used to start or stop RC-ADC conversion operation.
When RARUN is set to “0”, the oscillator circuits stop, so that counting will not be performed. When RARUN is set to
“1”, RC oscillation starts, when the RC oscillator clock (RCCLK) and the base clock (BSCLK) start counting through
Counter B and Counter A.
The RC oscillation section has a total of three types of oscillation modes based on the oscillator circuits of RCOSC1, and
mode selection is made by the RC-ADC mode register (RADMOD).
P44–47, and P35 must be configured as their secondary function input or output when using 1) the RC oscillator circuit
RCOSC1, and 2) the RC monitor pin (RCM) that outputs RC oscillation waveforms, respectively. For the RC oscillator
circuit configuration, see "17.1.2 Configuration." For the secondary functions of Port 3, see Chapter 14, “Port 3.” For
the secondary functions of Port 4, see Chapter 15, “Port 4.”
17.3.1 RC Oscillator Circuits
RC-ADC performs A/D conversion by converting the oscillation frequency ratio between a reference resistor (or
capacitor) and a resistive sensor (or capacitive sensor) such as a thermistor to digital data.
By making RC oscillation occur both on the reference side and on the sensor side with the reference capacitor the error
factor that the RS oscillator circuit itself is eliminated, thereby making it possible to perform the A/D conversion of the
characteristics of the sensor itself.
Also, by calculating the ratio between the oscillation frequency on the reference side and that on the sensor side and then
calculating the correlation between the calculated ratio and temperatures that the sensor characteristics have in advance,
a temperature can be obtained based on that calculated ratio.
Table 17-1 lists the three types of oscillation modes, one of which is selected by the RC-ADC mode register
(RADMOD) OM3–0 bits.
Table 17-1 Oscillation Modes from Which Selection Is Made by OM3–0 Bits
RADMOD
RCOSC1 output
pin
Mode
No.
OM3 OM2
OM1 OM0 RS1
RT1
CS1
Mode
0 0 0
0
0 Z
Z
Z
(Prohibited)
1 0 0
0
1 Z
Z
Z
(Prohibited)
2 0 0 1 0 Z
Z
Z
(Prohibited)
3 0 0 1 1 Z
Z
Z
(Prohibited)
4 0 1 0 0 Z
Z
Z
(Prohibited)
5 0 1 0
1 1/0
Z
0/1
RS1–CS1
oscillation
6 0 1 1
0 Z
1/0
0/1
RT1–CS1
oscillation
RCOSC1
oscillation mode
7 0 1 1
1 Z
Z
Z
IN1 external clock input mode
8 1 *
*
*
Z
Z
Z
(Prohibited)
Note)
*
Z
1/0, 0/1
(Prohibited)
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...