ML620Q503/Q504 User's Manual
Chapter 24 RC Oscillation Type A/D Converter
FEUL620Q504 24-14
24.3.2 Counter A/B Reference Modes
There are the following two modes of RC-ADC conversion operation:
•
Counter A reference mode (RADMOD RADI = “0”)
In this mode, a gate time is determined by Counter A and the base clock (BSCLK), which is used as the time
reference, then the RC oscillator clock (RCCLK) is counted by Counter B within the gate time to make the
content of Counter B the A/D conversion value.
The A/D conversion value is proportional to RC oscillation frequency.
•
Counter B reference mode (RADMOD RADI = “1”)
In this mode, a gate time is determined by Counter B and the RC oscillator clock (RCCLK), and the base
clock (BSCLK), which is used as the time reference, is counted by Counter A within the gate time to make the
content of Counter A the A/D conversion value.
The A/D conversion value is inverse proportional to RC oscillation frequency.
(1)
Operation in Counter A reference mode
Figure 25-6 shows the operation timing in Counter A reference mode.
Following is an example of operation procedure in Counter A reference mode:
Preset to Counter A (RADCA0 and RADCA1) the value obtained by subtracting the count value “nA0”
from the maximum value + 1 (1000000H). The product of the count value “nA0” and the BSCLK clock
cycle indicates the gate time.
k
Preset “000000H” in Counter B (RADCB0 and RADCB1).
l
Set the OM3–OM0 bits of RADMOD to desired oscillation mode. (See Table 24-1)
Set the RADI bit of RADMOD to “0” to specify generating of an interrupt request signal by Counter A
overflow.
n
Set the RARUN bit of RADCON to “1” to start A/D conversion.
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
(RADINT) 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 x t
BSCLK
” and is
expressed by the following expression:
nB0
≅
nA0•
t
BSCLK
∝
f
RCCLK
t
RCCLK
The 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
RSCLK
.
Summary of Contents for LAPIS SEMICONDUCTOR ML620Q503
Page 2: ...ML620Q503 Q504 User s Manual Issue Date Apr 16 2015 FEUL620Q504 01...
Page 18: ...Chapter 1 Overview...
Page 32: ...Chapter 2 CPU and Memory Space...
Page 44: ...Chapter 3 Reset Function...
Page 50: ...Chapter 4 Power Management...
Page 70: ...Chapter 5 Interrupts...
Page 134: ...Chapter 6 Clock Generation Circuit...
Page 161: ...Chapter 7 Time Base Counter...
Page 170: ...Chapter 8 Timers...
Page 183: ...Chapter 9 Function Timer FTM...
Page 231: ...Chapter 10 Watchdog Timer...
Page 239: ...Chapter 11 Synchronous Serial Port SSIO...
Page 251: ...Chapter 12 Synchronous Serial Port with FIFO SSIOF...
Page 283: ...Chapter 13 UART...
Page 303: ...Chapter 14 UART with FIFO UARTF...
Page 327: ...Chapter 15 I2 C Bus Interface...
Page 344: ...Chapter 16 Port XT...
Page 350: ...Chapter 17 Port 0...
Page 361: ...Chapter 18 Port 1...
Page 368: ...Chapter 19 Port2...
Page 379: ...Chapter 20 Port 3...
Page 395: ...Chapter 21 Port 4...
Page 410: ...Chapter 22 Port 5...
Page 426: ...Chapter 23 Melody Driver...
Page 439: ...Chapter 24 RC Oscillation type A D Converter RC ADC...
Page 462: ...Chapter 25 Successive Approximation Type A D Converter SA ADC...
Page 479: ...Chapter 26 Analog Comparator...
Page 489: ...Chapter 27 Flash Memory Control...
Page 505: ...Chapter 28 Voltage Level Supervisor VLS...
Page 517: ...Chapter 29 LLD circuit...
Page 519: ...Chapter 30 On Chip Debug Function...
Page 522: ...Appendixes...
Page 552: ...Revision History...