n 2 kB/4 kB/8 kB Flash code memory with 1 kB erasable sectors, 64-byte erasable page size, and single byte erase. n 256-byte RAM data memory. n Two 16-bit counter/timers. Each timer may be configured to toggle a port output upon timer overflow or to become a PWM output. n Real-Time clock that can also be used as a system timer. n Two *og comparators with selectable inputs and reference source. n Enhanced UART with fractional baud rate generator, break detect, framing error detection, automatic address detection and versatile interrupt capabilities. n 400 kHz byte-wide I2C-bus communication port. n Configurable on-chip oscillator with frequency range and RC oscillator options (selected by user programmed Flash configuration bits). The RC oscillator (factory calibrated to ±1 %) option allows operation without external oscillator components. Oscillator options support frequencies from 20 kHz to the maximum operating frequency of 18 MHz. The RC oscillator option is selectable and fine tunable. n 2.4 V to 3.6 V VDD operating range. I/O pins are 5 V tolerant (may be pulled up or driven to 5.5 V). n High drive current (20 mA) on eight I/O pins on the P89LPC9221 (P0.3 to P0.7, P1.4, P1.6, P1.7).