8XC554 NXP Semiconductors, 8XC554 Datasheet - Page 26

This data sheet describes the 6 clock version of the 8xC554

8XC554

Manufacturer Part Number
8XC554
Description
This data sheet describes the 6 clock version of the 8xC554
Manufacturer
NXP Semiconductors
Datasheet
Philips Semiconductors
2003 Jan 28
80C51 8-bit microcontroller – 6-clock operation
16K/512 OTP/ROMless, 7 channel 10 bit A/D, I
high I/O, 64L LQFP
ADCON.7
ADCON.6
ADCON.5
ADCON.4
ADCON.3
ADCON.2
ADCON.1
ADCON.0
Bit
Symbol
ADC.1
ADC.0
ADEX
ADCI
ADCS
AADR2
AADR1
AADR0
ADCON (C5H)
Bit 1 of ADC result
Bit 0 of ADC result
Enable external start of conversion by STADC
0 = Conversion can be started by software only (by setting ADCS)
1 = Conversion can be started by software or externally (by a rising edge on STADC)
ADC interrupt flag: this flag is set when an A/D conversion result is ready to be read. An interrupt is
invoked if it is enabled. The flag may be cleared by the interrupt service routine. While this flag is set,
the ADC cannot start a new conversion. ADCI cannot be set by software.
ADC start and status: setting this bit starts an A/D conversion. It may be set by software or by the
external signal STADC. The ADC logic ensures that this signal is HIGH while the ADC is busy. On
completion of the conversion, ADCS is reset immediately after the interrupt flag has been set. ADCS
cannot be reset by software. A new conversion may not be started while either ADCS or ADCI is high.
Analogue input select: this binary coded address selects one of the
eight analogue port bits of P5 to be input to the converter. It can only
be changed when ADCI and ADCS are both LOW.
If ADCI is cleared by software while ADCS is set at the same time, a new A/D conversion with the
same channel number may be started.
But it is recommended to reset ADCI before ADCS is set.
Function
(MSB)
AADR2
ADC.1
7
ADCI
0
0
0
0
1
1
1
0
0
1
1
ADC.0
AADR1
6
Figure 23. ADC Control Register (ADCON)
0
0
1
1
0
0
1
ADCS
0
1
0
1
ADEX
5
AADR0
0
1
0
1
0
1
0
ADC not busy; a conversion can be started
ADC busy; start of a new conversion is blocked
Conversion completed; start of a new conversion requires ADCI=0
Conversion completed; start of a new conversion requires ADCI=0
ADCI ADCS
4
2
C, PWM, capture/compare,
26
3
Selected Analog Channel
ADC Status
AADR2 AADR1
2
ADC0 (P5.0)
ADC1 (P5.1)
ADC2 (P5.2)
ADC3 (P5.3)
ADC4 (P5.4)
ADC5 (P5.5)
ADC6 (P5.6)
1
AADR0
0
(LSB)
Reset Value = xx00 0000B
80C554/87C554
SU01468
Product data

Related parts for 8XC554