P8XC557E4 NXP Semiconductors, P8XC557E4 Datasheet

The P80C557E4/P83C557E4/P89C557E4 (hereafter generically referred to as P8xC557E4) single-chip 8-bit microcontroller is manufactured in an advanced CMOS process and is a derivative of the 80C51 microcontroller family

P8XC557E4

Manufacturer Part Number
P8XC557E4
Description
The P80C557E4/P83C557E4/P89C557E4 (hereafter generically referred to as P8xC557E4) single-chip 8-bit microcontroller is manufactured in an advanced CMOS process and is a derivative of the 80C51 microcontroller family
Manufacturer
NXP Semiconductors
Datasheet
Product specification
Supersedes data of 1999 Feb 15
P83C557E4/P80C557E4/P89C557E4
Single-chip 8-bit microcontroller
INTEGRATED CIRCUITS
1999 Mar 02

Related parts for P8XC557E4

P8XC557E4 Summary of contents

Page 1

P83C557E4/P80C557E4/P89C557E4 Single-chip 8-bit microcontroller Product specification Supersedes data of 1999 Feb 15 INTEGRATED CIRCUITS 1999 Mar 02 ...

Page 2

... P8xC557E4 can be expanded using standard TTL compatible memories and logic. In addition, the P8xC557E4 has two software selectable modes of power reduction — Idle Mode and power-down mode. The Idle Mode freezes the CPU while allowing the RAM, timers, serial ports, and interrupt system to continue functioning ...

Page 3

... PORTS CAPTURE EVENT LATCHES COUNT- ERS CT0I-CT3I T2 RT2 6 NOT PRESENT IN P80C557E4 7 ONLY PRESENT IN P89C557E4 Figure 1. Block diagram P8xC557E4 3 Product specification FREQUENCY RANGE TEMPERATURE (MHz) RANGE ( C) 3 +70 3 –40 to +85 3 +70 3 –40 to +85 3 +70 3 – ...

Page 4

Philips Semiconductors Single-chip 8-bit microcontroller XTAL1 XTAL2 EA ALE/WE PSEN AVref+ AVref– ADEXS PWM0 PWM1 SCL SDA ADC0-7 CMSR0-5 CMT0 CMT1 RSTIN RSTOUT EW *) only P89C557E4 with alternate function WE 1999 ...

Page 5

... P4.4/CSMR4 n.c. = not connected * = only P89C557E4 with alternate function WE Figure 3. Pinning diagram for QFP80 (SOT318) 1999 Mar 02 P83C557E4/P80C557E4/P89C557E4 P8xC557E4 Product specification ALE/WE * PSEN P2.7/A15 P2.6/A14 P2.5/A13 P2.4/A12 P2.3/A11 P2.2/A10 P2 ...

Page 6

... Port 4 P4.0 – P4.7 19 – 22 8-bit quasi-bidirectional I/O port 24 – 27 Port pin P4.0 P4.1 P4.2 P4.3 P4.4 P4.5 P4.6 P4.7 RSTIN 30 Reset: Input to reset the P8xC557E4. RSTOUT 23 Reset: Output of the P8xC557E4 for resetting peripheral devices during initialization and Watchdog Timer overflow. P1.0 – P1.7 31 – 38 Port 1 8-bit quasi-bidirectional I/O port Port pin P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 2 SCL 39 I C-bus serial clock I/O port ...

Page 7

Philips Semiconductors Single-chip 8-bit microcontroller PIN DESCRIPTION (Continued) SYMBOL PIN DESCRIPTION P3.0 – P3.7 41 – 48 8-bit quasi-bidirectional I/O port Port pin P3.0 P3.1 P3.2 P3.3 P3.4 P3.5 P3.6 P3.7 N.C. 49 – 50 Not connected pins. XTAL2 51 ...

Page 8

... For systems requiring extra capability, the P8xC557E4 can be expanded using standard memories and peripherals. V and V as The P8xC557E4 has two software selectable modes of reduced DD3 SS3 activity for further power reduction – Idle and Power-down. The Idle Mode freezes the CPU while allowing the RAM, timers, serial ports and interrupt system to continue functioning ...

Page 9

