Operation; One-Shot 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 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
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 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.
φ
AD
"1"
A-D conversion
start flag
"0"
A-D register i
"1"
A-D conversion
interrupt request
"0"
Figure 2.79: Operation timing of one-shot mode
Rev.1.00 Sep 24, 2003 Page 233 of 360
Set-up
Divided-by-4 fAD/ divided-by-2
fAD/fAD
8-bit / 10-bit
One of AN
pin to AN
pin
0
7
(1) Start A-D conversion
8-bit resolution : 28 φ
AD
10-bit resolution : 33 φ
AD
Set to "1" by software
Cleared to "0" when interrupt request is accepted, or cleared by software
Item
Trigger for starting A-D
conversion
Sample & Hold
(2) A-D conversion is complete
cycles
cycles
Result
A-D Converter
Set-up
O
Software trigger
Trigger by AD
TRG
Not activated
O
Activated

Advertisement

Table of Contents
loading

Table of Contents