Renesas M16C Series User Manual page 236

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

Advertisement

M30245 Group
S e l e c t i n g S a m p l e a n d h o l d
b7
S e t t i n g A D c o n t r o l r e g i s t e r 0 a n d A D c o n t r o l r e g i s t e r 1
b 7
www.DataSheet4U.com
Note 1 : Rewrite to analog input pin select bit after changing A/D operation mode.
Note 2 : When f(X
Setting A/D conversion start flag
b7
Repeatedly carries out A/D conversion on pins
selected through the A/D sweep pin select bit.
T r a n s m i t t i n g c o n v e r s i o n r e s u l t t o A D r e g i s t e r i
( b 1 5 )
b 7
S e t t i n g A / D c o n v e r s i o n s t a r t f l a g
b 7
Figure 2.9.13. Set-up procedure of repeat sweep 0 mode
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
b 0
A D c o n t r o l r e g i s t e r 2 [ A d d r e s s 0 3 D 4
0
0
0
1
A D C O N 2
A / D c o n v e r s i o n m e t h o d s e l e c t b i t
1 : W i t h s a m p l e a n d h o l d
M u s t a l w a y s b e s e t t o " 0 "
b 0
A D c o n t r o l r e g i s t e r 0
0
0
1 1
[ A d d r e s s 0 3 D 6
I n v a l i d i n r e p e a t s w e e p m o d e 0
R e p e a t s w e e p m o d e 0 i s s e l e c t e d
( N o t e 1 )
T r i g g e r s e l e c t b i t
0 : S o f t w a r e t r i g g e r
A / D c o n v e r s i o n s t a r t f l a g
0 : A / D c o n v e r s i o n d i s a b l e d
Frequency select bit 0 (Note 2)
0 : f
/3 or f
AD
AD
1 : f
or f
/2 is selected
AD
AD
) is over 10 MHz, the f
frequency must be under 10 MHz by dividing and set ø
IN
AD
b0
AD control register 0 [Address 03D6
1
ADCON0
A / D c o n v e r s i o n s t a r t f l a g
1 : A / D c o n v e r s i o n s t a r t e d
( b 8 )
b 0
b 7
b 0
A D c o n t r o l r e g i s t e r 0 [ A d d r e s s 0 3 D 6
0
A D C O N 0
A / D c o n v e r s i o n s t a r t f l a g
0 : A / D c o n v e r s i o n d i s a b l e d
page 227 of 354
]
1 6
b7
0 0
1
] A D C O N 0
1 6
/4 is selected
]
16
Start A/D conversion
A D r e g i s t e r 0
[ A d d r e s s 0 3 C 1
A D r e g i s t e r 1
[ A d d r e s s 0 3 C 3
A D r e g i s t e r 2
[ A d d r e s s 0 3 C 5
A D r e g i s t e r 3
[ A d d r e s s 0 3 C 7
b0
A D r e g i s t e r 4
[ A d d r e s s 0 3 C 9
A D r e g i s t e r 5
[ A d d r e s s 0 3 C B
A D r e g i s t e r 6
[ A d d r e s s 0 3 C D
A D r e g i s t e r 7
[ A d d r e s s 0 3 C F
E i g h t l o w - o r d e r b i t s o f A / D c o n v e r s i o n r e s u l t
D u r i n g 1 0 - b i t m o d e
T w o h i g h - o r d e r b i t s o f A / D c o n v e r s i o n r e s u l t
D u r i n g 8 - b i t m o d e
W h e n r e a d , t h e c o n t e n t i s i n d e t e r m i n a t e
]
1 6
Stop A/D conversion
b 0
AD control register 1 [Address 03D7
0
ADCON1
Invalid in Repeat mode
A/D operation mode select bit 1 (Note 1)
0 (Must always be "0" in repeat mode)
8/10-bit mode select bit
0 : 8-bit mode
1 : 10-bit mode
Frequency select bit 1 (Note 2)
0 : f
/2 or f
/4 is selected
AD
AD
1 : f
or f
/3 is selected
AD
AD
Vref connect bit
1 : Vref connected
Reserved bit
frequency to 10 MHz or lower.
AD
, 0 3 C 0
] A D 0
1 6
1 6
, 0 3 C 2
] A D 1
1 6
1 6
, 0 3 C 4
] A D 2
1 6
1 6
, 0 3 C 6
] A D 3
1 6
1 6
, 0 3 C 8
] A D 4
1 6
1 6
, 0 3 C A
] A D 5
1 6
1 6
, 0 3 C C
] A D 6
1 6
1 6
, 0 3 C E
] A D 7
1 6
1 6
2. A/D Converter
]
16

Advertisement

Table of Contents
loading

Table of Contents