
ML610Q421/ML610Q422/ML610421 User’s Manual
Chapter 24 RC Oscillation Type A/D Converter
24 – 12
Counter A starts counting of the base clock (BSCLK) when RARUN is set to “1” and the RCON signal (signal
synchronized with the fall of the base clock) is set to “1”. When Counter A overflows, the RARUN bit is
automatically reset to “0” (
) and counting is terminated. At the same time, an RC-ADC interrupt request (RADIN)
occurs (
).
When the RCON signal is set to “1”, the RC oscillator circuit starts operation and Counter B starts counting of the RC
oscillator clock (RCCLK). When the RARUN bit is reset to “0” due to overflow of Counter A, RC oscillation stops
and Counter B stops counting.
The final count value “nB0” of Counter B is the RCCLK count value during the gate time “nA0
t
BSCLK
” and is
expressed by the following expression:
nB0
≅
nA0•
t
BSCLK
∝
f
RCCLK
t
RCCLK
where t
BSCLK
indicates the BSCLK period and t
RCCLK
the RCCLK period. That is, “nB0” is a value proportional to the
RC oscillation frequency f
RCCLK
.
(1000000H – nA0)
(+1)
(+2)
(+3)
0FFFFFCH
000000H
t
BSCLK
Overflow
Gate time
nA0·t
BSCLK
000000H
000001H 000002H
nB0 – 2
nB0 – 1
nB0
nB0·t
RCCLK
(Interrupt request)
t
RCCLK
RARUN
BSCLK
RCON
Counter A
CR oscillator circuit
Input waveform
IN0/IN1
RCCLK
Counter B
RADINT
nA0: Reference count value
nB0: Measurement count value
0FFFFFDH 0FFFFFEH 0FFFFFFH
Figure 24-6 Operation Timing in Counter A Reference Mode
Summary of Contents for ML610421
Page 1: ...ML610Q421 ML610Q422 ML610421 User s Manual Issue Date Feb 9 2015 FEUL610Q421 06...
Page 15: ...Chapter 1 Overview...
Page 44: ...Chapter 2 CPU and Memory Space...
Page 49: ...Chapter 3 Reset Function...
Page 53: ...Chapter 4 MCU Control Function...
Page 69: ...Chapter 5 Interrupts INTs...
Page 93: ...Chapter 6 Clock Generation Circuit...
Page 110: ...Chapter 7 Time Base Counter...
Page 121: ...Chapter 8 Capture...
Page 129: ...Chapter 9 1 kHz Timer 1kHzTM...
Page 135: ...Chapter 10 Timers...
Page 160: ...Chapter 11 PWM...
Page 172: ...Chapter 12 Watchdog Timer...
Page 180: ...Chapter 13 Synchronous Serial Port...
Page 195: ...Chapter 14 UART...
Page 216: ...Chapter 15 I2 C Bus Interface...
Page 231: ...Chapter 16 NMI Pin...
Page 237: ...Chapter 17 Port 0...
Page 246: ...Chapter 18 Port 1...
Page 252: ...Chapter 19 Port 2...
Page 259: ...Chapter 20 Port 3...
Page 270: ...Chapter 21 Port 4...
Page 282: ...Chapter 22 Port A...
Page 290: ...Chapter 23 Melody Driver...
Page 304: ...Chapter 24 RC Oscillation Type A D Converter...
Page 327: ...Chapter 25 Successive Approximation Type A D Converter...
Page 338: ...Chapter 26 LCD Drivers...
Page 371: ...Chapter 27 Battery Level Detector...
Page 378: ...Chapter 28 Power Supply Circuit...
Page 381: ...Chapter 29 On Chip Debug Function...
Page 384: ...Appendixes...
Page 435: ...Revision History...