Rev.2.00 Oct 16, 2006 page 216 of 354
REJ09B0340-0200
M30245 Group
2. A/D Converter
Figure 2.9.2. AD converter-related registers (1)
Bit Symbol
Function
R W
Symbol
ADCON0
Address
03D6
16
AD control register 0 (Note 1)
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
TRG
is selected.
Note 5: When f(X
IN
) exceeds 10 MHz, the
φ
AD frequency must be less than 10 MHz by dividing.
When reset
00
16
Bit Name
CH0
CH1
CH2
MD0
MD1
TRG
ADST
CKS0
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)
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
0 0 : One-shot mode
0 1 : Repeat mode
1 0 : Single sweep mode
1 1 : Repeat sweep mode 0
Repeat sweep mode 1
0 : Software trigger
1 : AD
TRG
trigger
0 : A/D conversion disabled
1 : A/D conversion enabled (Note 4)
0 : f
AD
/3 or f
AD
/4 is selected
1 : f
AD
or f
AD
/2 is selected
O O
O O
O O
O O
O O
O O
O O
O O
b2 b1 b0
b4 b3
Bit Symbol
Function
R W
Symbol
ADCON1
Address
03D7
16
AD control register 1 (Note 1)
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
when repeat-sweep mode 1 (bit 2 = “1”) is selected.
Note 3: When f(X
IN
) exceeds 10 MHz, the
φ
AD frequency must be less than 10 MHz by dividing.
When reset
00
16
Bit Name
SCAN0
SCAN1
MD2
BITS
CKS1
VCUT
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
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
O O
O O
O O
O O
O O
O O
b1 b0
Reserved
Must always be set to “0”
0 0
b7
b0
b6
b5
b4
b3
b2
b1
b7
b0
b6
b5
b4
b3
b2
b1
(Note 2, 3)
(Note 2)
(Note 2)
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...