A-D Converter
M30240 Group
Rev.1.00 Sep 24, 2003 Page 237 of 360
2.6.2.3 Repeat mode
In repeat mode, select functions from those listed in Table 2.29 . An example using the indicated options
is described below. Figure 2.83 shows the timing chart, and Figure 2.84 shows the set-up procedure.
Table 2.29: A-D converter in repeat mode functions
Operation
(1) Setting the A-D conversion start flag to “1” causes the A-D converter to start operating.
(2) After the first conversion is completed, the content of the successive comparison register (conver-
sion result) is transmitted to A-D register i. The A-D conversion interrupt request bit does not go to “1”.
(3) The A-D converter continues operating until the A-D conversion start flag is set to “0” by software.
The conversion result is transmitted to A-D register i every time a conversion is completed.
Figure 2.83: Operation timing in repeat mode
Item
Set-up Item Set-up
Operation clock ΦAD O
Divided-by-4 fAD/ divided-by-2
fAD/fAD
Trigger for starting A-D
conversion
O Software trigger
Resolution O 8-bit / 10-bit Trigger by AD
TRG
Analog input pin O One of AN0 pin to AN7 pin Sample & Hold
Not activated
O Activated
A-D conversion
start flag
“1”
“0”
A-D register i
Result
Set to “1” by software
φAD
8-bit resolution : 28 φAD cycles
10-bit resolution : 33
φAD cycles
(1) Start A-D conversion (2) Conversion result is transferred to the A-D register
(3) A-D conversion
is complete
Cleared to “0” by software
A-D conversion
Result
Stop Convert Convert
Convert
Stop
8-bit resolution : 28 φAD cycles
10-bit resolution : 33
φAD cycles