
Vii PeRiPheRaL MoDuLes 5 (anaLoG): a/D ConVeRteR (aDC)
s1C33L17 teChniCaL ManuaL
ePson
Vii-1-23
VII
ADC
0x300546: a/D Channel status Flag Register (paD_enD)
name
address
Register name
Bit
Function
setting
init. R/W
Remarks
–
oWe4
oWe3
oWe2
oWe1
oWe0
–
aDF4
aDF3
aDF2
aDF1
aDF0
D15–13
D12
D11
D10
D9
D8
D7–5
D4
D3
D2
D1
D0
reserved
Ch.4overwriteerrorflag
Ch.3overwriteerrorflag
Ch.2overwriteerrorflag
Ch.1overwriteerrorflag
Ch.0overwriteerrorflag
reserved
Ch.4conversion-completeflag
Ch.3conversion-completeflag
Ch.2conversion-completeflag
Ch.1conversion-completeflag
Ch.0conversion-completeflag
–
0
–
0
–
R/W
–
R
0whenbeingread.
Canbeusedwhen
ADCADV="1".
Resetbywriting0.
0whenbeingread.
Canbeusedwhen
ADCADV="1".
ResetwhenADBUFx
isread.
00300546
(hW)
a/D channel
status flag
register
(pAD_END)
1 Error
0 Normal
1 Completed 0 Run/Standby
–
note: Theletter‘x’inbitnames,etc.,denotesachannelnumberfrom0to4.
D[15:13] Reserved
D[12:8]
oWe[4:0]: a/D Ch.x overwrite error Flags (for advanced mode)
These bits indicate that the conversion result buffer for each channel has been overwritten.
1 (R):
Overwritten
0 (R):
Normal (default)
1 (W):
Has no effect
0 (W):
Flag is reset
During A/D conversion in continuous mode, if the new conversion results in the same channel are writ-
ten to the conversion result buffer (overwritten) before the converted data is read out to reset the ADFx
conversion-complete flag that has been set through the previous conversion, OWEx is set to 1. When
ADFx is reset, because this means that the converted data has been read out, OWEx is not set.
Once OWEx is set to 1, it remains set until it is reset by writing 0 in the software.
D[7:5]
Reserved
D[4:0]
aDF[4:0]: a/D Ch.x Conversion-Complete Flags (for advanced mode)
These bits indicate that A/D conversion in each channel has been completed.
1 (R):
Conversion completed
0 (R):
Being converted or standing by (default)
This flag is set to 1 when A/D conversion of the corresponding channel is completed, and the converted
data is stored in the conversion result buffer and is reset to 0 when the conversion result buffer is read
out. When A/D conversion is performed in continuous mode, if the next A/D conversion of the same
channel is completed while ADFx = 1 (before the conversion result buffer is read out), the buffer is
overwritten with the new conversion results, causing an overrun error to occur. Therefore, ADFx must
be reset by reading out the converted data before the next A/D conversion is completed.