P80C592 Philips Semiconductors, P80C592 Datasheet

no-image

P80C592

Manufacturer Part Number
P80C592
Description
8-bit microcontroller with on-chip CAN
Manufacturer
Philips Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P80C592EFA
Manufacturer:
a
Quantity:
4
Part Number:
P80C592FFA
Manufacturer:
PANASONIC
Quantity:
1 200
Part Number:
P80C592FFA
Quantity:
1 235
Part Number:
P80C592FFA
Manufacturer:
NXP
Quantity:
1 240
Part Number:
P80C592FFA
Manufacturer:
RCA
Quantity:
8
Part Number:
P80C592FFA
Manufacturer:
PHI
Quantity:
20 000
Part Number:
P80C592FFA/00
Manufacturer:
SYSTECH
Quantity:
40
Part Number:
P80C592FFA/00
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
P80C592FFA/00,512
Manufacturer:
ON
Quantity:
300
Part Number:
P80C592FFA/00,512
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
P80C592FFA/00,518
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Product specification
Supersedes data of January 1995
File under Integrated Circuits, IC18
DATA SHEET
P8xC592
8-bit microcontroller
with on-chip CAN
INTEGRATED CIRCUITS
1996 Jun 27

Related parts for P80C592

P80C592 Summary of contents

Page 1

DATA SHEET P8xC592 8-bit microcontroller with on-chip CAN Product specification Supersedes data of January 1995 File under Integrated Circuits, IC18 INTEGRATED CIRCUITS 1996 Jun 27 ...

Page 2

... Philips Semiconductors 8-bit microcontroller with on-chip CAN CONTENTS 1 FEATURES 2 GENERAL DESCRIPTION 3 ORDERING INFORMATION 4 BLOCK DIAGRAM 5 PINNING 6 FUNCTIONAL DESCRIPTION 7 MEMORY ORGANIZATION 7.1 Program Memory 7.2 Internal Data Memory 7.3 External Data Memory 8 I/O PORT STRUCTURE 9 PULSE WIDTH MODULATED OUTPUTS (PWM) 9.1 Prescaler frequency control register (PWMP) 9.2 Pulse Width Register 0 (PWM0) 9 ...

Page 3

... In addition to the 80C51 standard features, the device provides a number of dedicated hardware functions for these applications. Two versions of the P8xC592 will be offered: P80C592 (without ROM) P83C592 (with ROM). Hereafter these versions will be referred to as P8xC592. The temperature range includes (max +85 C version, for general applications 40 to +125 C version for automotive applications ...

Page 4

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 4 BLOCK DIAGRAM 1996 Jun 27 4 Product specification P8xC592 pagewidth full handbook, pagewidth full handbook, ...

Page 5

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 5 PINNING handbook, full pagewidth alternative function ADC0 ADC1 ADC2 ADC3 ADC4 ADC5 ADC6 ADC7 CMSR0 CMSR1 CMSR2 CMSR3 CMSR4 CMSR5 CMT0 CMT1 1996 Jun 27 XTAL1 XTAL2 EA PSEN ALE PWM0 PWM1 CRX0 CRX1 REF AV SS ...

Page 6

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth P4.3/CMSR3 10 P4.4/CMSR4 11 P4.5/CMSR5 12 P4.6/CMT0 13 P4.7/CMT1 14 RST 15 P1.0/CT0I/INT2 16 P1.1/CT1I/INT3 17 P1.2/CT2I/INT4 18 P1.3/CT3I/INT5 19 P1.4/T2 20 P1.5/RT2 P1.6/CTX0 24 P1.7/CTX1 P3.0/RXD 25 P3.1/TXD 26 Fig.3 Pin configuration PLCC68/SOT188-2 version (P8xC592FFA; FHA;). 1996 Jun 27 P8xC592 6 Product specification ...

Page 7

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 1 Pin description for single function pins (SOT188-2; see note 1) SYMBOL PIN V 2 Power supply, digital part (+5 V). For normal operation and power reduced modes. DD STADC 3 Start ADC operation. Input starting analog-to-digital conversion (note 2). This pin must not float. ...

Page 8

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 6. Pin 55, REF: a) Selection of input resp. output dependent of CAN Control Register bit 5 (CR.5; see Section 13.5.3 Table 32 the internal reference is used, then REF should be connected After an external reset (RST = HIGH) the internal d) If the CAN-controller is in the reset state, e.g. after an external reset, then the during Power-down mode ...

Page 9

