A-D Converter
M30240 Group
Rev.1.00 Sep 24, 2003 Page 233 of 360
2.6.2 Operation
2.6.2.1 One-shot mode
In one-shot mode, select functions from those listed in Table 2.27 . An example using the indicated
options is described below. Figure 2.79 shows the operation timing, and Figure 2.80 shows the set-up
procedure.
Table 2.27: A-D converter one-shot mode functions
Operation
(1) Setting the A-D conversion start flag to “1” causes the A-D converter to begin operating.
(2) After A-D conversion is completed, the content of the successive comparison register (conversion
result) is transmitted to A-D register i. At this time, the A-D conversion interrupt request bit goes to “1”.
Also, the A-D conversion start flag goes to “0”, and the A-D converter stops operating.
Figure 2.79: Operation timing of one-shot 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 AN
0
pin to AN
7
pin
Sample & Hold
Not activated
O Activated
A-D conversion
start flag
“1”
“0”
A-D conversion
interrupt request
A-D register i
“1”
“0”
Cleared to “0” when interrupt request is accepted, or cleared by software
Result
φAD
8-bit resolution : 28 φAD cycles
10-bit resolution : 33 φ
AD cycles
Set to “1” by software
(1) Start A-D conversion (2) A-D conversion is complete