UM10147_2
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 02 — 28 April 2008
32 of 134
NXP Semiconductors
UM10147
P89LPC952/954 User manual
Table 13.
A/D Mode register A (ADMODA - address 0C0h) bit allocation
Bit
7
6
5
4
3
2
1
0
Symbol
BNDI0
BURST0
SCC0
SCAN0
-
-
-
-
Reset
0
0
0
0
0
0
0
0
Table 14.
A/D Mode register A (ADMODA - address 0C0h) bit description
Bit
Symbol
Description
0:3
-
Reserved.
4
SCAN0
When = 1, selects single conversion mode (auto scan or fixed channel).
5
SCC0
When = 1, selects fixed and dual channel, continuous conversion modes.
6
BURST0
When = 1, selects auto scan, continuous conversion mode.
7
BNDI0
ADC0 boundary interrupt flag. When set, indicates that the converted result is
inside/outside of the range defined by the ADC0 boundary registers.
Table 15.
A/D Mode register B (ADMODB - address A1h) bit allocation
Bit
7
6
5
4
3
2
1
0
Symbol
CLK2
CLK1
CLK0
INBND0
-
-
BSA0
FCIIS
Reset
0
0
0
0
0
0
0
0
Table 16.
A/D Mode register B (ADMODB - address A1h) bit description
Bit
Symbol
Description
0
FCIIS
Four conversion intermediate interrupt select. When =1, will generate an interrupt
after four conversions in fixed channel or dual channel continuous modes. In any of
the scan modes setting this bit will generate an interrupt after the fourth conversion
if the number of channels selected is greater than four.
1
BSA0
ADC0 Boundary Select All. When =1, BNDI0 will be set if any ADC0 input exceeds
the boundary limits. When = 0, BNDI0 will be set only if the AD00 input exceeded
the boundary limits.
2:3
-
Reserved
4
INBND0
When set = 1, generates an interrupt if the conversion result is inside or equal to the
boundary limits. When cleared = 0, generates an interrupt if the conversion result is
outside the boundary limits.
7:5
CLK2,CLK1,CLK0 Clock divider to produce the ADC clock. Divides CCLK by the value indicated below.
The resulting ADC clock should be 9 MHz or less. A minimum of 320 kHz is required
to maintain A/D accuracy.
CLK2:0 —
Divisor
000 —
1
001 —
2
010 —
3
011 —
4
011 —
5
011 —
6
011 —
7
011 —
8