P89LPC92X1 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 2.1 — 27 August 2012 46 of 75
NXP Semiconductors
P89LPC9201/9211/922A1/9241/9251
8-bit microcontroller with 8-bit ADC
Table 10 shows the factory default Boot Vector setting for these devices. A
factory-provided bootloader is pre-programmed into the address space indicated and
uses the indicated bootloader entry point to perform ISP functions. This code can be
erased by the user.
Remark: Users who wish to use this loader should take precautions to avoid erasing the
1 kB sector that contains this bootloader. Instead, the page erase function can be used to
erase the first eight 64-byte pages located in this sector.
A custom bootloader can be written with the Boot Vector set to the custom bootloader, if
desired.
7.28.10 Hardware activation of the bootloader
The bootloader can also be executed by forcing the device into ISP mode during a
power-on sequence (see the P89LPC9201/9211/922A1/9241/9251 User manual for
specific information). This has the same effect as having a non-zero status byte. This
allows an application to be built that will normally execute user code but can be manually
forced into ISP operation. If the factory default setting for the boot vector is changed, it will
no longer point to the factory pre-programmed ISP bootloader code. After programming
the flash, the status byte should be programmed to zero in order to allow execution of the
user’s application code beginning at address 0000H.
7.29 User configuration bytes
Some user-configurable features of the P89LPC9201/9211/922A1/9241/9251 must be
defined at power-up and therefore cannot be set by the program after start of execution.
These features are configured through the use of the flash byte UCFG1 and UCFG2.
Please see the P89LPC9201/9211/922A1/9241/9251 User manual for additional details.
7.30 User sector security bytes
There are two/four/eight User Sector Security Bytes on the
P89LPC9201/9211/922A1/9241/9251. Each byte corresponds to one sector. Please see
the P89LPC9201/9211/922A1/9241/9251 User manual for additional details.
8. ADC (P89LPC9241/9251)
8.1 General description
The P89LPC9241/9251 has two analog-to-digital converter modules: ADC0 and ADC1.
ADC1 is an 8-bit, 4-channel multiplexed successive approximation analog-to-digital
converter. ADC0 is dedicated for on-chip temperature sensor which operates over wide
Table 10. Default boot vector values and ISP entry points
Device Default
boot vector
Default
bootloader
entry point
Default bootloader
code range
1 kB sector
range
P89LPC9201 07H 0700H 0600H to 07FFH 0400H to 07FFH
P89LPC9211/9241 0FH 0F00H 0E00H to 0FFFH 0C00H to 0FFFH
P89LPC922A1/9251 1FH 1F00H 1E00H to 1FFFH 1C00H to 1FFFH
P89LPC92X1 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 2.1 — 27 August 2012 47 of 75
NXP Semiconductors
P89LPC9201/9211/922A1/9241/9251
8-bit microcontroller with 8-bit ADC
temperature. The temperature sensor is measured through Anin03. Anin00, Anin01 and
Anin02 are unused. A block diagram of the ADC is shown in Figure 15 “
ADC block
diagram.
The ADC consists of an 4-input multiplexer which feeds a sample-and-hold circuit
providing an input signal to comparator inputs. The control logic in combination with the
SAR drives a digital-to-analog converter which provides the other input to the comparator.
The output of the comparator is fed to the SAR.
8.2 Features and benefits
8-bit, 4-channel multiplexed input, successive approximation ADC.
On-chip wide range temperature sensor.
Four result registers for each A/D.
Six operating modes:
Fixed channel, single conversion mode.
Fixed channel, continuous conversion mode.
Auto scan, single conversion mode.
Auto scan, continuous conversion mode.
Dual channel, continuous conversion mode.
Single step mode.
Three conversion start modes:
Timer triggered start.
Start immediately.
Edge triggered.
8-bit conversion time of 1.61 s at an A/D clock of 8.0 MHz.
Interrupt or polled operation.
Boundary limits interrupt.
DAC output to a port pin with high output impedance.
Clock divider.
Power-down mode.
P89LPC92X1 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 2.1 — 27 August 2012 48 of 75
NXP Semiconductors
P89LPC9201/9211/922A1/9241/9251
8-bit microcontroller with 8-bit ADC
8.3 Block diagram
8.4 Temperature sensor
An on-chip wide-temperature range temperature sensor is integrated. It provides
temperature sensing capability of 40 C ~ 85 C. ADC0 is dedicated for the temperature
sensor, and the temperature sensor is measured through Anin03. To get an accurate
temperature value, it is necessary to get supply voltage by measuring the internal
reference voltage V
ref(bg)
first. Please see the P89LPC9201/9211/922A1/9241/9251 User
manual for detailed usage of temperature sensor.
8.5 ADC operating modes
8.5.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 which corresponds to the selected
input channel. An interrupt, if enabled, will be generated after the conversion completes.
8.5.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.
Fig 15. ADC block diagram
+
comp
8
CONTROL
LOGIC
V
ref(bg)
V
sen
+
comp
SAR
SAR
8
input MUX
Anin00
Anin01
Anin02
Anin03
Anin10
Anin11
Anin12
Anin13
input MUX
CCLK
002aae432
AD10
AD11
AD12
AD13
2:1 MUX
DAC0
DAC1

P89LPC9241FDH,112

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
Microcontrollers - MCU 8-bit Microcontrollers - MCU MCU 8-Bit CISC 4KB Flash2.5V/3.3V 20Pin
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union