P89LPC9381FDH,512 NXP Semiconductors, P89LPC9381FDH,512 Datasheet

IC 80C51 MCU FLASH 4K 28-TSSOP

P89LPC9381FDH,512

Manufacturer Part Number
P89LPC9381FDH,512
Description
IC 80C51 MCU FLASH 4K 28-TSSOP
Manufacturer
NXP Semiconductors
Series
LPC900r
Datasheet

Specifications of P89LPC9381FDH,512

Core Processor
8051
Core Size
8-Bit
Speed
18MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LED, POR, PWM, WDT
Number Of I /o
26
Program Memory Size
4KB (4K x 8)
Program Memory Type
FLASH
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
2.4 V ~ 3.6 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
28-TSSOP
Processor Series
P89LPC9x
Core
80C51
Data Bus Width
8 bit
Data Ram Size
256 B
Interface Type
I2C, SPI, UART
Maximum Clock Frequency
18 MHz
Number Of Programmable I/os
26
Number Of Timers
2
Operating Supply Voltage
2.4 V to 3.6 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
PK51, CA51, A51, ULINK2
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit, 8 Channel
For Use With
622-1014 - BOARD FOR LPC9XX TSSOP622-1011 - BOARD FOR LPC938 TSSOP622-1008 - BOARD FOR LPC9103 10-HVSON622-1006 - SOCKET ADAPTER BOARDMCB900K - BOARD PROTOTYPE NXP 89LPC9EPM900K - EMULATOR/PROGRAMMER NXP P89LPC9568-1759 - EMULATOR DEBUGGER/PROGRMMR LPC9X568-1758 - BOARD EVAL FOR LPC93X MCU FAMILY
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
 Details
