© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 03 — 7 June 2005
29 of 139
Philips Semiconductors
UM10119
P89LPC938 User manual
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
Table 16:
A/D Mode register B (ADMODB - address A1h) bit description
…continued
Bit
Symbol
Description
Table 17:
A/D Input select (ADINS - address A3h) bit allocation
Bit
7
6
5
4
3
2
1
0
Symbol
AIN07
AIN06
AIN05
AIN04
AIN03
AIN02
AIN01
AIN00
Reset
0
0
0
0
0
0
0
0
Table 18:
A/D Input select (ADINS - address A3h) bit description
Bit
Symbol
Description
0
AIN00
When set, enables the AD00 pin for sampling and conversion.
1
AIN01
When set, enables the AD01 pin for sampling and conversion.
2
AIN02
When set, enables the AD02 pin for sampling and conversion.
3
AIN03
When set, enables the AD03 pin for sampling and conversion.
4
AIN04
When set, enables the AD04 pin for sampling and conversion.
5
AIN05
When set, enables the AD05 pin for sampling and conversion.
6
AIN06
When set, enables the AD06 pin for sampling and conversion.
7
AIN07
When set, enables the AD07 pin for sampling and conversion.
Table 19:
Boundary status register 0 (BNDSTA0 - address FFEDh) bit allocation
Bit
7
6
5
4
3
2
1
0
Symbol
BST07
BST06
BST05
BST04
BST03
BST02
BST01
BST00
Reset
0
0
0
0
0
0
0
0