Renesas M16C Laptop User Manual


 
Rev.1.10 Jul 01, 2005 page 184 of 318
REJ09B0124-0110
M16C/6N Group (M16C/6NK, M16C/6NM) 15. A/D Converter
Under development
This document is under development and its contents are subject to change.
Figure 15.3 ADCON2 Register, and AD0 to AD7 Registers
NOTES:
1. If the ADCON2 register is rewritten during A/D conversion, the conversion result will be indeterminate.
2. The φAD frequency must be 10 MHz or less. The selected φAD frequency is determined by a combination of the
CKS0 bit in the ADCON0 register, the CKS1 bit in the ADCON1 register, and the CKS2 bit in the ADCON2 register.
b7 b6 b5 b4 b3 b2 b1 b0
0
Symbol Address After Reset
ADCON2 03D4h 00h
A/D Control Register 2
(1)
Bit Symbol Bit Name Function RW
RW
RW
RW
RW
RW
-
SMP
CKS2
ADGSEL0
ADGSEL1
-
(b3)
-
(b7-b5)
b2 b1
Nothing is assigned. When write, set to "0".
When read, their contents are "0".
A/D Input Group Select Bit
A/D Conversion Method
Select Bit
Reserved Bit
Frequency Select Bit 2
(2)
0 : Without sample and hold
1 : With sample and hold
0 0 : Port P10 group is selected
0 1 : Do not set a value
1 0 : Port P0 group is selected
1 1 : Port P2 group is selected
Set to "0"
0 : Selects fAD, divide-by-2 of fAD, or
divide-by-4 of fAD.
1 : Selects divide-by-3 of fAD, divide-by-6
of fAD, or divide-by-12 of fAD.
Divide-by-4 of fAD
Divide-by-2 of fAD
fAD
Divide-by-12 of fAD
Divide-by-6 of fAD
Divide-by-3 of fAD
0
0
0
1
1
1
1
0
0
0
1
0
0
1
1
1
0
1
0
0
1
0
1
1
CKS2 CKS1 CKS0 φAD
(b15)
b7b7 b0 b0
(b8)
A/D Register i (i = 0 to 7)
Low-order 8 bits of
A/D conversion result
Function
When BITS bit in ADCON1
register is "1" (10-bit mode)
Nothing is assigned. When write, set to "0".
When read, their contents are "0".
When read, the content is
indeterminate.
RW
-
RO
RO
High-order 2 bits of
A/D conversion result
When BITS bit is "0"
(8-bit mode)
A/D conversion result
Symbol Address After Reset
AD0
AD1
AD2
AD3
AD4
AD5
AD6
AD7
03C1h to 03C0h
03C3h to 03C2h
03C5h to 03C4h
03C7h to 03C6h
03C9h to 03C8h
03CBh to 03CAh
03CDh to 03CCh
03CFh to 03CEh
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Indeterminate