... Locations 8000H through 0FFFFH are then fetched from the external program memory. If the EA pin was held LOW during RESET the P8xC557E4 fetches all instructions from the external program memory. The EA input is latched during RESET and is don’t care after RESET. ...

Page 10

Philips Semiconductors Single-chip 8-bit microcontroller MOVX @Ri, A MOVX A, @Ri Figure 5. Indirect addressing of AUX-RAM (768 Bytes), ARD bit in PCON = 0 6.2.2.1 AUX-RAM Page Register XRAMP The AUX-RAM Page Register is used to select one of ...

Page 11

... Read only register X = Undefined * = FMCON only in P89C557E4 6.3 Addressing The P8xC557E4 has five methods for addressing: Register Direct Register-Indirect Immediate Base-Register plus Index-Register-Indirect The first three methods can be used for addressing destination operands. Most instructions have a “destination/source” field that specifies the data type, addressing methods and operands involved. ...

Page 12

Philips Semiconductors Single-chip 8-bit microcontroller BYTE ADDRESS (HEX) FFH (MSB) 7F 2FH 2EH 77 2DH 6F 67 2CH 2BH 5F 2AH 57 29H 4F 28H 47 27H 3F 26H 37 25H 2F 24H 27 23H 1F 22H 17 21H 0F ...

Page 13

Philips Semiconductors Single-chip 8-bit microcontroller DIRECT BYTE ADDRESS (HEX) FFH (MSB) PT2 PCM2 FF FE F8H F7 F6 F0H ET2 ECM2 EF EE E8H E0H E7 E6 CR2 ENS1 D8H D0H D7 D6 T2OV CMI2 C8H ...

Page 14

... Philips Semiconductors Single-chip 8-bit microcontroller 6.4 I/O Facilities The P8xC557E4 has six 8-bit ports. Ports are the same as in the 80C51, with the exception of the additional functions of Port 1. The parallel I/O function of Port 4 is equal to that of Ports 1, 2 and 3. Port 5 has a parallel input port function, but has no function as an output port ...

Page 15

... Philips Semiconductors Single-chip 8-bit microcontroller 6.5 Pulse Width Modulated Outputs The P8xC557E4 contains two pulse width modulated output channels (see Figure 13). These channels generate pulses of programmable length and interval. The repetition frequency is defined by an 8-bit prescaler PWMP, which supplies the clock for the counter ...

Page 16

Philips Semiconductors Single-chip 8-bit microcontroller 7 PWM1 (FDH) PWM1.7 PWM1.6 Table 8. Description of PWM1 bits BIT LOW/HIGH ration of PWM1 signal = PWM1 CLK 1/2 Figure 13. Functional Diagram of Pulse Width Modulated Outputs. 1999 Mar ...

Page 17

