© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 03 — 7 June 2005
28 of 139
Philips Semiconductors
UM10119
P89LPC938 User manual
5
TMM0
Timer Trigger Mode 0. Selects either stop mode (TMM0 = 0) or timer trigger mode
(TMM0 = 1) when the ADCS01 and ADCS00 bits = 00.
6
ENADCI0
Enable A/D Conversion complete Interrupt 0. When set, will cause an interrupt if the
ADCI0 flag is set and the A/D interrupt is enabled.
7
ENBI0
Enable A/D boundary interrupt 0. When set, will cause an interrupt if the boundary
interrupt 0 flag, BNDI0, is set and the A/D interrupt is enabled.
Table 12:
A/D Control register 0 (ADCON0 - address 97h) bit description
…continued
Bit
Symbol
Description
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