Single-Sweep Mode - Renesas M16C Series User Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30240 Group

2.6.2.4 Single-sweep mode

In single-sweep mode, select functions from those listed in Table 2.30 . An example using the indicated
options is described below. Figure 2.85 shows the timing chart, and Figure 2.86 shows the set-up
procedure.
Table 2.30:
A-D converter in single-sweep mode functions
Item
Operation clock AD
O
Resolution
O
Analog input pin
O
Operation
(1) Setting the A-D conversion start flag to "1" causes the A-D converter to start the conversion on the
voltage input to the AN
(2) After the A-D conversion of voltage input to the AN
comparison register (conversion result) is transmitted to A-D register 0. The A-D converter converts
all analog input pins selected by the user. The conversion result is transmitted to A-D register i corre-
sponding to each pin, every time conversion on one pin is completed.
(3) When the A-D conversion on all the analog input pins selected is completed, the A-D conversion
interrupt request bit goes to "1". At this time, the A-D conversion start flag goes to "0". The A-D con-
verter stops operating.
(1) Start A-D conversion
8-bit resolution : 28
10-bit resolution : 33
φAD
A-D conversion
"1"
start flag
"0"
A-D register 0
A-D register 1
A-D register i
A-D conversion
"1"
interrupt request
"0"
bit
Figure 2.85: Operation timing of single sweep mode
Rev.1.00 Sep 24, 2003 Page 239 of 360
Set-up
Divided-by-4 fAD/ divided-by-2
fAD/fAD
8-bit / 10-bit
AN
pin and AN
(2 pins) / AN
0
1
to AN
(4 pins) / AN
to AN
3
0
5
pins) / AN
to AN
(8 pins)
0
7
pin.
0
(2)
After A-D conversion on AN
A-D converter begins converting all pins selected
8-bit resolution : 28
φAD
cycles
10-bit resolution : 33
φAD
cycles
Set to "1" by software
Result
Item
Trigger for starting A-D
conversion
0
(6
Sample & Hold
pin is completed, the content of the successive
0
pin is complete,
0
φAD
cycles
φAD
cycles
Result
Cleared to "0" when interrupt request is accepted, or cleared by software
A-D Converter
Set-up
O
Software trigger
Trigger by AD
TRG
Not activated
O
Activated
(3)
A-D conversion
is complete
Result

Advertisement

Table of Contents
loading

Table of Contents