Renesas M16C FAMILY series Hardware Manual page 239

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
Figure 15.2 ADCON0 to ADCON2 Registers
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
A/D Control Register 0
(1)
Symbol
b7
b6
b5
b4
b3
b2
b1
b0
ADCON0
Bit Symbol
CH0
CH1
CH2
MD0
MD1
TRG
ADST
CKS0
NOTES:
1. If the ADCON0 register is rewritten during A/D conversion, the conversion result will be indeterminate.
A/D Control Register 1
(1)
b7
b6
b5
b4
b3
b2
b1
b0
Symbol
ADCON1
Bit Symbol
SCAN0
SCAN1
MD2
BITS
CKS1
VCUT
(b7-b6)
NOTES:
1. If the ADCON1 register is rewritten during A/D conversion, the conversion result will be indeterminate.
2. If the VCUT bit is reset from "0" (V
REF
starting A/D conversion.
A/D Control Register 2
(1)
b7
b6
b5
b4
b3
b2
b1
b0
Symbol
0
ADCON2
Bit Symbol
SMP
ADGSEL0
ADGSEL1
(b3)
CKS2
TRG1
(b7-b6)
NOTES:
1. If the ADCON2 register is rewritten during A/D conversion, the conversion result will be indeterminate.
page 219
f o
3
8
5
Address
After Reset
03D6
00000XXX
16
2
Bit Name
Analog Input Pin Select
Function varies with each operation mode
Bit
b4 b3
A/D Operation Mode
0 0 : One-shot mode or Delayed trigger mode 0,1
Select Bit 0
0 1 : Repeat mode
1 0 : Single sweep mode or
Simultaneous sample sweep mode
1 1 : Repeat sweep mode 0 or Repeat sweep
mode 1
Trigger Select Bit
0 : Software trigger
1 : Hardware trigger
A/D Conversion Start Flag
0 : A/D conversion disabled
1 : A/D conversion started
Frequency Select Bit 0
See Table 15.2
Address
After Reset
03D7
00
16
16
Bit Name
A/D Sweep Pin Select Bit
Function varies with each operation mode
A/D Operation Mode
0 : Other than repeat sweep mode 1
1 : Repeat sweep mode 1
Select Bit 1
8/10-Bit Mode Select Bit
0 : 8-bit mode
1 : 10-bit mode
See Table 15.2
Frequency Select Bit 1
(2)
Vref Connect Bit
0 : Vref not connected
1 : Vref connected
Nothing is assigned. When write, set to "0".
When read, its content is "0".
connected), wait for 1 µs or more before
unconnected) to "1" (V
REF
Address
After Reset
03D4
00
16
16
Bit Name
0 : Without sample and hold
A/D Conversion Method
1 : With sample and hold
Select Bit
b2 b1
A/D Input Group Select Bit 0 0 : Select port P10 group
0 1 : Do not set
1 0 : Select port P0 group
1 1 : Select port P1/P9 group
Reserved Bit
"0"
Set to
See Table 15.2
Frequency Select Bit 2
Trigger Select Bit
Function varies with each operation
mode
Nothing is assigned. When write, set to "0".
When read, its content is "0".
Function
RW
RW
RW
RW
RW
RW
RW
RW
RW
Function
RW
RW
RW
RW
RW
RW
RW
Function
RW
RW
RW
RW
RW
RW
RW
15. A/D Converter

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents