p89lpc935fdh NXP Semiconductors, p89lpc935fdh Datasheet
p89lpc935fdh
Available stocks
Related parts for p89lpc935fdh
p89lpc935fdh Summary of contents
Page 1
P89LPC933/934/935/936 8-bit microcontroller with accelerated two-clock 80C51 core 4 kB/8 kB/ byte-erasable flash with 8-bit ADCs Rev. 06 — 20 June 2005 1. General description The P89LPC933/934/935/936 is a single-chip microcontroller, available in low cost packages, based ...
Page 2
Philips Semiconductors 2.2 Additional features 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 the ...
Page 3
... P89LPC935FDH P89LPC936FDH P89LPC935FHN 4.1 Ordering options Table 3: Type number P89LPC933FDH P89LPC935FA P89LPC934FDH P89LPC935FDH P89LPC935FHN P89LPC936FDH 9397 750 15113 Product data sheet 8-bit microcontroller with accelerated two-clock 80C51 core highlights the differences between the four devices. For a complete list of device Section 2 “Features”. ...
Page 4
Philips Semiconductors 5. Block diagram P89LPC933/934/935/936 P3[1:0] P2[7:0] P1[7:0] P0[7:0] X1 CRYSTAL OR RESONATOR X2 Fig 1. Block diagram 9397 750 15113 Product data sheet P89LPC933/934/935/936 8-bit microcontroller with accelerated two-clock 80C51 core ACCELERATED 2-CLOCK 80C51 CPU 4 kb/8 kB/16 ...
Page 5
... SS P89LPC933FDH P3.1/XTAL1 8 P89LPC934FDH 9 P3.0/XTAL2/CLKOUT 10 P1.4/INT1 P1.3/INT0/SDA 11 12 P1.2/T0/SCL 13 P2.2/MOSI P2.3/MISO 14 P2.0/ICB/DAC0/AD03 1 P2.1/OCD/AD02 2 3 P0.0/CMP2/KBI0/AD01 4 P1.7/OCC/AD00 P1.6/OCB 5 P1.5/RST P89LPC935FDH P3.1/XTAL1 8 P89LPC936FDH P3.0/XTAL2/CLKOUT 9 10 P1.4/INT1 11 P1.3/INT0/SDA P1.2/T0/SCL 12 13 P2.2/MOSI 14 P2.3/MISO Rev. 06 — 20 June 2005 28 P2.7 27 P2.6 26 P0.1/CIN2B/KBI1/AD10 25 P0.2/CIN2A/KBI2/AD11 24 P0.3/CIN1B/KBI3/AD12 23 P0.4/CIN1A/KBI4/DAC1/AD13 22 P0.5/CMPREF/KBI5 21 V ...
Page 6
Philips Semiconductors Fig 4. P89LPC935 PLCC28 pin configuration Fig 5. P89LPC935 HVQFN28 pin configuration 9397 750 15113 Product data sheet P89LPC933/934/935/936 8-bit microcontroller with accelerated two-clock 80C51 core P1.6/OCB 5 P1.5/RST P3.1/XTAL1 P89LPC935FA P3.0/XTAL2/CLKOUT 9 ...
Page 7
Philips Semiconductors 6.2 Pin description Table 4: Pin description Symbol Pin TSSOP28, HVQFN28 PLCC28 P0.0 to P0.7 P0.0/CMP2 KBI0/AD01 P0.1/CIN2B KBI1/AD10 P0.2/CIN2A KBI2/AD11 P0.3/CIN1B KBI3/AD12 P0.4/CIN1A KBI4/DAC1 P0. ...
Page 8
Philips Semiconductors Table 4: Pin description …continued Symbol Pin TSSOP28, HVQFN28 PLCC28 P1.0 to P1.7 P1.0/TXD 18 14 P1.1/RXD 17 13 P1.2/T0/SCL 12 8 P1.3/INT0 SDA P1.4/INT1 10 6 P1.5/RST 6 2 P1.6/OCB 5 1 P1.7/OCC ...
Page 9
Philips Semiconductors Table 4: Pin description …continued Symbol Pin TSSOP28, HVQFN28 PLCC28 P2.0 to P2.7 P2.0/ICB DAC0/AD03 P2.1/OCD AD02 P2.2/MOSI 13 9 P2.3/MISO 14 10 P2.4/ P2. SPICLK P2.6/OCA 27 23 P2.7/ICA ...
Page 10
Philips Semiconductors Table 4: Pin description …continued Symbol Pin TSSOP28, HVQFN28 PLCC28 P3.0 to P3.1 P3.0/XTAL2 CLKOUT P3.1/XTAL [1] Input/output for P1.0 to P1.4, P1.6, P1.7. Input for ...
Page 11
Philips Semiconductors 7. Logic symbols KBI0 KBI1 AD10 KBI2 AD11 KBI3 AD12 KBI4 DAC1 AD13 KBI5 KBI6 KBI7 CLKOUT Fig 6. P89LPC933/934 logic symbol KBI0 AD01 KBI1 AD10 KBI2 AD11 KBI3 AD12 KBI4 DAC1 AD13 KBI5 KBI6 KBI7 CLKOUT Fig ...
Page 12
Philips Semiconductors 8. Functional description Remark: Please refer to the P89LPC933/934/935/936 User manual for a more detailed functional description. 8.1 Special function registers Remark: SFR accesses are restricted in the following ways: • User must not attempt to access any ...
Page 13
Table 5: Special function registers - P89LPC933/934 * indicates SFRs that are bit addressable. Name Description SFR addr. Bit address ACC* Accumulator E0H ADCON0 A/D control register 0 8EH ADCON1 A/D control register 1 97H ADINS A/D input select A3H ...
Page 14
Table 5: Special function registers - P89LPC933/934 * indicates SFRs that are bit addressable. Name Description SFR addr. FMCON Program flash control (Read) E4H Program flash control (Write) E4H FMDATA Program flash data E5H 2 I2ADR I C slave address ...
Page 15
Table 5: Special function registers - P89LPC933/934 * indicates SFRs that are bit addressable. Name Description SFR addr. KBMASK Keypad interrupt mask 86H register KBPATN Keypad pattern register 93H Bit address P0* Port 0 80H Bit address P1* Port 1 ...
Page 16
Table 5: Special function registers - P89LPC933/934 * indicates SFRs that are bit addressable. Name Description SFR addr. SADDR Serial port address register A9H SADEN Serial port address enable B9H SBUF Serial Port data buffer register 99H Bit address SCON* ...
Page 17
Table 5: Special function registers - P89LPC933/934 * indicates SFRs that are bit addressable. Name Description SFR addr. WDL Watchdog load C1H WFEED1 Watchdog feed 1 C2H WFEED2 Watchdog feed 2 C3H [1] Unimplemented bits in SFRs (labeled ’-’) are ...
Page 18
Table 6: Special function registers - P89LPC935/936 * indicates SFRs that are bit addressable. Name Description SFR addr. Bit address ACC* Accumulator E0H ADCON0 A/D control register 0 8EH ADCON1 A/D control register 1 97H ADINS A/D input select A3H ...
Page 19
Table 6: Special function registers - P89LPC935/936 * indicates SFRs that are bit addressable. Name Description SFR addr. CCCRB Capture compare B control EBH register CCCRC Capture compare C control ECH register CCCRD Capture compare D control EDH register CMP1 ...
Page 20
Table 6: Special function registers - P89LPC935/936 * indicates SFRs that are bit addressable. Name Description SFR addr. I2SCLL Serial clock generator/SCL DCH duty cycle register low 2 I2STAT I C status register D9H ICRAH Input capture A register high ...
Page 21
Table 6: Special function registers - P89LPC935/936 * indicates SFRs that are bit addressable. Name Description SFR addr. OCRCH Output compare C register FDH high OCRCL Output compare C register FCH low OCRDH Output compare D register FFH high OCRDL ...
Page 22
Table 6: Special function registers - P89LPC935/936 * indicates SFRs that are bit addressable. Name Description SFR addr. RSTSRC Reset source register DFH RTCCON Real-time clock control D1H RTCH Real-time clock register high D2H RTCL Real-time clock register low D3H ...
Page 23
Table 6: Special function registers - P89LPC935/936 * indicates SFRs that are bit addressable. Name Description SFR addr. TL2 CCU timer low CCH TMOD Timer 0 and 1 mode 89H TOR2H CCU reload register high CFH TOR2L CCU reload register ...
Page 24
Philips Semiconductors 8.2 Enhanced CPU The P89LPC933/934/935/936 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 25
Philips Semiconductors external clock input on X1) and if the RTC is not using the crystal oscillator as its clock source. This allows external devices to synchronize to the P89LPC933/934/935/936. This output is enabled by the ENCLK bit in the ...
Page 26
Philips Semiconductors XTAL1 XTAL2 (7.3728 MHz 1 %) (400 kHz Fig 8. Block diagram of oscillator control 9397 750 15113 Product data sheet P89LPC933/934/935/936 8-bit microcontroller with accelerated two-clock 80C51 core HIGH FREQUENCY MEDIUM FREQUENCY LOW ...
Page 27
Philips Semiconductors 8.7 CCLK wake-up delay The P89LPC933/934/935/936 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 28
Philips Semiconductors • CODE code memory space, accessed as part of program execution and via the MOVC instruction. The P89LPC933/934/935/936 have 4 KB/8 kB/ on-chip Code memory. The P89LPC935/936 also has 512 bytes of on-chip ...
Page 29
Philips Semiconductors These external interrupts can be programmed to be level-triggered or edge-triggered by setting or clearing bit IT1 or IT0 in register TCON. In edge-triggered mode, if successive samples of the INTn pin show a HIGH in one cycle ...
Page 30
Philips Semiconductors 8.13 I/O ports The P89LPC933/934/935/936 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 31
Philips Semiconductors An open-drain port pin has a Schmitt trigger input that also has a glitch suppression circuit. 8.13.1.3 Input-only configuration The input-only port configuration has no output drivers Schmitt trigger input that also has a glitch ...
Page 32
Philips Semiconductors 8.14.1 Brownout detection The brownout detect function determines if the power supply voltage drops below a certain level. The default operation is for a brownout detection to cause a processor reset, however it may alternatively be configured to ...
Page 33
Philips Semiconductors 8.15.3 Total Power-down mode This is the same as Power-down mode except that the brownout detection circuitry and the voltage comparators are also disabled to conserve additional power. The internal RC oscillator is disabled unless both the RC ...
Page 34
Philips Semiconductors 8.17 Timers/counters 0 and 1 The P89LPC933/934/935/936 has two general purpose counter/timers which are upward compatible with the standard 80C51 Timer 0 and Timer 1. Both can be configured to operate either as timers or event counter. An ...
Page 35
Philips Semiconductors being used as the CPU clock. If the XTAL oscillator is used as the CPU clock, then the RTC will use CCLK as its clock source. Only power-on reset will reset the RTC and its associated SFRs to ...
Page 36
Philips Semiconductors Capture Noise Filter bit. If set, the capture logic needs to see four consecutive samples of the same value in order to recognize an edge as a capture event. An event counter can be set to delay a ...
Page 37
Philips Semiconductors 8.19.7 Alternating output mode In asymmetrical mode, the user can set up PWM channels A/B and C/D as alternating pairs for bridge drive control. In this mode the output of these PWM channels are alternately gated on every ...
Page 38
Philips Semiconductors 8.19.9 CCU interrupts There are seven interrupt sources on the CCU which share a common interrupt vector. EA (IEN0.7) ECCU (IEN1.4) TOIE2 (TICR2.7) TOIF2 (TIFR2.7) TICIE2A (TICR2.0) TICF2A (TIFR2.0) TICIE2B (TICR2.1) TICF2B (TIFR2.1) TOCIE2A (TICR2.3) TOCF2A (TIFR2.3) TOCIE2B ...
Page 39
Philips Semiconductors 8.20.2 Mode 1 10 bits are transmitted (through TXD) or received (through RXD): a start bit (logic 0), 8 data bits (LSB first), and a stop bit (logic 1). When data is received, the stop bit is stored ...
Page 40
Philips Semiconductors 8.20.7 Break detect Break detect is reported in the status register (SSTAT). A break is detected when 11 consecutive bits are sensed LOW. The break detect can be used to reset the device and force the device into ...
Page 41
Philips Semiconductors 2 8.21 I C-bus serial interface 2 The 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 ...
Page 42
Philips Semiconductors P1.3/SDA P1.2/SCL Fig 16. I 9397 750 15113 Product data sheet P89LPC933/934/935/936 8-bit microcontroller with accelerated two-clock 80C51 core P1.3 INPUT FILTER OUTPUT STAGE INPUT FILTER OUTPUT STAGE timer 1 overflow I2CON P1.2 I2SCLH I2SCLL status bus I2STAT ...
Page 43
Philips Semiconductors 8.22 SPI The P89LPC933/934/935/936 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 Master ...
Page 44
Philips Semiconductors 8.22.1 Typical SPI configurations Fig 18. SPI single master single slave configuration Fig 19. SPI dual device configuration, where either can be a master or a slave 9397 750 15113 Product data sheet P89LPC933/934/935/936 8-bit microcontroller with accelerated ...
Page 45
Philips Semiconductors Fig 20. SPI single master multiple slaves configuration 9397 750 15113 Product data sheet P89LPC933/934/935/936 8-bit microcontroller with accelerated two-clock 80C51 core master MISO 8-BIT SHIFT MOSI REGISTER SPICLK SPI CLOCK port GENERATOR port Rev. 06 — 20 ...
Page 46
Philips Semiconductors 8.23 Analog comparators Two analog comparators are provided on the P89LPC933/934/935/936. Input and output options allow use of the comparators in a number of different configurations. Comparator operation is such that the output is a logic 1 (which ...
Page 47
Philips Semiconductors 8.23.2 Comparator interrupt Each comparator has an interrupt flag contained in its configuration register. This flag is set whenever the comparator output changes state. The flag may be polled by software or may be used to generate an ...
Page 48
Philips Semiconductors 8.25 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 49
Philips Semiconductors 8.27 Data EEPROM (P89LPC935/936) The P89LPC935/936 has 512 bytes of on-chip Data EEPROM. The Data EEPROM is SFR based, byte readable, byte writable, and erasable (via row fill and sector fill). The user can read, write and fill ...
Page 50
Philips Semiconductors 8.28.3 Flash organization The program memory consists of eight 2 kB sectors on the P89LPC936 device, eight 1 kB sectors on the P89LPC934/935 devices, and four 1 kB sectors on the P89LPC933 device. Each sector can be further ...
Page 51
Philips Semiconductors In addition, IAP operations can be 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 P89LPC933/934/935/936 User manual . 8.28.8 In-system ...
Page 52
Philips Semiconductors 8.28.10 Hardware activation of the boot loader The boot loader can also be executed by forcing the device into ISP mode during a power-on sequence (see the P89LPC933/934/935/936 User manual for specific information). This has the same effect ...
Page 53
Philips Semiconductors Start immediately. Edge triggered. Dual start immediately (P89LPC935/936). 8-bit conversion time of 3 A/D clock of 3.3 MHz. Interrupt or polled operation. Boundary limits interrupt. DAC output to a port pin with high output impedance. ...
Page 54
Philips Semiconductors 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 ...
Page 55
Philips Semiconductors 9.5.3 Edge triggered An A/D conversion is started by rising or falling edge of P1.4. Once a conversion has started, additional edge triggers are ignored until the conversion has completed. The edge triggered start mode is available in ...
Page 56
Philips Semiconductors 10. Limiting values Table 10: Limiting values In accordance with the Absolute Maximum Rating System (IEC 60134). Symbol Parameter T operating bias ambient temperature amb(bias) T storage temperature range stg I HIGH-level output current per I/O pin OH(I/O) ...
Page 57
Philips Semiconductors 11. Static characteristics Table 11: Static characteristics 3.6 V unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter I operating supply current DD(oper) ...
Page 58
Philips Semiconductors Table 11: Static characteristics 3.6 V unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter R internal pull-up resistance on RST(int) pin RST ...
Page 59
Philips Semiconductors 12. Dynamic characteristics Table 12: Dynamic characteristics (12 MHz 2 3.6 V unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter f internal RC ...
Page 60
Philips Semiconductors Table 12: Dynamic characteristics (12 MHz 2 3.6 V unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter t SPICLK HIGH time SPICLKH master ...
Page 61
Philips Semiconductors Table 13: Dynamic characteristics (18 MHz 3 3.6 V unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter f internal RC oscillator frequency RCOSC ...
Page 62
Philips Semiconductors Table 13: Dynamic characteristics (18 MHz 3 3.6 V unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter t SPICLK HIGH time SPICLKH master ...
Page 63
Philips Semiconductors 12.1 Waveforms clock t QVXH output data write to SBUF t XHDV input data clear RI Fig 25. Shift register mode timing SS SPICLK (CPOL = 0) (output) SPICLK (CPOL = 1) (output) MISO (input) t SPIF MOSI ...
Page 64
Philips Semiconductors V 0 0.2V 0.2V 0.45 V Fig 27. External clock timing SS SPICLK (CPOL = 0) (output) SPICLK (CPOL = 1) (output) MISO (input) t SPIF MOSI (output) Fig 28. SPI master timing (CPHA = 1) ...
Page 65
Philips Semiconductors SS t SPIR t SPILEAD SPICLK (CPOL = 0) (input) t SPIF SPICLK (CPOL = 1) (input) t SPIA MISO (output) t SPIDSU MOSI (input) Fig 29. SPI slave timing (CPHA = SPIR t SPILEAD ...
Page 66
Philips Semiconductors 12.2 ISP entry mode Table 14: Dynamic characteristics, ISP entry mode 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter t ...
Page 67
Philips Semiconductors 13.2 A/D converter electrical characteristics Table 16: A/D converter electrical characteristics 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb All limits valid ...
Page 68
Philips Semiconductors 14. Package outline PLCC28: plastic leaded chip carrier; 28 leads pin 1 index DIMENSIONS (mm dimensions are derived from the original inch dimensions ...
Page 69
Philips Semiconductors 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. 0.15 0.95 mm ...
Page 70
Philips Semiconductors HVQFN28: plastic thermal enhanced very thin quad flat package; no leads; 28 terminals; body 0.85 mm terminal 1 index area terminal 1 28 index area DIMENSIONS (mm ...
Page 71
Philips Semiconductors 15. Abbreviations Table 17: Acronym A/D CPU DAC EPROM EEPROM EMI LED PWM RAM RC RTC SAR SFR SPI UART 9397 750 15113 Product data sheet P89LPC933/934/935/936 8-bit microcontroller with accelerated two-clock 80C51 core Acronym list Description Analog ...
Page 72
Philips Semiconductors 16. Revision history Table 18: Revision history Document ID Release date P89LPC933_934_ 20050620 935_936_6 • Modifications: Updated to 18 MHz spec. P89LPC933_934_ 20041103 935_936_5 P89LPC933_934_ 20040209 935-04 9397 750 15113 Product data sheet P89LPC933/934/935/936 8-bit microcontroller with accelerated ...
Page 73
Philips Semiconductors 17. Data sheet status [1] Level Data sheet status Product status I Objective data Development II Preliminary data Qualification III Product data Production [1] Please consult the most recently issued data sheet before initiating or completing a design. ...
Page 74
Philips Semiconductors 22. Contents 1 General description . . . . . . . . . . . . . . . . . . . . . . 1 2 Features . . . . . . . . ...
Page 75
Philips Semiconductors 8.28.1 General description 8.28.2 Features . . . . . . . . . . . . ...