M30245_06 RENESAS [Renesas Technology Corp], M30245_06 Datasheet - Page 236

no-image

M30245_06

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

Related parts for M30245_06