P89LPC915_916_917_5 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 05 — 15 December 2009 52 of 75
NXP Semiconductors
P89LPC915/916/917
8-bit microcontrollers with accelerated two-clock 80C51 core
8.26.6 ICP
ICP is performed without removing the microcontroller from the system. The ICP facility
consists of internal hardware resources to facilitate remote programming of the
P89LPC915/916/917 through a two-wire serial interface. The NXP ICP facility has made
in-circuit programming in an embedded application—using commercially available
programmers—possible with a minimum of additional expense in components and circuit
board area. The ICP function uses five pins. Only a small connector needs to be available
to interface your application to a commercial programmer in order to use this feature.
Additional details may be found in the P89LPC915/916/917
User’s Manual
.
8.26.7 IAP-Lite
IAP-Lite is performed in the application under the control of the microcontroller’s firmware.
The IAP facility consists of internal hardware resources to facilitate programming and
erasing. The IAP-Lite operations are accomplished through the use of four SFRs
consisting of a control/status register, a data register, and two address registers.
Additional details may be found in the P89LPC915/916/917
User’s Manual
.
8.26.8 Power-on reset code execution
The P89LPC915/916/917 contains two special flash elements: the Boot Vector and the
Boot Status bit. Following reset, the P89LPC915/916/917 examines the contents of the
Boot Status bit. If the Boot Status bit is set to zero, power-up execution starts at location
0000H, which is the normal start address of the user’s application code. When the Boot
Status bit is set to a value other than zero, the contents of the Boot Vector are used as the
high byte of the execution address and the low byte is set to 00H.
Table 13 shows the factory default Boot Vector setting for this device. While these devices
do not contain a factory bootloader, the Boot Vector and Status bit do provide a
mechanism for an alternate code execution at reset.
8.26.9 Hardware activation of the alternate code
The alternate code execution address can be forced during a power-on sequence (see the
P89LPC915/916/917
User’s 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 starting at address 0000H but can be manually forced into executing
from an alternated address using the Boot Vector. 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.
8.27 User configuration bytes
Some user-configurable features of the P89LPC915/916/917 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. Please see the P89LPC915/916/917
User’s Manual
for additional details.
Table 13. Default boot vector and Status bit values
Device Default boot vector Default Status bit
P89LPC915 00H 0
P89LPC916 00H 0
P89LPC917 00H 0
P89LPC915_916_917_5 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 05 — 15 December 2009 53 of 75
NXP Semiconductors
P89LPC915/916/917
8-bit microcontrollers with accelerated two-clock 80C51 core
8.28 User sector security bytes
There are eight User Sector Security Bytes on the P89LPC915/916/917. Each byte
corresponds to one sector. Please see the P89LPC915/916/917
User’s Manual
for
additional details.
9. A/D converter
9.1 General description
The P89LPC915/916/917 devices have a single 8-bit, 4-channel multiplexed
analog-to-digital converter with a DAC module. A block diagram of the A/D converter is
shown in Figure 22. The A/D consists of a 4-input multiplexer which feeds a
sample-and-hold circuit providing an input signal to one of two 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.
9.2 Features
n Single 8-bit, 4-channel multiplexed input, successive approximation A/D converter.
n Four A/D result registers.
n Six operating modes:
u Fixed channel, single conversion mode.
u Fixed channel, continuous conversion mode.
u Auto scan, single conversion mode.
u Auto scan, continuous conversion mode.
u Dual channel, continuous conversion mode.
u Single step mode.
n Three conversion start modes:
u Timer triggered start.
u Start immediately.
u Edge triggered.
n 8-bit conversion time of 3.9 µs at an A/D clock of 3.3 MHz.
n Interrupt or polled operation.
n Boundary limits interrupt.
n DAC output to a port pin with high output impedance.
n Clock divider.
n Power-down mode.
P89LPC915_916_917_5 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 05 — 15 December 2009 54 of 75
NXP Semiconductors
P89LPC915/916/917
8-bit microcontrollers with accelerated two-clock 80C51 core
9.3 Block diagram
9.4 A/D operating modes
9.4.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.
9.4.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 registers. An interrupt, if enabled,
will be generated after every four conversions. Additional conversion results will again
cycle through the four result registers, overwriting the previous results. Continuous
conversions continue until terminated by the user.
9.4.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.
Fig 22. ADC block diagram
+
comp
DAC1
SAR
8
INPUT
MUX
CONTROL
LOGIC
+
comp
DAC0
SAR
8
INPUT
MUX
CCLK
002aab080

P89LPC916FDH,129

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC MCU 8BIT 2KB FLASH 16TSSOP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union