P89LPC9331_9341_9351_9361 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 5.1 — 20 August 2012 61 of 94
NXP Semiconductors
P89LPC9331/9341/9351/9361
8-bit microcontroller with accelerated two-clock 80C51 core
8.4 PGA (P89LPC9351/9361)
Additional PGA module is integrated in each ADC module to improve the effective
resolution of the ADC. A single channel can be selected for amplification. The gain of PGA
can be programmable to 2, 4, 8 and 16. Please refer to Table 12 “
Static characteristics for
detailed specifications.
Register PGACONx and PGACONxB are used to for PGA configuration. Register
PGAxTRIM2X4X and PGAxTRIM8X16X provide trim value of PGA gain level. As
power-on, default trim value for each gain setting is loaded into the PGA trim registers.
For accurate measurements, offset calibration is required.
Please see the P89LPC9331/9341/9351/9361 User manual for detail configuration,
calibration, and usage information.
8.5 Temperature sensor
An on-chip wide-temperature range temperature sensor is integrated with ADC0 module.
It provides temperature sensing capability of 40 C ~ 85 C. It is necessary to measure
the 1.2 V reference voltage via the ADC before measuring temperature. In
P89LPC9351/9361, the reference voltage, temperature sensor and AD03 input pin
multiplex one input to PGA0. Please see the P89LPC9331/9341/9351/9361 User manual
for detail usage of temperature sensor.
Fig 24. P89LPC9351/9361 ADC block diagram
+
comp
PGA0
AD00
8
CONTROL
LOGIC
AD01
AD02
AD03
V
ref(bg)
V
sen
+
comp
to comparators
SAR
SAR
8
input MUX
Anin00
Anin01
Anin02
Anin03
input MUX
CCLK
002aad576
PGA1
AD10
4
AD11
AD12
AD13
DAC0
DAC1
Anin10
Anin11
Anin12
Anin13
P89LPC9331_9341_9351_9361 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 5.1 — 20 August 2012 62 of 94
NXP Semiconductors
P89LPC9331/9341/9351/9361
8-bit microcontroller with accelerated two-clock 80C51 core
8.6 ADC operating modes
8.6.1 Fixed channel, single conversion mode
A single input channel can be selected for conversion. A single conversion will be
performed and the result placed in the result register pair which corresponds to the
selected input channel. An interrupt, if enabled, will be generated after the conversion
completes.
In P89LPC9351/9361, in fixed channel mode, the PGA channel selection is dependent on
the ADC channel selection. If PGA is enabled, all the selected channels for A/D
conversion will be amplified and the gain amplify level is the same.
8.6.2 Fixed channel, continuous conversion mode
A single input channel can be selected for continuous conversion. The results of the
conversions will be sequentially placed in the four result register. The user may select
whether an interrupt can be generated after every four conversions. Additional conversion
results will again cycle through the four result register, overwriting the previous results.
Continuous conversions continue until terminated by the user.
In P89LPC9351/9361, in fixed channel mode, the PGA channel selection is independent
and can be different to A/D conversion channel selection. If different, the gain of the
selected ADC channel is 1.
8.6.3 Auto scan, single conversion mode
Any combination of the four input channels can be selected for conversion. A single
conversion of each selected input will be performed and the result placed in the result
register which corresponds to the selected input channel. An interrupt, if enabled, will be
generated after all selected channels have been converted. If only a single channel is
selected this is equivalent to single channel, single conversion mode.
In P89LPC9351/9361, in auto scan mode, the PGA channel selection is dependent on the
ADC channel selection. If PGA is enabled, all the selected channel for A/D conversion will
be amplified and the gain amplify level is the same.
8.6.4 Auto scan, continuous conversion mode
Any combination of the four input channels can be selected for conversion. A conversion
of each selected input will be performed and the result placed in the result register which
corresponds to the selected input channel. An interrupt, if enabled, will be generated after
all selected channels have been converted. The process will repeat starting with the first
selected channel. Additional conversion results will again cycle through the eight result
register pairs, overwriting the previous results. Continuous conversions continue until
terminated by the user.
In P89LPC9351/9361, in auto scan mode, the PGA channel selection is dependent on the
ADC channel selection. If PGA is enabled, all the selected channel for A/D conversion will
be amplified and the gain amplify level is the same.
8.6.5 Dual channel, continuous conversion mode
This is a variation of the auto scan continuous conversion mode where conversion occurs
on two user-selectable inputs. The result of the conversion of the first channel is placed in
the result register, ADxDAT0. The result of the conversion of the second channel is placed
P89LPC9331_9341_9351_9361 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 5.1 — 20 August 2012 63 of 94
NXP Semiconductors
P89LPC9331/9341/9351/9361
8-bit microcontroller with accelerated two-clock 80C51 core
in result register, ADxDAT1. The first channel is again converted and its result stored in
ADxDAT2. The second channel is again converted and its result placed in ADxDAT3. An
interrupt is generated, if enabled, after every set of four conversions (two conversions per
channel).
In P89LPC9351/9361, in dual channel mode, the PGA channel selection is independent
and can be different to A/D conversion channel selection. If different, the gain of the
selected ADC channel is 1.
8.6.6 Single step mode
This special mode allows ‘single-stepping’ in an auto scan conversion mode. Any
combination of the four input channels can be selected for conversion. After each channel
is converted, an interrupt is generated, if enabled, and the A/D waits for the next start
condition. May be used with any of the start modes.
In P89LPC9351/9361, in single step mode, the PGA channel selection is independent and
can be different to A/D conversion channel selection. If different, the gain of the selected
ADC channel is 1.
8.7 Conversion start modes
8.7.1 Timer triggered start
An A/D conversion is started by the overflow of Timer 0. Once a conversion has started,
additional Timer 0 triggers are ignored until the conversion has completed. The Timer
triggered start mode is available in all ADC operating modes.
8.7.2 Start immediately
Programming this mode immediately starts a conversion. This start mode is available in all
ADC operating modes.
8.7.3 Edge triggered
An A/D conversion is started by rising or falling edge of P1.4. Once a conversion has
started, additional edge triggers are ignored until the conversion has completed. The edge
triggered start mode is available in all ADC operating modes.
8.7.4 Dual start immediately
Programming this mode starts a synchronized conversion of both A/D converters. This
start mode is available in all A/D operating modes. Both A/D converters must be in the
same operating mode. In the continuous conversion modes, both A/D converters must
select an identical number of channels. Any trigger of either A/D will start a simultaneous
conversion of both A/Ds.
8.8 Boundary limits interrupt
Each of the A/D converters has both a high and low boundary limit register. The user may
select whether an interrupt is generated when the conversion result is within (or equal to)
the high and low boundary limits or when the conversion result is outside the boundary
limits. An interrupt will be generated, if enabled, if the result meets the selected interrupt
criteria. The boundary limit may be disabled by clearing the boundary limit interrupt
enable.

P89LPC9331FDH,512

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
Microcontrollers - MCU 8-bit Microcontrollers - MCU IC 80C51 MCU FLASH 4K
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union