... Philips Semiconductors Single-chip 8-bit microcontroller 6.6 Analog/Digital Converter (ADC) The P8xC557E4 A/D Converter is a 10-bit, successive approximation ADC with 8 multiplexed analog input channels. It additionally contains a high input impedance comparator, a DAC built with 1024 series resistors and analog switches, registers and control logic. Input voltage range is from AV (typical 0V ref– ...

Page 18

Philips Semiconductors Single-chip 8-bit microcontroller ADC0 ADC7 AV ref+ AV ref– AV DD1 AV SS1 ADEXS SCAN LOGIC ADPSS 8 Table 10. Description of ADCON bits SYMBOL BIT FUNCTION ADCON.7 ADPR1 Control bit for the prescaler. ADCON.6 ADPR0 Control bit ...

Page 19

Philips Semiconductors Single-chip 8-bit microcontroller A/D Input Port Scan-Select Register ADPSS The Special Function Register ADPSS contains control bits to select the analog input channel( scanned for A/D conversion. The reset value of ADPSS is (00000000). Its hardware ...

Page 20

Philips Semiconductors Single-chip 8-bit microcontroller Digital Input Port Register P5 Port 5 Special Function Register P5 always represents the binary value of the logic level at input pins P5.0/ADC0...P5.7/ADC7 not affected by chip reset read ...

Page 21

... Timer/Counters The P8xC557E4 contains three 16-bit timer/event counters: Timer 0, Timer 1 and Timer T2 and one 8-bit timer, T3. Timer 0 and Timer 1 may be programmed to carry out the following functions: Measure time intervals and pulse durations ...

Page 22

Philips Semiconductors Single-chip 8-bit microcontroller When Timer Mode 3, Timer 1 can be programmed to operate in Modes but cannot set an interrupt request flag or generate an interrupt. However the overflow from ...

Page 23

Philips Semiconductors Single-chip 8-bit microcontroller 7 TCON (88H) TF1 Figure 20. Timer/Counter mode control (TCON) register. Table 14. Description of TCON bits SYMBOL BIT TF1 TCON.7 Timer 1 overflow flag. Set by hardware on Timer/Counter overflow. Cleared by hardware when ...

Page 24

Philips Semiconductors Single-chip 8-bit microcontroller 6.7.2 Timer T2 Timer bit timer/counter which has capture and compare facilities. The operational diagram is shown in Figure 21. The 16 bit timer/counter is clocked via a prescaler with a ...

Page 25

Philips Semiconductors Single-chip 8-bit microcontroller 7 TM2CON (EAH) T2IS1 Table 15. Description of TM2CON bits SYMBOL BIT T2IS1 TM2CON.7 Timer T2 16-bit overflow interrupt select T2IS0 TM2CON.6 Timer T2 byte overflow interrupt select T2ER TM2CON.5 Timer T2 external reset enable. ...

Page 26

Philips Semiconductors Single-chip 8-bit microcontroller 7 CTCON (EBH) CTN3 Table 18. Description of CTCON bits SYMBOL BIT CTN3 CTCON.7 Capture Register 3 triggered by a falling edge on CT3I CTP3 CTCON.6 Capture Register 3 triggered by a rising edge on ...

Page 27

Philips Semiconductors Single-chip 8-bit microcontroller 7 STE (EEH) TG47 Table 20. Description of STE bits SYMBOL BIT FUNCTION TG47 STE.7 If “1” then P4.7 is reset on the next toggle, if LOW P4.7 is set on the next toggle TG46 ...

Page 28

Philips Semiconductors Single-chip 8-bit microcontroller 6.8 Watchdog Timer T3 In addition to Timer T2 and the standard timers, a watchdog timer (T3) consisting of an 11-bit prescaler and an 8-bit timer is also incorporated (see Figure 27). The timer is ...

Page 29

... Philips Semiconductors Single-chip 8-bit microcontroller 6.9 Serial I/O The P8xC557E4 is equipped with two independent serial ports: SIO0 and SI01. SIO0 is the full duplex UART port, identical to the 2 PCB80C51 serial port. SIO1 C-bus serial I/O interface with byte oriented master and slave functions. 6.9.1 SIO0 (UART) SIO full duplex serial I/O port – ...

Page 30

... SIO1 (I C-bus Interface) The SIO1 of the P8xC557E4 provides the fast-mode, which allows a fourthfold increase of the bitrate up to 400 kHz. Nevertheless it is downward compatible, i.e. it can be used 100 Kbit/s I system. Except from the bit rate selection (see Table 25) and the timing of ...

Page 31

Philips Semiconductors Single-chip 8-bit microcontroller SDA ARBITRATION + SYNC LOGIC SCL Figure 29. Block diagram of I 1999 Mar 02 P83C557E4/P80C557E4/P89C557E4 7 1 SLAVE ADDRESS S1ADR 7 SHIFT REGISTER S1DAT BUS CLOCK GENERATOR 7 S1CON 7 S1STA 2 C serial ...

Page 32

Philips Semiconductors Single-chip 8-bit microcontroller The Control Register, S1CON: The CPU can read from and write to this 8-bit, directly addressable SFR. Two bits are affected by the SIO1 hardware: the SI bit is set when a serial interrupt is ...

Page 33

Philips Semiconductors Single-chip 8-bit microcontroller When SIO1 master mode serial clock frequency is determined by the clock rate bits CR2, CR1 and CR0. The various bit rates are shown in Table 25. 2 Selection of I C-bus ...

Page 34

Philips Semiconductors Single-chip 8-bit microcontroller Table 28. MST/REC mode S1STA VALUE 38H Arbitration lost while returning ACK 40H SLA and R have been transmitted, ACK received 48H SLA and R have been transmitted, ACK received 50H DATA has been received, ...

Page 35

Philips Semiconductors Single-chip 8-bit microcontroller The data shift register S1DAT This register contains the serial data to be transmitted or data which has been received. Bit 7 is transmitted or received first; i.e., data is shifted from right to left. ...

Page 36

... The latency time depends on the sequence of instructions executed directly after an interrupt request. The P8xC557E4 acknowledges interrupt requests from 15 sources as follows (see Figure 34): INT0 and INT1 external interrupts Timer 0 and Timer 1 internal timer/counter interrupts ...

Page 37

Philips Semiconductors Single-chip 8-bit microcontroller The polling cycle is repeated with every machine cycle, and the values polled are the values present at S5P2 of the previous machine cycle. Note that if an interrupt flag is active but is not ...

Page 38

Philips Semiconductors Single-chip 8-bit microcontroller Interrupt enable registers Interrupt sources Source enable INT0 External Interrupt Request Serial Port ADC Timer 0 Overflow CT0I Timer 2 Capture 0 Timer 2 Compare 0 External INT1 Interrupt Request 1 ...

Page 39

Philips Semiconductors Single-chip 8-bit microcontroller 7 IEN1 (E8H) ET2 Table 34. Description of IEN1 bits SYMBOL BIT ET2 IEN1.7 Enable T2 overflow interrupt(s) ECM2 IEN1.6 Enable T2 comparator 2 interrupt ECM1 IEN1.5 Enable T2 comparator 1 interrupt ECM0 IEN1.4 Enable ...

Page 40

Philips Semiconductors Single-chip 8-bit microcontroller 7 IP1 (F8H) PT2 Table 36. Description of IP1 bits SYMBOL BIT PT2 IP1.7 T2 overflow interrupt(s) priority level PCM2 IP1.6 T2 comparator 2 interrupt priority level PCM1 IP1.5 T2 comparator 1 interrupt priority level ...

Page 41

Philips Semiconductors Single-chip 8-bit microcontroller 7 PCON (87H) SMOD Table 39. Description of PCON bits SYMBOL BIT SMOD PCON.7 Double Baud rate bit. When set to logic 1 the baud rate is doubled when the serial port SIO0 is being ...

Page 42

Philips Semiconductors Single-chip 8-bit microcontroller 32 kHz XTAL4 Seconds timer 3.5 to XTAL1 16 MHz Figure 40. Idle and Power Down Hardware for Clock Generation Internal timing stopped Power-down Mode oscillator start_up oscillator stopped XTAL1,2 32 kHz oscillator stopped running ...

Page 43

... Both are operated in parallel resonance. XTAL1 is the high gain amplifier input, and XTAL2 is the output (see Figure 42). To drive the P8xC557E4 externally, XTAL1 is driven from an external source and XTAL2 left open-circuit (see Figure 43). 6.12.2 XTAL3, 4 Circuitry Please refer to chapter 6 ...

Page 44

Philips Semiconductors Single-chip 8-bit microcontroller 6.13 32kHz PLL Oscillator with Seconds Timer 6.13.1 XTAL3,4 Oscillator Circuitry The input signal SELXTAL1 connected to logic “0” selects the 32kHz oscillator together with the PLL instead of the XTAL1,2 oscillator, which is halted. ...

Page 45

Philips Semiconductors Single-chip 8-bit microcontroller 6.13.4 Seconds Timer This counter provides an overflow signal every second, when the 32kHz oscillator is running. The overflow output sets the interrupt flag SECINT. This interrupt can be disabled/enabled by ENSECI. If SECINT is ...

Page 46

Philips Semiconductors Single-chip 8-bit microcontroller 6.14 Reset Circuitry The reset input pin RSTIN is connected to a Schmitt trigger for noise reduction (see Figure 46). Is the HF-oscillator selected a Reset is accomplished by holding the RSTIN pin HIGH for ...

Page 47

... Philips Semiconductors Single-chip 8-bit microcontroller 7. INSTRUCTION SET The P8xC557E4 uses the powerful instruction set of the PCB80C51. It consists of 49 single-byte, 45 two-byte and 17 three-byte instructions. Using a 16 MHz quartz the instructions are executed in 0. 1,5 s and the multiply, divide instructions summary of the instruction set is given in Table 43. ...

Page 48

Philips Semiconductors Single-chip 8-bit microcontroller Table 43. 80C51 Instruction Set Summary MNEMONIC ARITHMETIC OPERATIONS ADD A,Rn Add register to Accumulator ADD A,direct Add direct byte to Accumulator ADD A,@Ri Add indirect RAM to Accumulator ADD A,#data Add immediate data to ...

Page 49

Philips Semiconductors Single-chip 8-bit microcontroller Table 43. 80C51 Instruction Set Summary (Continued) MNEMONIC LOGICAL OPERATIONS (Continued) XRL A,#data Exclusive-OR immediate data to Accumulator XRL direct,A Exclusive-OR Accumulator to direct byte XRL direct,#data Exclusive-OR immediate data to direct byte CLR A ...

Page 50

Philips Semiconductors Single-chip 8-bit microcontroller Table 43. 80C51 Instruction Set Summary (Continued) MNEMONIC BOOLEAN VARIABLE MANIPULATION CLR C Clear carry CLR bit Clear direct bit SETB C Set carry SETB bit Set direct bit CPL C Complement carry CPL bit ...

Page 51

... Philips Semiconductors Single-chip 8-bit microcontroller Table 44. Instruction map P8xC557E4 NOP AJMP LJMP addr11 addr16 1 JBC ACALL LCALL bit, rel addr11 addr16 2 JB AJMP RET bit, rel addr11 3 JNB ACALL RETI bit, rel addr11 4 JC AJMP ORL rel addr11 dir, A ...

Page 52

Philips Semiconductors Single-chip 8-bit microcontroller 8. FLASH EEPROM 8.1 General 32 Kbytes electrically erasable internal program memory with Block-and Page-Erase option (”Flash Memory”). Internal fixed boot ROM Kbytes external program memory in combination with the internal FEEPROM ...

Page 53

Philips Semiconductors Single-chip 8-bit microcontroller External Program Memory ( 7FFFH Security Byte External Program Internal Memory Program Memory ( ( X the program execution ...

Page 54

Philips Semiconductors Single-chip 8-bit microcontroller 7 FMCON (FB) UBS1 NOTE: 1. Reserved for future use; a write operation must write “0” to the location. Table 45. Description of FMCON bits UBS1 UBS0 User - Boot selection bits 0 0 User ...

Page 55

Philips Semiconductors Single-chip 8-bit microcontroller Example of user software (internal or external) that calls the Page Erase routine in the boot ROM to erase a page in the FEEPROM (32 bytes) starting at address location 1260H. CLR EA ; Disable ...

Page 56

Philips Semiconductors Single-chip 8-bit microcontroller 1 DON’T CARE 4-6MHz 1 A0– 4-6MHz 1 A0- 4-6MHz 1999 Mar 02 P83C557E4/P80C557E4/P89C557E4 +5 V SELXTAL1 RSTIN EA P3.6 ALE/WE P3.7 ...

Page 57

Philips Semiconductors Single-chip 8-bit microcontroller FEEPROM PROGRAMMING AND VERIFICATION CHARACTERISTICS T = – + 10%, V amb DD SYMBOL PARAMETER 1/t System clock frequency (standard oscillator) CLK t Address setup to WE LOW ...

Page 58

Philips Semiconductors Single-chip 8-bit microcontroller ALL OTHER PINS ARE DON’T CARE 32.768 kHz 1) Alternative XTAL1, 2 may be selected (SELXTAL1 = 1) Figure 54. Serial programming (boot mode) Configuration 8.6 Serial Programming of FEEPROM Serial in-circuit programming (boot-mode) is ...

Page 59

Philips Semiconductors Single-chip 8-bit microcontroller Definitions: : – Record start character BC – Byte Count. The hexadecimal number of data bytes in the record. This may theoretically be any number from 0 to 255, although many assemblers prefer to deal ...

Page 60

... Philips Semiconductors Single-chip 8-bit microcontroller 10. DC CHARACTERISTICS DC ELECTRICAL CHARACTERISTICS 10%), +70 C (P8xC557E4EBx). All voltages with respect amb SYMBOL PARAMETER V Supply voltage DD I Supply current operating : DD P89C557E4 P83C557E4 I Supply current Idle Mode : ID P89C557E4 P83C557E4 Supply current Power-down mode ...

Page 61

... Single-chip 8-bit microcontroller DC ELECTRICAL CHARACTERISTICS (Continued 10%), – +85 C (P8xC557E4EFx amb DC parameters not included here are the same as in the P8xC557E4EBx, DC electrical characteristics All voltages with respect to V unless otherwise specified. SS SYMBOL PARAMETER R Internal reset pull-down resistor RST ...

Page 62

Philips Semiconductors Single-chip 8-bit microcontroller NOTES FOR DC ELECTRICAL CHARACTERISTICS: 1. See Figures 55 and 57 through 59 for The operating supply current is measured with all output pins disconnected; XTAL1 driven with ...

Page 63

Philips Semiconductors Single-chip 8-bit microcontroller (mA (1) Maximum operating mode P89C557E4 (2) Maximum operating mode P83C557E4/P80C557E4 (3) Maximum Idle Mode P89C557E4 (4) Maximum Idle Mode P83C557E4/P80C557E4 Figure 55. Supply Current (I 1999 ...

Page 64

Philips Semiconductors Single-chip 8-bit microcontroller 1023 1022 1021 1020 1019 1018 7 Code Out Offset error OS e (1) Example of an actual transfer curve. (2) The ideal transfer ...

Page 65

... DD SS CLK + min = 63 ns for P8xC557E4EBx amb CLK T = – + min = 63 ns for P8xC557E4EFx amb CLK C1 = 100 pF for Port 0, ALE and PSEN ; for all other outputs unless otherwise specified. SYMBOL FIGURE PARAMETER 1/t 60 System clock frequency CLK ...

Page 66

Philips Semiconductors Single-chip 8-bit microcontroller AC ELECTRICAL CHARACTERISTICS (Continued) SYMBOL PARAMETER Interface timing (refer to Figure 63) f SCL clock frequency SCL t Bus free time between a STOP and START condition BUF t Hold time (repeated) ...

Page 67

Philips Semiconductors Single-chip 8-bit microcontroller V IH1 2.4 V 2.0 V Test Points 0.8 V 0.45 V NOTE: AC inputs during testing are driven at 2.4V for a logic ‘HIGH’ and 0.45V for a logic ‘LOW’. Timing measurements are made ...

Page 68

Philips Semiconductors Single-chip 8-bit microcontroller ALE PSEN t LLWL RD t LLAX t AVLL A0–A7 PORT 0 FROM RI OR DPL t AVWL PORT 2 ALE PSEN t LLWL LLAX AVLL A0–A7 PORT 0 FROM RI OR ...

Page 69

Philips Semiconductors Single-chip 8-bit microcontroller START or repeated START condition t RD SDA (INPUT/OUTPUT SCL (INPUT/OUTPUT HD;STA LOW HIGH INSTRUCTION 0 1 ALE t XLXL CLOCK t t QVXH OUTPUT DATA 0 WRITE ...

Page 70

Philips Semiconductors Single-chip 8-bit microcontroller XTAL1 INPUT ALE dotted lines are valid when are active PSEN only active during a read RD from external data memory only active WR during a write to external ...

Page 71

Philips Semiconductors Single-chip 8-bit microcontroller QFP80: plastic quad flat package; 80 leads (lead length 1.95 mm); body 2.7 mm; high stand-off height 1999 Mar 02 P83C557E4/P80C557E4/P89C557E4 71 Product specification SOT318-1 ...

Page 72

Philips Semiconductors Single-chip 8-bit microcontroller Data sheet status Data sheet Product Definition status status Objective Development This data sheet contains the design target or goal specifications for product development. specification Specification may change in any manner without notice. Preliminary Qualification ...

Related keywords