Datasheet

Section 19 A/D Converter
Rev. 2.00 Sep. 28, 2009 Page 627 of 870
REJ09B0429-0200
19.3.3 A/D Control Register (ADCR)
The ADCR sets the operation mode of A/D converter and the conversion time.
Bit Bit Name
Initial
Value
R/W Description
7
6
0
TRGS1
TRGS0
EXTRGS
0
0
0
R/W
R/W
R/W
Timer Trigger Select 1 and 0, Extended Trigger Select
Enable starting of A/D conversion by a trigger signal.
These bits should be set while A/D conversion is stopped
(ADSF = 0).
00 0: Disables starting by trigger signals.
10 0: Enables starting by a trigger from TMR_0.
10 1: Enables starting by the ADTRG pin input.
Other than above: Setting prohibited
5
4
SCANE
SCANS
0
0
R/W
R/W
Scan Mode
Select the operation mode of A/D conversion
0X: Single mode
10: Scan mode
(consecutive A/D conversion of channels 1 to 4)
11: Scan mode
(consecutive A/D conversion of channels 1 to 8)
3
2
CKS1
CKS0
0
0
R/W
R/W
Clock Select 1 and 0
Set the A/D conversion time. Setting should be made
while the conversion is stopped (ADST = 0).
00: Setting prohibited
01: Conversion time = 80 states (max) (20 MHz or less)
10: Conversion time = 160 states (max)
11: Conversion time = 320 states (max)
1 ADSTCLR 0 R/W A/D Start Clear
Sets automatic clearing of the ADST bit in scan mode.
0: Disables automatic clearing of ADST in scan mode.
1: ADST is automatically cleared when A/D conversion for
all the selected channels has been completed in scan
mode.
[Legend]
X: Don't care