Chapter 14
A/D Converter
XIV - 6 Control Registers
14.2.2 Control Registers
These registers are 16-bit readable/writable registers which control an A/D converter.
■ A/D0 Conversion Control Register 0 (AN0CTR0: 0x0000A400) [8,16-bit Access Register]
..
Do not change the A/D0 conversion control register during A/D conversion.
..
bp 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Flag
---
EX
TRG0
-
AN0
CH2
AN0
CH1
AN0
CH0
AN0
EN
AN0
OFF
AN0
TRG
AN0
CK2
AN0
CK1
AN0
CK0
AN0
MD1
AN0
MD0
At reset 000 0 000000000000
Access R R R R/W R R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
bp Flag Description Setting condition
15-13 - - -
12 EXTRG0
Edge detection at external trigger con-
version
Reserved
11 - - -
10-8
AN0CH2
AN0CH1
AN0CH0
Channel number at any single channel
conversion
Start channel number at multiple chan-
nel conversion
(When reading during A/D conversion,
however, the channel number in conver-
sion is read.)
000: ADIN00
001: ADIN01
010: ADIN02
011: ADIN03
100: ADIN04
101: ADIN05
110: Setting prohibited
111: Setting prohibited
7 AN0EN Conversion start-execution flag
0: Disabled
1: Conversion start or in progress
6 AN0OFF Power-down mode
0: Power-down mode
1: Operation mode
5AN0TRG
External trigger A conversion start
enable
0: Disabled
1: Enabled
4-2
AN0CK2
AN0CK1
AN0CK0
Conversion clock
000: IOCLK
001: 2 dividing of IOCLK
010: 3 dividing of IOCLK
011: 4 dividing of IOCLK
100: 8 dividing of IOCLK
101:16 dividing of IOCLK
110: setting prohibited
111: setting prohibited
1-0
AN0MD1
AN0MD0
Operation mode
00: Any single channel, one-time conversion
01: Multiple channels, one-time conversion for each
10: Any single channel, continuous conversion
11: Multiple channels, continuous conversion