... Philips Semiconductors 8-bit microcontroller with on-chip CAN SYMBOL DEFAULT ALTERNATIVE Port 3 P3.0 to P3.7 RXD TXD INT0 INT1 Port 2 (Sink/source: 1 TTL = 4 P2.0 to P2.7 A08 to A15 Port 0 (Sink/source: 8 LSTTL inputs) P0.7 to P0.0 AD7 to AD0 Port 5 P5.7 to P5.0 ADC7 to ADC0 Notes 1. To avoid a ‘latch up’ effect at power-on the CAN-controller is in the reset state (e.g. after a power-up reset ...

Page 10

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 6 FUNCTIONAL DESCRIPTION The P8xC592 functions will be described as shown in the following overview: Memory organization I/O Port structure Pulse Width Modulated outputs Analog-to-digital Converter Timers/Counters Serial I/O Ports Interrupt system Power reduction modes Oscillator circuitry Reset circuitry Instruction Set ...

Page 11

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 7.1 Program Memory The Program Memory of the P8xC592 consists of 16 kbytes ROM on-chip, externally expandible kbytes. Table 3 Instruction fetch controlled by EA PIN EA (note 1) DURING RESET AFTER RESET LATCHED TO ‘don’t care’ ...

Page 12

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 7.2.1 MAIN RAM Four 8-bit register banks occupy the lower RAM area, BANK 0: location BANK 1: location BANK 2: location BANK 4: location 24 to 31. Only one of these banks may be enabled at the same time. The next 16 bytes, locations 32 through 45, contains 128 directly addressable bit locations ...

Page 13

... Philips Semiconductors 8-bit microcontroller with on-chip CAN REGISTER handbook, full pagewidth MNEMONIC CANCON 1996 Jun 27 BIT ADDRESS T3 PWMP PWM1 PWM0 IP1 RTE STE # TMH2 # TML2 CTCON TM2CON IEN1 ACC ...

Page 14

... Philips Semiconductors 8-bit microcontroller with on-chip CAN REGISTER handbook, full pagewidth MNEMONIC 1996 Jun 27 BIT ADDRESS IP0 CTL3 # CTL2 # CTL1 # CTL0 CML2 CML1 CML0 IEN0 S0BUF S0CON ...

Page 15

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 8 I/O PORT STRUCTURE The P8xC592 has six 8-bit parallel ports: Port 0 to Port 5. In addition to the standard 8-bit parallel ports, the I/O facilities also include a number of special I/O lines. The use of a Port 1, Port 3 or Port 4 pins as an alternative function is carried out automatically provided the associated SFR bit is set HIGH ...

Page 16

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Notes to the alternative Port functions 1. Port lines P1.6 and P1.7 may be selected as CTX0 and CTX1 outputs of the serial port SIO1 (CAN). After reset P1.6 and P1.7 may be used as normal I/O ports, if the CAN interface is not used. 2. Unused analog inputs can be used as digital inputs. As Port 5 lines may be used as inputs to the ADC, these digital inputs have an inherent hysteresis to prevent the input logic from drawing too much current from the power lines when driven by analog signals ...

Page 17

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 9.1 Prescaler frequency control register (PWMP) Table 7 Prescaler frequency control register (address FEH PWMP.7 PWMP.6 Table 8 Description of PWMP bits BIT SYMBOL 7 PWMP.7 Prescaler division factor The Prescaler division factor = (PWMP PWMP.0 9.2 Pulse Width Register 0 (PWM0) ...

Page 18

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth clk 1 Fig.9 Functional diagram of Pulse Width Modulated outputs. 10 ANALOG-TO-DIGITAL CONVERTER (ADC) The analog input circuitry consists of an 8-input analog multiplexer and an ADC with 10-bit resolution. The analog reference voltage and analog power supplies are connected via separate input pins ...

Page 19

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 10.1 ADC Control register (ADCON) Table 13 ADC Control register (address C5H ADC.1 ADC.0 Table 14 Description of the ADCON bits BIT SYMBOL 7 ADC.1 Bit 1 of ADC converted value. 6 ADC.0 Bit 0 of ADC converted value. 5 ADEX Enable external start of conversion by STADC. If ADEX is: LOW, then conversion cannot be started externally by STADC (only by software by setting ADCS) HIGH, then conversion can be started externally by a rising edge on STADC or externally ...

Page 20

... Philips Semiconductors 8-bit microcontroller with on-chip CAN ADC0 ADC1 ADC2 ADC3 ANALOG INPUT MULTIPLEXER ADC4 ADC5 ADC6 ADC7 ADCON 1996 Jun 27 10-BIT A/D CONVERTER INTERNAL BUS Fig.10 Functional diagram of analog input. 20 Product specification STADC analog reference supply (analog part) ...

Page 21

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 11 TIMERS/COUNTERS The P8xC592 contains: Three 16-bit timer/event counters: Timer 0, Timer 1 and Timer T2 One 8-bit timer, T3 (Watchdog WDT). 11.1 Timer 0 and Timer 1 Timer 0 and Timer 1 may be programmed to carry out the following functions: Measure time intervals and pulse durations Count events Generate interrupt requests ...

Page 22

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth CT0I CT0 off f CLK 1/12 T2 RT2 T2ER external reset enable STE RTE S = set R = reset T = toggle TG = toggle status 1996 Jun 27 INT CT1I INT CTI0 CTI1 ...

Page 23

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 11.2 OUNTER ONTROL REGISTER Table 16 Counter Control register (address EAH T2IS1 T2IS0 Table 17 Description of the TM2CON bits BIT SYMBOL 7 T2IS1 Timer 2 16-bit overflow interrupt select. 6 T2IS0 Timer 2 byte overflow interrupt select. ...

Page 24

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 11.2 IMER NTERRUPT LAG REGISTER Table 22 Timer Interrupt Flag register (address C8H T2OV CMI2 Table 23 Description of the TM2IR bits (see notes 1 and 2) BIT SYMBOL 7 T2OV T2: 16-bit overflow interrupt flag 6 CMI2 CM2: interrupt flag ...

Page 25

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 11.2 ESET OGGLE NABLE REGISTER Table 26 Reset/Toggle Enable register (address EFH TP47 TP46 Table 27 Description of the RTE bits (note 1) BIT SYMBOL 7 TP47 if HIGH then P4.7 toggles on a match of CM2 and T2 6 TP46 if HIGH then P4.6 toggles on a match of CM2 and T2 ...

Page 26

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 11.3 Watchdog Timer (T3) In addition to Timer T2 and the standard timers (Timer 0 and Timer 1), a Watchdog Timer (WDT) comprising an 11-bit prescaler and an 8-bit timer (T3) is also provided (see Fig.12). The timer T3 is incremented every 1.5 ms, derived from ...

Page 27

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 12 SERIAL I/O PORT: SIO0 (UART) The Serial Port SIO0 is a full duplex (UART) serial I/O port i.e. it can transmit and receive simultaneously. This Serial Port is also receive-buffered. It can commence reception of a second byte before the previously received byte has been read from the receive register ...

Page 28

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.3 Interface between CPU and CAN The internal interface between the P8xC592's CPU and on-chip CAN-controller is achieved via the following four SFRs (see Fig.13): CANADR, to point to a register of the CAN-controller CANDAT, to read or write data CANCON, to read interrupt flags and to write commands CANSTA, to read status information and to write DMA pointer ...

Page 29

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth address data Fig.14 Block diagram of the P8xC592 on-chip CAN-controller. Table 29 Hardware blocks of the CAN-controller (see Fig.14) NAME Interface Management Logic IML Transmit Buffer Receive Buffers (0 and 1) Bit Stream Processor Bit Timing Logic ...

Page 30

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5 Control Segment and Message Buffer description The CAN-controller appears to the CPU as a memory-mapped peripheral, guaranteeing the independent operation of both parts. 13.5.1 A DDRESS ALLOCATION The address area of the CAN-controller consists of the Control Segment and the message buffers. The Control Segment is programmed during an initialization down-load in order to configure communication parameters (e ...

Page 31

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 30 CPU/CAN Register map 7 6 Control Segment ADDRESS ONTROL EGISTER ADDRESS OMMAND EGISTER RX0A RX1A WUM ADDRESS TATUS EGISTER ADDRESS NTERRUPT EGISTER Reserved Reserved Reserved ...

Page 32

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 7 6 Transmit Buffer A 10: I DDRESS DENTIFIER ID.10 ID.9 ID.8 A 11: RTR DDRESS ATA ENGTH ID.2 ID.1 ID ADDRESS TO YTES TO Data Data Data Receive Buffer 0 and 1 A 20: I DDRESS DENTIFIER ID.10 ID.9 ID.8 A 21: RTR DDRESS ATA ENGTH ID.2 ID.1 ID ADDRESS ...

Page 33

... Philips Semiconductors 8-bit microcontroller with on-chip CAN BIT SYMBOL 5 RA Reference Active (notes 2). If the value of RA is: 4 OIE Overrun Interrupt Enable. If the value of OIE is: 3 EIE Error Interrupt Enable. If the value of EIE is: 2 TIE Transmit Interrupt Enable. If the value of TIE is: ...

Page 34

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth REF 0 CRX0 CRX1 S1 1 1996 Jun 27 RX0 RX1 P8xC592 Fig.16 Configurable CAN receiver. 34 Product specification RX0 ACTIVE RX1 ACTIVE REFERENCE ACTIVE 1 VOLTAGE DD WAKE-UP MODE single-ended wake-up 1 WAKE-UP (bus active signal) ...

Page 35

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5 (CMR) OMMAND EGISTER A command bit initiates an action within the transfer layer of the CAN-controller. The Command Register appears to the CPU as a read/write memory, except for the bits CMR.0 (TR) to CMR.3 (COS), which return a HIGH if being read. ...

Page 36

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Notes to the description of the CMR bits 1. The RX0/RX1 Active bits, if being read, reflect the status of the respective switches (see Fig.16 recommended to change the switches only during the reset state (Reset Request = HIGH). 2. The Wake-Up Mode bit should be set at the same time as the Sleep bit. The differential wake up mode is useful if both bus wires are fully functioning ...

Page 37

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5 (SR) TATUS EGISTER The contents of the Status Register reflects the status of the CAN-controller. The Status Register appears to the CPU as a read only memory. Table 36 Status Register (address Table 37 Description of the SR bits BIT SYMBOL ...

Page 38

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Notes to the description of the SR bits 1. When the Bus Status bit is set HIGH (Bus-OFF), the CAN-controller will set the Reset Request bit HIGH (present). It will stay in this state until the CPU sets the Reset Request bit LOW (absent). Once this is completed the CAN-controller will wait the minimum protocol-defined time (128 occurrences of the Bus-Free signal) before setting the Bus Status bit LOW (Bus-ON), the Error Status bit LOW (ok) and resetting the Error Counters ...

Page 39

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5 (IR) NTERRUPT EGISTER The Interrupt Register allows the identification of an interrupt source. When one or more bits of this register are set, a CAN interrupt (SI01) will be indicated to the CPU. All bits are reset by the CAN-controller after this register is read by the CPU ...

Page 40

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 40 Effects of setting the Reset Request bit HIGH (present) TYPE BIT SYMBOL Control CR.7 TM CR.5 RA Command CMR.7 RX0A CMR.6 RX1A CMR.4 SLP CMR.3 COS CMR.2 RRB CMR.1 AT CMR.0 TR Status SR.7 BS SR.6 ES SR.5 TS SR.4 RS SR.3 TCS SR.2 TBS SR.1 DO SR.0 RBS Interrupt IR ...

Page 41

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5 CCEPTANCE ODE EGISTER The Acceptance Code Register is part of the acceptance filter of the CAN-controller. This register can be accessed (read/write), if the Reset Request bit is set HIGH (present). When a message is received which passes the acceptance test and if there is an empty Receive Buffer, then the respective Descriptor and Data Field (see Fig ...

Page 42

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5 (BTR0) US IMING EGISTER The contents of Bus Timing Register 0 defines the values of the Baud Rate Prescaler (BRP) and the Synchronization Jump Width (SJW). Table 45 Bus Timing Register 0 (address SJW.1 SJW.0 Table 46 Description of the BTR0 bits ...

Page 43

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5. 1(BTR1) US IMING EGISTER The contents of Bus Timing Register 1 defines the length of the bit period, the location of the sample point and the number of samples to be taken at each sample point. Table 47 Bus Timing Register 1 (address 7) ...

Page 44

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5. UTPUT ONTROL EGISTER The Output Control Register allows, under software control, the set-up of different output driver configurations. This register can be accessed (read/write) if the Reset Request bit is set HIGH (present). If the CAN-controller is in the sleep mode (Sleep = HIGH) a recessive level is output on the CTX0 and CTX1 pins ...

Page 45

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 52 Output pin set-up DRIVE OCTPx Float Pull-down Pull- Push/Pull Notes 1. TPx is the on-chip output transistor x, connected TNx is the on-chip output transistor x, connected CTXx is the serial output level on CTX0 or CTX1 required that the output level on the CAN-bus is dominant with TXD = 0 and recessive with TXD = 1, see Section 13.6.1.1 “ ...

Page 46

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5. (TR) EST EGISTER The Test Register is used for production testing only. Table 53 Test Register (address Reserved Reserved Map Internal Register 13.5. RANSMIT UFFER LAYOUT The global layout of the Transmit Buffer is shown in Fig.15. This buffer serves to store a message from the CPU to be transmitted by the CAN-controller ...

Page 47

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 57 Description of the other DSCR2 bits BIT SYMBOL 4 RTR Remote Transmission Request. If the RTR bit is: HIGH (remote), then the Remote Frame will be transmitted by the CAN-controller. LOW (data), then the Data Frame will be transmitted by the CAN-controller. ...

Page 48

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5.15.1 Special Function Register CANADR CANADR is implemented as a read/write register. Table 59 SFR CANADR (address DBH DMA Table 60 Description of the CANADR bits BIT SYMBOL 7 DMA DMA-logic controlled via bit CANADR.7 (see Section 13.5.17). 6 Reserved. 5 AutoInc Auto Address Increment mode controlled via bit CANADR.5 (see Section 13.5.16). ...

Page 49

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5.15.3 Special Function Register CANCON Table 63 SFR CANCON in Read access (address D9H Table 64 Description of the CANCON bits in Read access When reading CANCON the Interrupt Register of the CAN-controller is accessed. BIT SYMBOL 7 Reserved; bits are read as HIGH. ...

Page 50

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5.15.4 Special Function Register CANSTA CANSTA is implemented as a bit-addressable read/write register. The bit addresses of CANSTA ( are DFH to D8H. Table 67 SFR CANCON in Read access (address DFH to D8H Table 68 Description of the CANCON bits in Read access When reading CANSTA the Status Register of the CAN-controller is accessed ...

Page 51

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5.16 A UTO ADDRESS INCREMENT With the Auto Address Increment mode a fast stack-like reading and writing of CAN-controller internal registers is provided. If the bit CANADR.5 (AutoInc) is HIGH, the content of CANADR is incremented automatically after any read or write access to CANDAT. For instance, loading a ...

Page 52

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth transmit point 1 clock cycle (t (a) As defined by the CAN-protocol. (b) As implemented in the P8xC592's on-chip CAN-controller. 13.5.19.2 Time Segment 1 (TSEG1) This segment determines the location of the sampling point within a bit period, which is at the end of TSEG1. ...

Page 53

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5.19.3 Time Segment 2 (TSEG2) This time segment provides: Additional time at the sample point for calculation of the subsequent bit levels (e.g. arbitration) Synchronization buffer segment directly after the sample point. TSEG2 is programmable from system clock cycles (see Section 13 ...

Page 54

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.5.20.1 Synchronization Rules The synchronization rules are as follows: Only one synchronization within one bit time is used. An edge is used for synchronization only if the value detected at the previous sample point differs from the bus value immediately after the edge. ...

Page 55

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.6.2.4 RTR bit A CAN-controller, acting as a receiver for certain information may initiate the transmission of the respective data by transmitting a Remote Frame to the network, addressing the data source via the Identifier and setting the RTR bit HIGH (remote; recessive bus level). If the data source simultaneously transmits a Data Frame containing the requested data, it uses the same Identifier ...

Page 56

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 1996 Jun 27 56 Product specification P8xC592 pagewidth full handbook, ...

Page 57

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.6 EMOTE RAME A CAN-controller acting as a receiver for certain information may initiate the transmission of the respective data by transmitting a Remote Frame to the network, addressing the data source via the Identifier and setting the RTR bit HIGH (remote; recessive bus level). The ...

Page 58

... Philips Semiconductors 8-bit microcontroller with on-chip CAN DATA FRAME handbook, full pagewidth 13.6 VERLOAD RAME The Overload Frame consists of two fields: The Overload Flag The Overload Delimiter. The transmission of an Overload Frame may only start: Condition 1; during the first bit period of an expected Intermission Field. Condition 2 ...

Page 59

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.6.5.2 Overload Delimiter The Overload Delimiter consists of eight recessive bits and takes the same form as the Error Delimiter. After transmission of an Overload Flag, each CAN-controller monitors the bus-line until it detects a transition from a dominant-to-recessive bit level. At this point in time, every ...

Page 60

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.6.7.4 Error Signalling A CAN-controller which detects an error condition, transmits an Error Flag. Whenever a Bit Error, Stuff Error, Form Error or an Acknowledgement Error is detected, transmission of an Error Flag is started at the next bit. Whenever a CRC Error is detected, transmission of an ...

Page 61

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.6.8.3 CRC Error To ensure the validity of a transmitted message all receivers perform a CRC check. Therefore, in addition to the (destuffed) information digits (Start-Of-Frame up to Data Field), every message includes some control digits (CRC Sequence; generated by the transmitting CAN-controller of the respective message) used for error detection ...

Page 62

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 13.6.9.4 Error-Passive An error-passive CAN-controller may transmit or receive messages normally. In the case of a detected error condition it transmits a Passive Error Flag instead of an Active Error Flag. Hence the influence on bus activities by an error-active CAN-controller (e.g. due to a malfunction) is reduced ...

Page 63

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 14 INTERRUPT SYSTEM External events and the real-time-driven on-chip peripherals require service by the CPU asynchronous to the execution of any particular section of code. To tie the asynchronous activities of these functions to normal program execution a multiple-source, two-priority-level, nested interrupt system is provided. Interrupt response latency is from 2 ...

Page 64

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth interrupt sources INT0 EXTERNAL INTERRUPT REQUEST 0 CAN SERIAL PORT 1 ADC TIMER 0 OVERFLOW CT0I TIMER 2 CAPTURE 0 TIMER 2 COMPARE 0 EXTERNAL INT1 INTERRUPT REQUEST 1 CT1I TIMER 2 CAPTURE 1 TIMER 2 COMPARE 1 TIMER 1 OVERFLOW CT2I TIMER 2 CAPTURE 2 ...

Page 65

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 14.1 Interrupt Enable and Priority Registers 14.1 NTERRUPT NABLE REGISTER Table 71 Interrupt Enable register 0 (address A8H EAD Table 72 Description of the IEN0 bits BIT SYMBOL 7 EA General enable/disable control. If bit EA is: 6 EAD Enable ADC interrupt. ...

Page 66

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 14.1 NTERRUPT RIORITY REGISTER Table 75 Interrupt Priority register 0 (address B8H PAD Table 76 Description of the IP0 bits BIT SYMBOL 7 Not used. 6 PAD ADC interrupt priority level. 5 PS1 SIO1 (CAN) interrupt priority level. 4 PS0 SIO0 (UART) interrupt priority level. ...

Page 67

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 14.2 Interrupt Vectors The vector indicates the Program Memory location where the appropriate interrupt service routine starts (see Table 79). Table 79 Interrupt vectors SOURCE External 0 Timer 0 overflow External 1 Timer 1 overflow Serial I/O 0 (UART) Serial I/O 1 (CAN) ...

Page 68

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 15.1 Power Control Register (PCON) Table 80 Power Control Register (address 87H SMOD Table 81 Description of the PCON bits BIT SYMBOL 7 SMOD Double baud rate bit. When set to logic 1 the baud rate is doubled when the serial port SIO0 is being used in Modes 1, 2 and 3 ...

Page 69

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 15.4 Power-down Mode The instruction that sets bit PCON.1 to HIGH, is the last one executed before entering the Power-down mode. In Power-down mode the oscillator of the P8xC592 is stopped. If the CAN-controller is in use recommended to set it into Sleep mode before entering Power-down mode ...

Page 70

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 16 OSCILLATOR CIRCUITRY The oscillator circuitry of the P8xC592 is a single-stage inverting amplifier in a Pierce oscillator configuration. The circuitry between XTAL1 and XTAL2 is basically an inverter biased to the transfer point. Either a crystal or ceramic resonator can be used as the feedback element to complete the oscillator circuitry ...

Page 71

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 83 Internal registers' contents after a reset X = undefined state. REGISTER 7 6 CPU part ACC 0 0 ADC0 X X ADCH CML0 to CML2 0 0 CMH0 to CMH2 0 0 CTCON 0 0 CTL0 to CTL3 X X CTH0 to CTH3 X X DPL ...

Page 72

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 17.1 Power-on Reset If the RST pin is connected shown in Fig.26, an automatic reset can be obtained by switching on V (provided its rise time is 10 ms). The DD decrease of the RST pin voltage depends on the capacitor and the internal resistor R . That voltage must remain ...

Page 73

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 18.2 Instruction Set For the description of the Data Addressing Modes and Hexadecimal opcode cross-reference see Table 88. Table 84 Instruction set description: Arithmetic operations MNEMONIC Arithmetic operations ADD A,Rr Add register to A ADD A,direct Add direct byte to A ADD ...

Page 74

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 85 Instruction set description: Logic operations MNEMONIC Logic operations ANL A,Rr AND register to A ANL A,direct AND direct byte to A ANL A,@Ri AND indirect RAM to A ANL A,#data AND immediate data to A ANL direct,A AND A to direct byte ...

Page 75

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 86 Instruction set description: Data transfer MNEMONIC Data transfer MOV A,Rr Move register to A MOV A,direct (note 1) Move direct byte to A MOV A,@Ri Move indirect RAM to A MOV A,#data Move immediate data to A MOV Rr,A Move A to register ...

Page 76

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 87 Instruction set description: Boolean variable manipulation, Program and machine control MNEMONIC Boolean variable manipulation CLR C Clear carry flag CLR bit Clear direct bit SETB C Set carry flag SETB bit Set direct bit CPL C Complement carry fl ...

Page 77

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 88 Description of the mnemonics in the Instruction set MNEMONIC Data addressing modes Rr Working register R0-R7. direct 128 internal RAM locations and any special function register (SFR). @Ri Indirect internal RAM location addressed by register the actual register bank. ...

Page 78

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 89 Instruction map 1996 Jun 27 78 Product specification P8xC592 ...

Page 79

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 19 ABSOLUTE MAXIMUM RATINGS (note 1) In accordance with the Absolute Maximum Rating System (IEC 134). SYMBOL V voltage input voltage on any pin I1 (except CTX0, CTX1, CRX0, CRX1 and EA/V V input voltage on EA input/output current on any single I/O pin ...

Page 80

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 20 DC CHARACTERISTICS 10 all voltages with respect +125 C for the P8xC592FHA; T amb SYMBOL PARAMETER Supply (digital part) V supply voltage DD I operating supply current DD I supply current Idle mode DD(ID) I supply current Idle & Sleep mode ...

Page 81

... Philips Semiconductors 8-bit microcontroller with on-chip CAN SYMBOL PARAMETER V HIGH level output voltage RST OH2 R RST pull-down resistor RST C I/O pin capacitance I/O Supply (analog part) AV supply voltage DD AI operating supply current DD AI supply current Idle mode DD(ID) AI supply current Idle and Sleep mode: note 3 ...

Page 82

... Philips Semiconductors 8-bit microcontroller with on-chip CAN SYMBOL PARAMETER CAN output driver ( LOW level output voltage OLT (CTX0 and CTX1) V High level output voltage OHT (CTX0 and CTX1) Reference ( 5 REF output voltage REFOUT I REF input current ...

Page 83

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 6. Capacitive loads on Port 0 and Port 2 may cause a HIGH level voltage degradation of ALE and PSEN below 0.9V during the address bits are stabilizing the machine cycle time. CY CLK 5. REF+ REF 9. The differential non-linearity (DL 10 ...

Page 84

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth 1023 1022 1021 1020 1019 1018 code 7 out offset error OS e (1) Example of an actual transfer curve. (2) The ideal transfer curve. (3) Differential non-linearity ( (4) Integral non-linearity ( (5) Centre of a step of the actual transfer curve. ...

Page 85

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 21 AC CHARACTERISTICS See notes 1 and 100 pF for Port 0, ALE and PSEN SYMBOL PARAMETER External Program Memory t ALE pulse width LHLL t address valid to ALE LOW AVLL t address hold after ALE LOW LLAX t ALE LOW to valid instruction in ...

Page 86

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 90 CAN characteristics SYMBOL PARAMETER CAN input comparator/output driver t sum of input and output delay sd 2.4 V handbook, full pagewidth 0.45 V 2 testing inputs are driven at 2.4 V for a HIGH and 0.45 V for a LOW. Timing measurements are taken at 2.0 V for a HIGH and 0.8 V for a LOW, see Fig.29 (a). ...

Page 87

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth XTAL1 INPUT ALE dotted lines are valid when are active PSEN only active during a read RD from external data memory only active during a write WR to external data memory BUS inst. ...

Page 88

... Philips Semiconductors 8-bit microcontroller with on-chip CAN t LHLL ALE PSEN t AVLL PORT 0 PORT 2 handbook, full pagewidth t LHLL ALE PSEN RD t AVLL PORT 0 PORT 2 1996 Jun LLIV t LLPL t PLPH t LLAX t PLIV inst. input t PLAZ t AVIV address A8 to A15 Fig.31 Read from external Program Memory. ...

Page 89

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth t LHLL ALE PSEN WR t AVLL PORT 0 PORT 2 handbook, full pagewidth 1996 Jun LLWL t AVWL t LLAX t QVWX address A8 to A15 (DPH) or Port 2 Fig.33 Write to external Data Memory. t HIGH IH1 V IH1 0 ...

Page 90

... Philips Semiconductors 8-bit microcontroller with on-chip CAN Table 91 External clock drive XTAL1 SYMBOL t oscillator clock period (P83C592) CLK t HIGH time HIGH t LOW time LOW t rise time r t fall time f t cycle time ( CLK Table 92 UART Timing in Shift Register Mode SYMBOL ...

Page 91

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 22 CAN APPLICATION INFORMATION 22.1 Latency time requirements Real-time applications require the ability to process and transfer information in a limited and predetermined period of time. If knowing this total time and the time required to process the information, the (maximum allowed) transfer delay time is given ...

Page 92

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 22.1.2 C ALCULATING THE MAXIMUM BIT Table 93 Example for calculating the maximum bit-time STATEMENT = MAX TRANSFER TIME DATA BYTES, WORST CASE DATA BYTES n 130 BIT MAX LATENCY n 92 MESSAGE ----------------------------- = 0.045 ms = BIT 130 ...

Page 93

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth OUTPUT CONTROL REGISTER OUTPUT CONTROL LOGIC V DD CTX0 5 V 1996 Jun 27 P8xC592 COMMAND REGISTER TXD COMP OUT CTX1 CRX0 the CAN bus line Fig.36 Structure of on-chip CAN-Transceiver. 93 Product specification ...

Page 94

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth 750 120 750 1996 Jun 27 OUTPUT CONTROL REGISTER 10101010B (AAH) P8xC592 5 V CTX0 CTX1 R1 R2 240 240 CAN BUS LINE (1) Characteristic line impedance 120 Fig.37 Direct interface to a two-wire differential bus. ...

Page 95

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth 5 V 1N4150 BUS NODE 120 1996 Jun 27 OUTPUT CONTROL REGISTER 11111010B (FAH) or 10101010B (AAH) P8xC592 CTX0 CTX1 R3 R4 3 BST100 BST72A D1 D2 1N4150 (1) Characteristic line impedance 120 Fig.38 In-vehicle Transceiver. ...

Page 96

... Philips Semiconductors 8-bit microcontroller with on-chip CAN handbook, full pagewidth 100 nF 100 nF D1 1N4150 R1 120 R2 120 1N4150 100 nF 100 nF 1996 Jun 27 BUS NODE D3 1N4150 R3 120 CAN BUS LINE R4 (1) Characteristic line impedance 120 120 1N4150 D4 Fig.39 Bus termination with decoupled wires. ...

Page 97

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 22.2 ONNECTION TO AN PTICAL Using an optical medium provides the following advantages: Bus nodes are galvanically decoupled. Optical cable features very high noise immunity. No noise emission by the bus cable. An example for an interface to an optical connector is given in Fig ...

Page 98

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 22.2.5 P8xC592 CAN I NTERRUPT MCS-51 MACRO ASSEMBLER P8xC592 CAN interrupt-handler LOC OBJ LINE SOURCE 1 $TITLE (8xC592 CAN interrupt-handler) 00A0 2 $NOSYMBOLS NOPAGING 00A1 3 4 ;******************************************************************************************************** ;Very fast receive-routine for the 8xC592. It embedded in the interrupt-handler for the CAN-controller, ...

Page 99

... Philips Semiconductors 8-bit microcontroller with on-chip CAN LOC OBJ LINE SOURCE 35 36 00A0 37 00A1 00A2 45 ; jump-address for a CAN-controller interrupt CSEG at 2BH 020080 49 00A5 50 00A7 51 ; data storage 52 53 DSEG at 20H 54 00A9 55 00AB 56 BSEG at 00H 00AD ...

Page 100

... Philips Semiconductors 8-bit microcontroller with on-chip CAN LOC OBJ LINE SOURCE 00A0 72 CAN_INT_HANDLER: 00A1 73 74 C0D0 75 C0E0 00A2 E5D9 83 541F 84 00A5 F520 85 00A7 ;dispatcher----------------------------------------------------------------------------------------------- 89 INT_TEST0: 00A9 100000 90 00AB 91 00AD 92 INT_TEST1 end of dispatcher------------------------------------------------------------------------------------ 98 99 ;Rx-serve-------------------------------------------------------------------------------------------------- 00AE 100 ...

Page 101

... Philips Semiconductors 8-bit microcontroller with on-chip CAN LOC OBJ LINE SOURCE 00A0 107 00A1 108 54E0 109 C4 110 03 111 112 113 114 00A2 115 2415 116 83 117 118 119 00A5 120 00A7 121 122 123 6007 124 00A9 125 00AB 126 ...

Page 102

... Philips Semiconductors 8-bit microcontroller with on-chip CAN LOC OBJ LINE SOURCE 00A1 143 144 145 146 147 CAN_RX_READY: 75D904 148 149 00A2 150 151 152 E520 153 70E4 154 00A5 155 00A7 156 157 D0E0 158 D0D0 159 00A9 32 160 00AB 161 ...

Page 103

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 23 PACKAGE OUTLINES PLCC68: plastic leaded chip carrier; 68 leads pin 1 index DIMENSIONS (millimetre dimensions are derived from the original inch dimensions UNIT min. max. 4.57 0.53 mm 0.51 0.25 3.30 4.19 0.33 0.180 ...

Page 104

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 24 SOLDERING 24.1 Introduction There is no soldering method that is ideal for all IC packages. Wave soldering is often preferred when through-hole and surface mounted components are mixed on one printed-circuit board. However, wave soldering is not always suitable for surface mounted ICs, or for printed-circuits with high population densities ...

Page 105

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 25 DEFINITIONS Data sheet status Objective specification This data sheet contains target or goal specifications for product development. Preliminary specification This data sheet contains preliminary data; supplementary data may be published later. Product specification This data sheet contains fi ...

Page 106

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 1996 Jun 27 NOTES 106 Product specification P8xC592 ...

Page 107

... Philips Semiconductors 8-bit microcontroller with on-chip CAN 1996 Jun 27 NOTES 107 Product specification P8xC592 ...

Page 108

... Mexico: 5900 Gateway East, Suite 200, EL PASO, TEXAS 79905, Tel. +1 800 234 7381, Fax. +1 708 296 8556 Middle East: see Italy For all other countries apply to: Philips Semiconductors, Marketing & Sales Communications, Building BE-p, P.O. Box 218, 5600 MD EINDHOVEN, The Netherlands, Fax. + 24825 © Philips Electronics N.V. 1996 All rights are reserved ...

Related keywords