Other names
935280615512
P89LPC9381FDH
P89LPC9381FDH

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89LPC9381FDH,512
Manufacturer:
LT
Quantity:
2 340
1. General description
2. Features
2.1 Principal features
The P89LPC9381 is a single-chip microcontroller, available in low-cost packages, based
on a high performance processor architecture that executes instructions in two to four
clocks, six times the rate of standard 80C51 devices. Many system-level functions have
been incorporated into the P89LPC9381 in order to reduce component count, board
space, and system cost.
I
I
I
I
I
I
I
I
P89LPC9381
8-bit microcontroller with accelerated two-clock 80C51 core
4 kB 3 V byte-erasable flash with 10-bit ADC
Rev. 01 — 8 September 2006
4 kB byte-erasable flash code memory organized into 1 kB sectors and 64 B pages.
Single-byte erasing allows any byte(s) to be used as non-volatile data storage.
256 B RAM data memory on-chip RAM.
8-input multiplexed 10-bit ADC. Two analog comparators with selectable inputs and
reference source.
Two 16-bit counter/timers (each may be configured to toggle a port output upon timer
overflow or to become a PWM output) and a 23-bit system timer that can also be used
as a RTC.
Enhanced UART with fractional baud rate generator, break detect, framing error
detection, and automatic address detection; 400 kHz byte-wide I
communication port and SPI communication port.
High-accuracy internal RC oscillator option allows operation without external oscillator
components. The RC oscillator option is selectable and fine tunable.
2.4 V to 3.6 V V
driven to 5.5 V).
28-pin TSSOP package with 23 I/O pins minimum and up to 26 I/O pins while using
on-chip oscillator and reset options.
DD
operating range. I/O pins are 5 V tolerant (may be pulled up or
Product data sheet
2
C-bus

Related parts for P89LPC9381FDH,512

P89LPC9381FDH,512 Summary of contents

Page 1

P89LPC9381 8-bit microcontroller with accelerated two-clock 80C51 core byte-erasable flash with 10-bit ADC Rev. 01 — 8 September 2006 1. General description The P89LPC9381 is a single-chip microcontroller, available in low-cost packages, based on a high ...

Page 2

Philips Semiconductors 2.2 Additional features I A high performance 80C51 CPU provides instruction cycle times of 111 ns to 222 ns for all instructions except multiply and divide when executing at 18 MHz. This is six times the performance of ...

Page 3

Philips Semiconductors 3. Ordering information Table 1. Type number P89LPC9381FDH 3.1 Ordering options Table 2. Type number P89LPC9381FDH P89LPC9381_1 Product data sheet Ordering information Package Name Description TSSOP28 plastic thin shrink small outline package; 28 leads; body width 4.4 mm ...

Page 4

Philips Semiconductors 4. Block diagram P89LPC9381 P3[1:0] CONFIGURABLE I/Os P2[7:0] CONFIGURABLE I/Os P1[7:0] CONFIGURABLE I/Os P0[7:0] CONFIGURABLE I/Os WATCHDOG TIMER AND OSCILLATOR PROGRAMMABLE OSCILLATOR DIVIDER X1 CRYSTAL CONFIGURABLE OR RESONATOR X2 Fig 1. Block diagram P89LPC9381_1 Product data sheet ACCELERATED ...

Page 5

Philips Semiconductors 5. Functional diagram KBI0 AD05 KBI1 AD00 KBI2 AD01 KBI3 AD02 KBI4 AD03 KBI5 KBI6 KBI7 CLKOUT Fig 2. P89LPC9381 functional diagram P89LPC9381_1 Product data sheet CMP2 CIN2B CIN2A CIN1B PORT 0 CIN1A CMPREF CMP1 ...

Page 6

Philips Semiconductors 6. Pinning information 6.1 Pinning Fig 3. Pin configuration 6.2 Pin description Table 3. Pin description Symbol Pin P0[7:0] P0[0]/CMP2/ 3 KBI0/AD05 P0[1]/CIN2B/ 26 KBI1/AD00 P89LPC9381_1 Product data sheet P2[0]/AD07 1 2 P2[1]/AD06 3 P0[0]/CMP2/KBI0/AD05 P1[7]/AD04 4 P1[6] ...

Page 7

Philips Semiconductors Table 3. Pin description …continued Symbol Pin P0[2]/CIN2A/ 25 KBI2/AD01 P0[3]/CIN1B/ 24 KBI3/AD02 P0[4]/CIN1A/ 23 KBI4/AD03 P0[5]/CMPREF/ 22 KBI5 P0[6]/CMP1/ 20 KBI6 P0[7]/T1/KBI7 19 P1[7:0] P1[0]/TXD 18 P1[1]/RXD 17 P1[2]/T0/SCL 12 P1[3]/INT0/SDA 11 P1[4]/INT1 10 P89LPC9381_1 Product data ...

Page 8

Philips Semiconductors Table 3. Pin description …continued Symbol Pin P1[5]/RST 6 P1[6] 5 P1[7]/AD04 4 P2[0] to P2[7] P2[0]/AD07 1 P2[1]/AD06 2 P2[2]/MOSI 13 P2[3]/MISO 14 P2[4]/SS 15 P2[5]/SPICLK 16 P2[6] 27 P2[7] 28 P89LPC9381_1 Product data sheet Type Description ...

Page 9

Philips Semiconductors Table 3. Pin description …continued Symbol Pin P3[1:0] P3[0]/XTAL2/ 9 CLKOUT P3[1]/XTAL1 [1] Input/output for P1[0] to P1[4], P1[6], P1[7]. Input for P1[5]. P89LPC9381_1 Product data sheet Type Description I/O Port ...

Page 10

Philips Semiconductors 7. Functional description Remark: Please refer to the P89LPC9381 User’s Manual for a more detailed functional description. 7.1 Special function registers Remark: SFR accesses are restricted in the following ways: • User must not attempt to access any ...

Page 11

Table 4. P89LPC9381 Special function registers * indicates SFRs that are bit addressable. Name Description SFR Bit functions and addresses addr. Bit address ACC* Accumulator E0H AD0CON ADC0 control register 97H AD0INS ADC0 input select A3H AD0MODA ADC0 mode register ...

Page 12

Table 4. P89LPC9381 Special function registers * indicates SFRs that are bit addressable. Name Description SFR Bit functions and addresses addr. FMCON Program flash control E4H (Read) Program flash control E4H (Write) FMDATA Program flash data E5H 2 I2ADR I ...

Page 13

Table 4. P89LPC9381 Special function registers * indicates SFRs that are bit addressable. Name Description SFR Bit functions and addresses addr. IP0H Interrupt priority 0 high B7H Bit address IP1* Interrupt priority 1 F8H IP1H Interrupt priority 1 high F7H ...

Page 14

Table 4. P89LPC9381 Special function registers * indicates SFRs that are bit addressable. Name Description SFR Bit functions and addresses addr. PCON Power control register 87H SMOD1 PCONA Power control register A B5H RTCPD Bit address PSW* Program status word ...

Page 15

Table 4. P89LPC9381 Special function registers * indicates SFRs that are bit addressable. Name Description SFR Bit functions and addresses addr. TMOD Timer 0 and 1 mode 89H T1GATE TPCR2H Prescaler control register CBH high TPCR2L Prescaler control register CAH ...

Page 16

Table 5. P89LPC9381 extended special function registers Name Description ADC0HBND ADC0 high _boundary register, left (MSB) ADC0LBND ADC0 low_boundary register (MSB) AD0DAT0R ADC0 data register 0, right (LSB) AD0DAT0L ADC0 data register 0, left (MSB) AD0DAT1R ADC0 data register 1, ...

Page 17

Philips Semiconductors 7.2 Enhanced CPU The P89LPC9381 uses an enhanced 80C51 CPU which runs at six times the speed of standard 80C51 devices. A machine cycle consists of two CPU clock cycles, and most instructions execute in one or two ...

Page 18

Philips Semiconductors The frequency of this clock output is in Idle mode, it may be turned off prior to entering Idle, saving additional power. 7.4 On-chip RC oscillator option The P89LPC9381 has a 6-bit TRIM register that can be used ...

Page 19

Philips Semiconductors 7.7 CCLK wake-up delay The P89LPC9381 has an internal wake-up timer that delays the clock until it stabilizes depending on the clock source used. If the clock source is any of the three crystal selections (low, medium and ...

Page 20

Philips Semiconductors • CODE Code memory space, accessed as part of program execution and via the MOVC instruction. The P89LPC9381 has on-chip Code memory. 7.11 Data RAM arrangement The 256 B of on-chip RAM ...

Page 21

Philips Semiconductors RTCF ERTC (RTCCON.1) WDOVF ENADCI0 Fig 5. Interrupt sources, interrupt enables, and power-down wake-up sources P89LPC9381_1 Product data sheet IE0 EX0 IE1 EX1 BOF EBO KBIF EKBI EWDRT CMF2 CMF1 EC EA (IE0.7) TF0 ET0 TF1 ET1 TI ...

Page 22

Philips Semiconductors 7.13 I/O ports The P89LPC9381 has four I/O ports: Port 0, Port 1, Port 2, and Port 3. Ports 0, 1 and 2 are 8-bit ports, and Port 2-bit port. The exact number of I/O ...

Page 23

Philips Semiconductors An open-drain port pin has a Schmitt triggered input that also has a glitch suppression circuit. 7.13.1.3 Input-only configuration The input-only port configuration has no output drivers Schmitt triggered input that also has a glitch ...

Page 24

Philips Semiconductors Brownout detection may be enabled or disabled in software. If brownout detection is enabled, the brownout condition occurs when V brownout trip voltage, V rises above V below 2.7 V, BOE should be left in the unprogrammed state ...

Page 25

Philips Semiconductors 7.16 Reset The P1[5]/RST pin can function as either an active-LOW reset input digital input, P1[5]. The RPE (Reset Pin Enable) bit in UCFG1, when set to ‘1’, enables the external reset input function on ...

Page 26

Philips Semiconductors Timer 0 and Timer 1 have five operating modes (modes and 6). Modes and 6 are the same for both Timers/Counters. Mode 3 is different. 7.17.1 Mode 0 Putting either Timer ...

Page 27

Philips Semiconductors standard 80C51 UART include Framing Error detection, automatic address recognition, selectable double buffering and several interrupt options. The UART can be operated in 4 modes: shift register, 8-bit UART, 9-bit UART, and CPU clock/32 or CPU clock/16. 7.19.1 ...

Page 28

Philips Semiconductors 7.19.6 Framing error Framing error is reported in the status register (SSTAT). In addition, if SMOD0 (PCON.6) is ‘1’, framing errors can be made available in SCON.7 respectively. If SMOD0 is ‘0’, SCON.7 is SM0 recommended ...

Page 29

Philips Semiconductors 2 7.20 I C-bus serial interface 2 I C-bus uses two wires (SDA and SCL) to transfer information between devices connected to the bus, and it has the following features: • Bidirectional data transfer between masters and slaves ...

Page 30

Philips Semiconductors P1[3]/SDA P1[2]/SCL Fig 8. I P89LPC9381_1 Product data sheet P1[3] INPUT FILTER OUTPUT STAGE INPUT FILTER OUTPUT STAGE timer 1 overflow P1[2] I2CON I2SCLH I2SCLL status bus I2STAT 2 C-bus serial interface block diagram Rev. 01 — 8 ...

Page 31

Philips Semiconductors 7.21 SPI The P89LPC9381 provides another high-speed serial communication interface—the SPI interface. SPI is a full-duplex, high-speed, synchronous communication bus with two operation modes: Master mode and Slave mode Mbit/s can be supported in either ...

Page 32

Philips Semiconductors 7.21.1 Typical SPI configurations Fig 10. SPI single master single slave configuration Fig 11. SPI dual device configuration, where either can be a master or a slave P89LPC9381_1 Product data sheet master MISO 8-BIT SHIFT MOSI REGISTER SPICLK ...

Page 33

Philips Semiconductors Fig 12. SPI single master multiple slaves configuration P89LPC9381_1 Product data sheet master MISO 8-BIT SHIFT MOSI REGISTER SPICLK SPI CLOCK port GENERATOR port Rev. 01 — 8 September 2006 P89LPC9381 8-bit microcontroller with 10-bit ADC slave MISO ...

Page 34

Philips Semiconductors 7.22 Analog comparators Two analog comparators are provided on the P89LPC9381. Input and output options allow use of the comparators in a number of different configurations. Comparator operation is such that the output is a logical one (which ...

Page 35

Philips Semiconductors If a comparator interrupt is enabled (except in Total Power-down mode), a change of the comparator output state will generate an interrupt and wake up the processor. If the comparator output to a pin is enabled, the pin ...

Page 36

Philips Semiconductors 7.24 Watchdog timer The watchdog timer causes a system reset when it underflows as a result of a failure to feed the timer prior to the timer reaching its terminal count. It consists of a programmable 12-bit prescaler, ...

Page 37

Philips Semiconductors 7.26 Flash program memory 7.26.1 General description The P89LPC9381 flash memory provides in-circuit electrical erasure and programming. The flash can be erased, read, and written as bytes. The Sector and Page Erase functions can erase any flash sector ...

Page 38

Philips Semiconductors provides for programming through a serial clock/serial data interface. As shipped from the factory, the upper 512 B of user code space contains a serial ISP routine allowing for the device to be programmed in circuit through the ...

Page 39

Philips Semiconductors 7.26.9 Power-on reset code execution The P89LPC9381 contains two special flash elements: the Boot Vector and the Boot Status Bit. Following reset, the P89LPC9381 examines the contents of the Boot Status Bit. If the Boot Status Bit is ...

Page 40

Philips Semiconductors 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 ...

Page 41

Philips Semiconductors 8.4 ADC operating modes 8.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 pair which corresponds to the ...

Page 42

Philips Semiconductors 8.4.6 Single step mode This special mode allows ‘single-stepping’ auto scan conversion mode. Any combination of the eight input channels can be selected for conversion. After each channel is converted, an interrupt is generated, if enabled, ...

Page 43

Philips Semiconductors 9. Limiting values Table 9. Limiting values In accordance with the Absolute Maximum Rating System (IEC 60134). Symbol Parameter T bias ambient temperature amb(bias) T storage temperature stg I HIGH-state output current per OH(I/O) input/output pin I LOW-state ...

Page 44

Philips Semiconductors 10. Static characteristics Table 10. Static characteristics 3.6 V unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol Parameter I operating supply current ...

Page 45

Philips Semiconductors Table 10. Static characteristics 3.6 V unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol Parameter R internal pull-up resistance on RST_N(int) pin ...

Page 46

Philips Semiconductors 11. Dynamic characteristics Table 11. Dynamic characteristics (12 MHz 2 3.6 V, unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol Parameter f internal ...

Page 47

Philips Semiconductors Table 11. Dynamic characteristics (12 MHz 2 3.6 V, unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol Parameter t SPI enable lag time ...

Page 48

Philips Semiconductors Table 12. Dynamic characteristics (18 MHz 3 3.6 V, unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol Parameter f internal RC oscillator frequency ...

Page 49

Philips Semiconductors Table 12. Dynamic characteristics (18 MHz 3 3.6 V, unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol Parameter t SPICLK HIGH time SPICLKH ...

Page 50

Philips Semiconductors 11.1 Waveforms clock t QVXH output data write to SBUF t XHDV input data clear RI Fig 16. Shift register mode timing V 0 0.2V 0.2V 0.45 V Fig 17. External clock timing SS SPICLK (CPOL ...

Page 51

Philips Semiconductors SS SPICLK (CPOL = 0) (output) SPICLK (CPOL = 1) (output) MISO (input) t SPIF MOSI (output) Fig 19. SPI master timing (CPHA = SPIR t SPILEAD SPICLK (CPOL = 0) (input) t SPIF SPICLK ...

Page 52

Philips Semiconductors SS t SPIR t SPILEAD SPICLK (CPOL = 0) (input) t SPIF SPICLK (CPOL = 1) (input) t SPIOH t SPIDV t SPIA MISO not defined (output) MOSI (input) Fig 21. SPI slave timing (CPHA = 1) 11.2 ...

Page 53

Philips Semiconductors 12. Other characteristics 12.1 Comparator electrical characteristics Table 14. Comparator electrical characteristics 3.6 V, unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb Symbol ...

Page 54

Philips Semiconductors 12.2 ADC electrical characteristics Table 15. ADC electrical characteristics 3.6 V, unless otherwise specified +85 C for industrial applications, unless otherwise specified. amb All limits valid for ...

Page 55

Philips Semiconductors 13. Package outline TSSOP28: plastic thin shrink small outline package; 28 leads; body width 4 pin 1 index 1 DIMENSIONS (mm are the original dimensions) A UNIT max. ...

Page 56

Philips Semiconductors 14. Abbreviations Table 16. Acronym ADC CPU DAC EPROM EMI IAP ICP ISP LED PLL PWM RAM RC RTC SAR SFR SPI UART P89LPC9381_1 Product data sheet Abbreviations Description Analog to Digital Converter Central Processing Unit Digital to ...

Page 57

Philips Semiconductors 15. Revision history Table 17. Revision history Document ID Release date P89LPC9381_1 20060908 P89LPC9381_1 Product data sheet Data sheet status Change notice Product data sheet - Rev. 01 — 8 September 2006 P89LPC9381 8-bit microcontroller with 10-bit ADC ...

Page 58

Philips Semiconductors 16. Legal information 16.1 Data sheet status [1][2] Document status Product status Objective [short] data sheet Development Preliminary [short] data sheet Qualification Product [short] data sheet Production [1] Please consult the most recently issued document before initiating or ...

Page 59

Philips Semiconductors 18. Contents 1 General description . . . . . . . . . . . . . . . . . . . . . . 1 2 Features . . . . . . . . ...

Page 60

Philips Semiconductors 8.1 General description 8.2 Features . . . . . . . . . . . . ...

Related keywords