NXP Semiconductors P89LPC9221FDH,518
- Part No.:
- P89LPC9221FDH,518
- Manufacturer:
- NXP Semiconductors
- Category:
- Microcontrollers
- Package:
- 20-TSSOP (0.173", 4.40mm Width)
- Datasheet:
-
P89LPC9221FDH,518.pdf
- Description:
- IC MCU 8BIT 8KB FLASH 20TSSOP
- Quantity:
- Payment:

- Shipping:

Inventory:4,079
Please send an inquiry. Send us your inquiry, and we will respond immediately.
Product details
Overview
P89LPC9221FDH,518 from NXP Semiconductors (formerly Philips) is an 8-bit microcontroller based on a two-clock 80C51 core, delivering six times the instruction throughput of standard 80C51 devices at 18 MHz. It integrates 8 kB Flash code memory, 256-byte RAM, dual 16-bit timers, real-time clock, two analog comparators, and I²C/UART peripherals. It targets low-power embedded control in industrial sensors and smart peripherals where compact size and high I/O drive capability are critical.
For engineers reviewing the P89LPC9221FDH,518 datasheet, P89LPC9221FDH,518 pinout, P89LPC9221FDH,518 application, or P89LPC9221FDH,518 equivalent, key selection considerations include its TSSOP20 package, 20 mA high-drive I/O capability on eight pins, factory-calibrated ±1% RC oscillator, 2.4–3.6 V operation with 5 V-tolerant I/O, and support for in-application Flash programming.
Technical Context
The P89LPC9221FDH,518 executes instructions in two to four CPU clocks-enabling 111 ns minimum instruction cycle time at 18 MHz-while integrating system-level functions including programmable port configurations (quasi-bidirectional, open-drain, push-pull), keypad interrupt pattern matching on Port 0, and independent watchdog oscillator (400 kHz). Its clock architecture supports four selectable sources: external crystal (20 kHz–18 MHz), internal RC (7.373 MHz ±1%), watchdog oscillator, or external clock input.
Peripheral integration includes an enhanced UART with fractional baud rate generator and break detection, 400 kHz I²C bus interface, real-time clock usable as system timer, and two analog comparators with selectable inputs and reference. Power management features include Idle mode, two Power-down modes (typical 1 µA total current with comparators disabled), and brownout reset configurable as interrupt.
Key Specifications
| Parameter | Value and Actual Design Meaning |
|---|---|
| Core Architecture | Two-clock 80C51 CPU executing most instructions in 2–4 clocks; 6× performance vs. standard 80C51 at same frequency. |
| Flash Memory | 8 kB Flash with 1 kB erasable sectors and 64-byte page erase; supports in-application programming and security bit protection. |
| RAM | 256-byte on-chip data RAM for variable storage and stack operations. |
| Operating Voltage | 2.4 V to 3.6 V supply; I/O pins tolerate up to 5.5 V, enabling direct interfacing with 5 V logic without level shifters. |
| High-Drive I/O | Eight pins (P0.3–P0.7, P1.4, P1.6, P1.7) deliver 20 mA source current-suitable for direct LED driving or relay control. |
| Max Clock Frequency | 18 MHz CPU clock; supports crystal, RC, watchdog, or external clock sources with programmable DIVM divider. |
| Power Consumption | Typical Power-down current is 1 µA (with voltage comparators disabled); reduced EMI via controlled slew-rate outputs (~10 ns ramp time). |
Pinout & Package
TSSOP20 plastic thin shrink small outline package (SOT360-1), 20 leads, body width 4.4 mm; requires only VDD and VSS for operation when internal reset and oscillator options are selected.
| Pin/Terminal | Circuit Role | Design Meaning |
|---|---|---|
| P0.0 / KBI0 / CMP2 | Port 0 bit 0, keypad interrupt 0 input, comparator 2 output | Configurable I/O with Schmitt trigger; enables wake-up on keypad activity or analog threshold detection. |
| P0.3–P0.7, P1.4, P1.6, P1.7 | High-current source I/O pins | Each delivers 20 mA sink/source-supports direct LED or small solenoid drive without external drivers. |
| P1.2 / SCL / T0 | I²C clock line / Timer 0 external count input | Open-drain output when used as SCL; allows shared-bus communication and edge-triggered timing capture. |
| P1.3 / SDA / INT0 | I²C data line / external interrupt 0 input | Open-drain I²C data with built-in interrupt capability-enables event-driven slave response or master arbitration. |
| P3.0 / CLKOUT / XTAL2 | CPU clock output / crystal oscillator output | Provides CCLK/2 clock signal to external peripherals when crystal is not used-simplifies system synchronization. |
| P3.1 / XTAL1 | Clock input / port pin | Accepts crystal/resonator or external clock; reverts to general-purpose I/O when internal RC or watchdog oscillator is selected. |
Key Features
| Feature | Design Value |
|---|---|
| Factory-calibrated RC oscillator | 7.373 MHz ±1% at room temperature-eliminates external crystal for cost-sensitive applications while maintaining timing accuracy. |
| In-application Flash programming | Enables firmware updates during runtime without halting system operation-critical for remote or field-deployed devices. |
| Programmable port output modes | Per-pin configuration as quasi-bidirectional, open-drain, push-pull, or input-only-optimizes signal integrity and power across mixed-logic interfaces. |
| Port 0 pattern match interrupt | Generates interrupt when Port 0 pins match or mismatch a user-defined 8-bit pattern-replaces external logic for keypad scanning or status monitoring. |
| Dual analog comparators | Independent inputs with selectable reference (CMPREF) and hysteresis-supports battery monitoring, overvoltage detection, or zero-crossing sensing without ADC overhead. |
Applications
| Industrial Sensor Node | Smart Keypad Interface |
|---|---|
Use Scenario: Battery-powered environmental sensor collecting temperature/humidity and transmitting via I²C to a central controller. IC Role / Device Role / Timing Role: Primary controller managing sensor readout, real-time timestamping, low-power sleep/wake cycles, and I²C master communication. Use Value: 1 µA Power-down current extends battery life; 20 mA I/O drives local status LEDs; integrated RTC eliminates external timekeeping IC. |
Use Scenario: 8-key membrane keypad with debounce, scan, and interrupt-driven keypress reporting to host MCU. IC Role / Device Role / Timing Role: Dedicated keypad manager using Port 0 pattern-match interrupt and programmable slew-rate outputs to reduce EMI during scanning. Use Value: Eliminates external scan logic and debouncing circuitry; reduces BOM count by integrating comparator-based threshold detection for analog keys. |
| LED Lighting Controller | Legacy Serial Adapter |
Use Scenario: Standalone dimmable LED driver for signage or indicator panels with brightness control via UART commands. IC Role / Device Role / Timing Role: PWM generator (via Timer 0/1 overflow toggle), UART command parser, and high-current LED sink driver. Use Value: Eight 20 mA I/O pins directly drive LEDs or MOSFET gates; fractional baud rate generator ensures reliable UART comms across wide clock tolerances. |
Use Scenario: RS-232-to-TTL level shifter with protocol translation for legacy industrial equipment interfacing to modern controllers. IC Role / Device Role / Timing Role: UART bridge with framing error detection, automatic address recognition, and software-controlled baud rate adjustment. Use Value: Enhanced UART handles noisy serial lines; 5 V-tolerant I/O simplifies connection to RS-232 transceivers; Flash security prevents firmware tampering. |
Equivalent & Alternatives
The following parts are listed as comparable options for similar 8-bit microcontroller applications.
| Alternative Part | Technical Difference | Application Difference | Selection Advice |
|---|---|---|---|
| P89LPC922FDH | Same TSSOP20 package and 8 kB Flash, but lacks high-drive (20 mA) capability on P0.3–P0.7, P1.4, P1.6, P1.7. | Not suitable for direct LED/solenoid drive; requires external drivers where P89LPC9221FDH,518 provides native current sourcing. | Select P89LPC922FDH only if high-drive I/O is unnecessary and cost minimization is prioritized. |
| STC89C52RC | 51-compatible core with 8 kB Flash and 512-byte RAM, but no integrated RC oscillator calibration, comparators, or I²C; operates at 5 V only. | Lacks analog sensing, low-voltage operation, and 5 V-tolerant I/O-requires level shifters and external timing components. | Choose STC89C52RC only for 5 V systems with simple digital I/O needs and no analog integration requirements. |
Compared with P89LPC922FDH, the P89LPC9221FDH,518 adds high-drive I/O essential for direct actuation, while versus STC89C52RC it delivers integrated analog functions, 2.4–3.6 V operation, and factory-trimmed timing-reducing component count and design complexity in battery-powered or mixed-signal applications.
Availability
P89LPC9221FDH,518 is available at Aetrix Electronics and suitable for industrial sensor nodes, smart keypad interfaces, LED lighting controllers, and legacy serial adapters requiring stable component supply and long-term lifecycle support.
Supply support for P89LPC9221FDH,518 includes scheduled delivery planning, volume procurement assistance, BOM continuity management, traceable sourcing, and lifecycle availability coordination for OEM customers, industrial embedded developers, connected-device designers, and electronics production programs.
Manufacturer
NXP Semiconductors (originally Philips Semiconductors) designs high-integration, low-power microcontrollers for cost-sensitive embedded applications across industrial, consumer, and automotive markets.
The P89LPC92x family was engineered to replace discrete logic and multiple support ICs in space-constrained, low-cost systems-emphasizing on-chip peripherals, flexible clocking, and robust I/O to minimize external components.
FAQ
What is the maximum operating frequency of the P89LPC9221FDH,518?
The P89LPC9221FDH,518 supports a maximum CPU clock frequency of 18 MHz. This applies when using the high-speed oscillator option with an external crystal or resonator. At this frequency, the two-clock architecture achieves a minimum instruction cycle time of 111 ns, delivering six times the throughput of a standard 80C51 core running at the same clock rate. The P89LPC9221FDH,518 must have the reset input function enabled on P1.5 when operating above 12 MHz.
Does the P89LPC9221FDH,518 include an internal oscillator?
Yes, the P89LPC9221FDH,518 includes a factory-calibrated internal RC oscillator operating at 7.373 MHz ±1% at room temperature. It is fully tunable via the 6-bit TRIM register, allowing end-user adjustment for different frequencies or temperature compensation. This oscillator eliminates the need for external crystal components in cost- or space-constrained designs, and the P89LPC9221FDH,518 can operate with only VDD and VSS connections when internal reset and oscillator options are selected.
How many I/O pins on the P89LPC9221FDH,518 support 20 mA drive current?
Eight I/O pins on the P89LPC9221FDH,518 support 20 mA high-current source capability: P0.3 through P0.7, plus P1.4, P1.6, and P1.7. This feature enables direct driving of LEDs, small relays, or logic-level MOSFET gates without external buffer circuitry. The device specifies a total chip limit of 160 mA for simultaneous high-drive pin operation, ensuring safe thermal and electrical margins.
Can the P89LPC9221FDH,518 perform in-application programming of its Flash memory?
Yes, the P89LPC9221FDH,518 supports full in-application programming (IAP) of its 8 kB Flash memory. This allows firmware updates to be executed while the device remains operational-critical for remote or field-upgradable systems. Flash security bits prevent unauthorized reading of protected code, and erase granularity includes both 1 kB sectors and 64-byte pages, enabling efficient partial updates without full chip reprogramming.
What peripheral interfaces are integrated into the P89LPC9221FDH,518?
The P89LPC9221FDH,518 integrates an enhanced UART with fractional baud rate generator, break detection, and automatic address recognition; a 400 kHz I²C-bus interface with slave addressing and status registers; two 16-bit counter/timers configurable as PWM or toggle outputs; a real-time clock usable as a system timer; and two analog comparators with selectable inputs and reference. These peripherals eliminate the need for external interface ICs in typical embedded control applications.
P89LPC9221FDH,518 Specifications
- Product attributes
- Attribute value
- Manufacturer:
- NXP Semiconductors
- Package/Case:
- 20-TSSOP (0.173", 4.40mm Width)
- Series:
- LPC900
- Packaging:
- Tape & Reel (TR)
- Product Status:
- Obsolete
- Programmable:
- Not Verified
- Core Processor:
- 8051
- Core Size:
- 8-Bit
- Speed:
- 18MHz
- Connectivity:
- I2C, UART/USART
- Peripherals:
- Brown-out Detect/Reset, LED, POR, PWM, WDT
- Number of I/O:
- 18
- Program Memory Size:
- 8KB (8K x 8)
- Program Memory Type:
- FLASH
- EEPROM Size:
- -
- RAM Size:
- 256 x 8
- Voltage - Supply (Vcc/Vdd):
- 2.4V ~ 3.6V
- Data Converters:
- -
- Oscillator Type:
- Internal
- Operating Temperature:
- -40°C ~ 85°C (TA)
- Grade:
- -
- Qualification:
- -
- Mounting Type:
- Surface Mount
- Supplier Device Package:
P89LPC9221FDH,518 FAQ
1.How can I place an order for P89LPC9221FDH,518 through Aetrix?
Please submit a Request for Quotation (RFQ) for P89LPC9221FDH,518 on Aetrix. Our sales agent will provide a competitive quotation and guide you through the order confirmation once you accept the terms.
2.Are the price and stock information for P89LPC9221FDH,518 reliable?
The price and inventory of P89LPC9221FDH,518 are updated periodically and may fluctuate due to market conditions. Stock and pricing data are typically refreshed every 24 hours. Quotation validity for P89LPC9221FDH,518 is usually 5 days.
3.What payment methods are accepted for P89LPC9221FDH,518?
We accept Wire Transfer, PayPal, Credit Card, Western Union, MoneyGram, and Escrow for P89LPC9221FDH,518 transactions.
Note: Certain payment methods may incur a processing fee.
4.How is shipping managed for P89LPC9221FDH,518?
P89LPC9221FDH,518 orders can be shipped via leading logistics carriers, including DHL, UPS, FedEx, TNT, or Registered Mail.
Once your P89LPC9221FDH,518 order is processed, you will receive an email with the shipment details and tracking number.
Note: Tracking information may take up to 24 hours to appear. Express delivery typically takes 3–5 business days.
5.How can I obtain technical support or documentation for P89LPC9221FDH,518?
For technical support, including P89LPC9221FDH,518 datasheets, pinout diagrams, or application guidance, please contact our engineering support team. They can provide detailed documentation and assistance for your P89LPC9221FDH,518 requirements.
6.How does Aetrix verify that P89LPC9221FDH,518 is sourced from the original manufacturer or authorized distributors?
All P89LPC9221FDH,518 products on Aetrix are procured from qualified distributors and authorized channels. Our dedicated quality assurance team conducts strict verification, including traceability checks and, if necessary, third-party testing. This ensures that P89LPC9221FDH,518 meets industry standards.
7.What is the process for return or replacement of P89LPC9221FDH,518?
All P89LPC9221FDH,518 units undergo pre-shipment inspection (PSI). If there is an issue with P89LPC9221FDH,518, returns or replacements are accepted under the following conditions:
1.Quantity discrepancies, incorrect items, or visible external defects (such as breakage or corrosion), acknowledged by Aetrix.
2.The issue is reported within 90 days of delivery.
3.The P89LPC9221FDH,518 part is unused and in its original packaging.
Return procedure for P89LPC9221FDH,518:
1.Submit a request within 90 days.
2.Obtain a Return Material Authorization (RMA) from Aetrix.
P89LPC9221FDH,518 Tags

-
ATTINY4-TSHR
Microchip Technology

-
ATTINY10-TSHR
Microchip Technology

-
ATTINY10-TS8R
Microchip Technology

-
ATTINY202-SSNR
Microchip Technology

-
ATTINY202-SSFR
Microchip Technology

-
ATTINY402-SSNR
Microchip Technology

-
PIC16F15213T-I/MF
Microchip Technology

-
PIC16F15213-E/MF
Microchip Technology

-
PIC10F200T-I/OT
Microchip Technology

-
ATTINY412-SSNR
Microchip Technology

-
PIC10F202T-I/OT
Microchip Technology

-
ATTINY404-SSNR
Microchip Technology
Tech Hub
A practical engineering guide to 3.3V and 5V logic compatibility, input thresholds, resistor dividers, translator ICs, MOSFET level shifting, I2C pull-ups, timing limits and power-sequencing risks.
The 74HC595 uses push-pull logic outputs, while the TPIC6B595 uses 50 V open-drain DMOS sinks for higher-power loads. This guide compares timing, current limits, 3.3 V interfacing, load wiring, thermal…
The 74HC595 converts serial data into eight stable parallel outputs. This guide covers pin functions, shift and storage timing, OE and MR behavior, drive-current limits, cascading, voltage compatibilit…
A technical comparison of level-sensitive latches and edge-triggered flip-flops, covering timing windows, setup and hold limits, master–slave operation, time borrowing, race-through, HDL inference and…
A D latch stores one bit while Enable controls when data can pass. This reference covers gate-level operation, truth tables, transparency, setup and hold timing, LE versus OE, common ICs and practical …
An SR latch stores one bit through cross-coupled feedback. This engineering reference covers NOR and NAND implementations, truth tables, forbidden-state recovery, gated operation, switch debouncing, fa…
Latch circuits retain one bit through feedback. This technical reference covers SR and D latches, truth tables, transparency, timing limits, latch-versus-flip-flop behavior, applications and common log…
An engineering guide to LED driver operation, constant-current and constant-voltage outputs, linear and switching topologies, dimming, IC selection, calculations, replacement compatibility, and fault c…
Operational amplifier guide covering op amp basics, feedback, ideal vs real op amps, common configurations, buffer circuits, offset, bias current, gain-bandwidth, slew rate, rail-to-rail limits and sel…
Jumper cables guide covering safe connection order, red and black clamp placement, final ground connection, cable gauge, length, clamp quality, copper vs CCA cables, jump starter comparison and battery…

