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
.
Содержание LAPIS SEMICONDUCTOR ML620Q503
Страница 2: ...ML620Q503 Q504 User s Manual Issue Date Apr 16 2015 FEUL620Q504 01...
Страница 18: ...Chapter 1 Overview...
Страница 32: ...Chapter 2 CPU and Memory Space...
Страница 44: ...Chapter 3 Reset Function...
Страница 50: ...Chapter 4 Power Management...
Страница 70: ...Chapter 5 Interrupts...
Страница 134: ...Chapter 6 Clock Generation Circuit...
Страница 161: ...Chapter 7 Time Base Counter...
Страница 170: ...Chapter 8 Timers...
Страница 183: ...Chapter 9 Function Timer FTM...
Страница 231: ...Chapter 10 Watchdog Timer...
Страница 239: ...Chapter 11 Synchronous Serial Port SSIO...
Страница 251: ...Chapter 12 Synchronous Serial Port with FIFO SSIOF...
Страница 283: ...Chapter 13 UART...
Страница 303: ...Chapter 14 UART with FIFO UARTF...
Страница 327: ...Chapter 15 I2 C Bus Interface...
Страница 344: ...Chapter 16 Port XT...
Страница 350: ...Chapter 17 Port 0...
Страница 361: ...Chapter 18 Port 1...
Страница 368: ...Chapter 19 Port2...
Страница 379: ...Chapter 20 Port 3...
Страница 395: ...Chapter 21 Port 4...
Страница 410: ...Chapter 22 Port 5...
Страница 426: ...Chapter 23 Melody Driver...
Страница 439: ...Chapter 24 RC Oscillation type A D Converter RC ADC...
Страница 462: ...Chapter 25 Successive Approximation Type A D Converter SA ADC...
Страница 479: ...Chapter 26 Analog Comparator...
Страница 489: ...Chapter 27 Flash Memory Control...
Страница 505: ...Chapter 28 Voltage Level Supervisor VLS...
Страница 517: ...Chapter 29 LLD circuit...
Страница 519: ...Chapter 30 On Chip Debug Function...
Страница 522: ...Appendixes...
Страница 552: ...Revision History...