Repeat 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.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
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 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.
φAD
"1"
A-D conversion
start flag
"0"
A-D register i
A-D conversion
Stop
Figure 2.83: Operation timing in repeat mode
Rev.1.00 Sep 24, 2003 Page 237 of 360
Set-up
Divided-by-4 fAD/ divided-by-2
fAD/fAD
8-bit / 10-bit
One of AN0 pin to AN7 pin
(1) Start A-D conversion
8-bit resolution : 28
φAD
cycles
10-bit resolution : 33
φAD
cycles
Set to "1" by software
Convert
Item
O
Trigger for starting A-D
conversion
Sample & Hold
O
(2) Conversion result is transferred to the A-D register
8-bit resolution : 28
φAD
cycles
10-bit resolution : 33
φAD
cycles
Cleared to "0" by software
Result
Convert
A-D Converter
Set-up
Software trigger
Trigger by AD
TRG
Not activated
Activated
(3) A-D conversion
is complete
Result
Convert
Stop

Advertisement

Table of Contents
loading

Table of Contents