
MB91460P Series
DS07-16615-2E
45
4.1.
A/D Control Status Registers (ADCS2, ADCS1, ADCS0)
The A/D control status registers control and show the status of A/D converter. Do not overwrite ADCS0 register
during A/D converting.
ADCS2 : Access: Byte
[bits 15:12] BUSY, INT, INTE, PAUS
These bits are a mirror of the corresponding bits in ADCS1, intended to quickly read out all status and interrupt
information using only one register access. To write the bits, access them via ADCS1.
[bits 11:10] -
These bits do not exist. Read operation returns 0.
[bit 9] INT2 (End of Scan Flag)
The End of Scan flag is set when conversion data of the last channel is stored in ADCR, whereas the last channel
is defined by ADECH register setting.
If bit 8 (INTE2) is "1" when this bit is set, and the ADC runs in continuous conversion mode, an End of Scan
interrupt request is generated or, if activation of DMA is enabled, DMA is activated.
Only clear this bit by writing "0" when A/D conversion is halted.
Initialized to "0" by a reset.
If DMA is used, this bit is cleared at the end of DMA transfer.
Read-modify-write operations read this bit as “1”.
[bit 8] INTE2 (Enable End of Scan Interrupt)
INTE2 enables the End of Scan interrupt in continuous conversion mode. In the other conversion modi, this bit
has no effect.
Additionally, setting INTE2 changes the protect function of converted data (see description of ADCS1.PAUS).
15
14
13
12
11
10
9
8
Bit
BUSY
INT
INTE
PAUS
-
INT2
INTE2
00000000
Initial value
R
R0
R/W
Attribute
INTE2
Function
0 [initial]
Disable End of Scan interrupt,
ADC result protection protects the ADCR register data.
1
Enable End of Scan interrupt,
ADC result protection protects the ADCD0...ADCD31 register data
(in continuous conversion mode only)