MB90820 Series
66
12. A/D Converter
The A/D converter converts the analog voltage input (input voltage) to an analog input pin to a digital value. It
has the following features :
The minimum conversion time is 3 μs (for a machine clock of 24 MHz; including sampling time).
The converter uses the RC-type successive approximation conversion method with a sample and hold circuit.
A resolution of 10 bits or 8 bits can be set.
Up to 16 channels for analog input pins can be selected by a program.
Various conversion mode :
- Single conversion mode : Selectively convert one channel.
- Scan conversion mode : Continuously convert multiple channels. Maximum of 16 selectable channels.
- Continuous conversion mode : Repeatedly convert specified channels.
- Stop conversion mode : Convert one channel then halt until the next activation (enables synchronization of
the conversion start timing).
At the end of A/D conversion, an interrupt request can be generated and EI2OS can be activated.
In the interrupt-enabled state, the conversion data protection function prevents any part of the data from being
lost through continuous conversion.
The conversion can be activated by software, 16-bit reload timer 1 (rising edge) and 16-bit free-running timer
zero detection edge.
(1) Register configuration
(Continued)
15
14
13
12
11
10
9
8
R/W
0
Address: 00000C7
H
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
W
0
A/D Control Status Register (upper)
ADCS1
Initial value
Read/write
Bit
Address: 0000C6
H
7
6
5
4
3
2
1
0
A/D Control Status Register (lower)
ADCS0
Bit
R/W
0
R/W
0
R/W
0
0
Initial value
Read/write
MD1
MD0
S10
BUSY
INT
INTE
PAUS
STS1
STS0
STRT
Reserved
15
14
13
12
11
10
9
8
Address: 00000C9
H
R
X
R
X
A/D Data Register (upper)
ADCR1
Initial value
Read/write
Bit
Address: 0000C8
H
7
6
5
4
3
2
1
0
A/D Data Register (lower)
ADCR0
Bit
R
X
R
X
R
X
R
X
R
X
R
X
R
X
R
X
Initial value
Read/write
D7
D6
D3
D2
D1
D0
D5
D9
D8
D4
X
X
X
X
X
X
X
X
X
X
X