Repeat-Sweep Mode 0 - 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.5 Repeat-sweep mode 0

In repeat-sweep 0 mode, select functions from those listed in Table 2.31 . An example using the
indicated options is described below. Figure 2.87 shows the timing chart, and Figure 2.88 shows the set-
up procedure.
Table 2.31:
A-D converter in repeat-sweep mode 0 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 the voltage input to the AN
cessive comparison register (conversion result) is transmitted to A-D register 0.
(3) The A-D converter converts all pins selected by the user. The conversion result is transmitted to
A-D register i corresponding to each pin every time A-D conversion on the pin is completed. The A-D
conversion interrupt request bit does not go to "1".
(4) The A-D converter continues operating until the A-D conversion start flag is set to "0" by software.
(1) Start A-D conversion
8-bit resolution : 28
10-bit resolution : 33
φAD
Set to "1" by software.
A-D
"1"
conversion
start flag
"0"
A-D register 0
A-D register 1
A-D register i
Figure 2.87: Operation timing of repeat sweep mode 0
Rev.1.00 Sep 24, 2003 Page 241 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
0
to AN
(4 pins) / AN
to AN
(6
3
0
5
pins) / AN
to AN
(8 pins)
0
7
pin.
0
(2) AN1 conversion begins after AN0
conversion is complete
φAD
cycles
8-bit resolution : 28
φAD
cycles
10-bit resolution : 33
Result
Item
O
Trigger for starting A-D
conversion
Sample & Hold
O
pin is completed, the content of the suc-
0
(3) Consecutive conversion
cycles
φAD
φAD
cycles
Result
A-D Converter
Set-up
Software trigger
Trigger by AD
TRG
Not activated
Activated
(4)
A-D conversion
is complete
Cleared to "0" by software
Result

Advertisement

Table of Contents
loading

Table of Contents