Renesas M16C FAMILY series Hardware Manual page 264

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

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C
• E x a m p l e w h e n s e l e c t i n g A N
• E x a m p l e 1 : W h e n A D
A D S T f l a g
A D E R R 0 f l a g
A D E R R 1 f l a g
A D T C S F f l a g
A D S T T 0 f l a g
A D S T T 1 f l a g
A D S T R T 0 f l a g
A D S T R T 1 f l a g
I R b i t i n t h e A D I C
r e g i s t e r
•Example 2: When AD
A D S T f l a g
A D E R R 0 f l a g
A D E R R 1 f l a g
A D T C S F f l a g
A D S T T 0 f l a g
A D S T T 1 f l a g
A D S T R T 0 f l a g
A D S T R T 1 f l a g
I R b i t i n t h e A D I C
r e g i s t e r
Figure 15.25 Each Flag Operation in ADSTAT0 Register Associated with the Operation Example
in Delayed Trigger Mode 1 (1)
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
t o A N
0
p i n f a l l i n g e d g e i s g e n e r a t e d d u r i n g A N
T R G
pin input
AD
TRG
A N
0
A N
1
A N
2
A N
3
" 1 "
" 0 "
Do not set to "1" by program
" 1 "
" 0 "
" 1 "
" 0 "
" 1 "
" 0 "
" 1 "
" 0 "
"1"
"0"
" 1 "
" 0 "
" 1 "
" 0 "
" 1 "
" 0 "
Set to "0" by interrupt request acknow edgement or a program
pin falling edge is generated again after AN
TRG
p i n i n p u t
A D
T R G
AN
0
AN
1
AN
2
AN
3
" 1 "
" 0 "
Do not set to "1" by program
" 1 "
" 0 "
" 1 "
" 0 "
" 1 "
" 0 "
" 1 "
" 0 "
" 1 "
" 0 "
" 1 "
" 0 "
" 1 "
" 0 "
" 1 "
" 0 "
A D S T f l a g : B i t 6 i n t h e A D C O N 0 r e g i s t e r
A D E R R 0 , A D E R R 1 , A D T C S F , A D S T T 0 , A D S T T 1 , A D S T R T 0 a n d A D S T R T 1 f l a g : b i t s 0 , 1 , 3 , 4 , 5 , 6 a n d 7 i n t h e A D S T A T 0 r e g i s t e r
page 244
f o
3
8
5
t o A / D s w e e p p i n s ( S C A N 1 t o S C A N 0 = " 0 1
3
p i n c o n v e r s i o n
0
Set to "0" by program
S e t t o " 0 " b y p r o g r a m
S e t t o " 0 " b y i n t e r r u p t r e q u e s t a c k n o w e d g m e n t o r a p r o g r a m
")
2
A/D pin input
voltage sampling
A / D p i n c o n v e r s i o n
pin conversion
0
15. A/D Converter

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents