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

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.2. AD converter-related registers (1)
AD control register 0 (Note 1)
AD control register 1 (Note 1)
b7
0 0
b7
b6
b6
b5 b4
b5 b4
b3 b2
b3 b2
page 216 of 354
b1
b1
b0
b0
Note 1: If the AD control regsiter 0 is rewritten during A/D conversion, the conversion result is indeterminate.
Note 2: When changing A/D operation mode, reset the analog input pin.
Note 3: This bit is disabled in single-sweep mode, repeat-sweep mode 0 and repeat-sweep mode 1.
Note 4: Set to “1” when AD
Note 5: When f(X
Note 1: If the AD control regsiter 1 is rewritten during A/D conversion, the conversion result is indeterminate.
Note 2: This bit is invalid in one-shot mode and repeat mode. Channels shown in parentheses are valid
Note 3: When f(X
Bit Symbol
Bit Symbol
Reserved
CH0
CH1
CH2
MD0
MD1
TRG
ADST
CKS0
SCAN0
SCAN1
MD2
BITS
CKS1
VCUT
Symbol
ADCON0
Symbol
ADCON1
when repeat-sweep mode 1 (bit 2 = “1”) is selected.
Analog input pin select bit
A/D operation mode
select bit 0
Trigger select bit
A/D conversion start flag
Frequency select bit 0
(Note 5)
A/D sweep pin select bit
A/D operation mode select bit 1
8/10-bit mode select bit
Frequency select bit 1(Note 3)
Vref connect bit
IN
IN
) exceeds 10 MHz, the AD frequency must be less than 10 MHz by dividing.
) exceeds 10 MHz, the AD frequency must be less than 10 MHz by dividing.
Bit Name
TRG
Bit Name
is selected.
Address
03D6
Address
03D7
b1 b0
Must always be set to “0”
b2 b1 b0
0 0 0 : AN0
0 0 1 : AN1
0 1 0 : AN2
0 1 1 : AN3
1 0 0 : AN4
1 0 1 : AN5
1 1 0 : AN6
1 1 1 : AN7
b4 b3
0 0 : One-shot mode
0 1 : Repeat mode
1 0 : Single sweep mode
1 1 : Repeat sweep mode 0
0 : Software trigger
1 : AD
0 : A/D conversion disabled
1 : A/D conversion enabled
0 : f
1 : f
0 0 : AN0, AN1 (AN0)
0 1 : AN0 to AN3 (AN0, AN1)
1 0 : AN0 to AN5 (AN0 to AN2)
1 1 : AN0 to AN7 (AN0 to AN3)
0 : Any mode other than repeat-sweep mode 1
1 : Repeat-sweep mode 1
0 : 8-bit mode
1 : 10-bit mode
0 : fAD/2 or fAD/4 is selected
1 : fAD/1 or fAD/3 is selected
0 : Vref not connected
1 : Vref connected
16
16
AD
AD
Repeat sweep mode 1
TRG
/3 or f
or f
AD
trigger
AD
/2 is selected
Function
/4 is selected
Function
(Note 2, 3)
(Note 4)
When reset
(Note 2)
When reset
00
(Note 2)
00
16
16
2. A/D Converter
O
O
O
O
O
O
O
O
R W
O
O
O
O
O
O
R W
O
O
O
O
O
O
O
O
O
O
O
O
O
O

Related parts for M30245_06