Operation Of A/D Converter (One-Shot Mode) - Renesas M16C Series User Manual

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

Advertisement

M30245 Group

2.9.2 Operation of A/D converter (one-shot mode)

In one-shot mode, choose functions from those listed in Table 2.9.2. Operations of the circled items are
described below. Figure 2.9.4 shows the operation timing, and Figure 2.9.5 shows the set-up procedure.
www.DataSheet4U.com
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 (con-
φ
A D
A / D c o n v e r s i o n
s t a r t f l a g
A D r e g i s t e r i
A/D conversion
interrupt request
N o t e : W h e n φ
Figure 2.9.4. Operation timing of one-shot mode
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Table 2.9.2. Choosed functions
Item
Operation clock
Divided-by-4 f
φ
O
AD
by-3 f
Resolution
O
8-bit / 10-bit
Analog input pin
O
One of AN
Trigger for starting
O
Software trigger
A/D conversion
Trigger by AD
Sample & Hold
Not activated
O
Activated
version result) is transmitted to AD register i. At this time, the A/D conversion interrupt re-
quest bit goes to "1". Also, the A/D conversion start flag goes to "0", and the A/D converter
stops operating.
(1) Start A/D conversion
Set to "1" by software
"1"
"0"
"1"
"0"
C l e a r e d t o " 0 " w h e n i n t e r r u p t r e q u e s t i s a c c e p t e d , o r c l e a r e d b y s o f t w a r e
f r e q u e n c y i s l e s s t h a n 1 M H
A D
C o n v e r s i o n r a t e p e r a n a l o g i n p u t p i n i s 4 9 φ
page 218 of 354
Set-up
/ divided-
AD
/ divided-by-2 f
/ f
AD
AD
AD
pin to AN
pin
0
7
TRG
8-bit resolution : 28 φ
cycles
AD
10-bit resolution : 33 φ
cycles
AD
, s a m p l e a n d h o l d f u n c t i o n c a n n o t b e s e l e c t e d .
Z
c y c l e s f o r 8 - b i t r e s o l u t i o n a n d 5 9 φ
A D
2. A/D Converter
( 2 ) A / D c o n v e r s i o n i s c o m p l e t e
R e s u l t
c y c l e s f o r 1 0 - b i t r e s o l u t i o n .
A D

Advertisement

Table of Contents
loading

Table of Contents