P87C591VFA/00,512 NXP Semiconductors, P87C591VFA/00,512 Datasheet

IC 80C51 MCU 16K OTP 44-PLCC

P87C591VFA/00,512

Manufacturer Part Number
P87C591VFA/00,512
Description
IC 80C51 MCU 16K OTP 44-PLCC
Manufacturer
NXP Semiconductors
Series
87Cr
Datasheet

Specifications of P87C591VFA/00,512

Core Processor
8051
Core Size
8-Bit
Speed
12MHz
Connectivity
CAN, EBI/EMI, I²C, UART/USART
Peripherals
POR, PWM, WDT
Number Of I /o
32
Program Memory Size
16KB (16K x 8)
Program Memory Type
OTP
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
4.75 V ~ 5.25 V
Data Converters
A/D 6x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
44-PLCC
Processor Series
P87C5x
Core
80C51
Data Bus Width
8 bit
Data Ram Size
512 B
Interface Type
CAN, I2C, UART
Maximum Clock Frequency
12 MHz
Number Of Programmable I/os
32
Number Of Timers
3
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
PK51, CA51, A51, ULINK2
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit, 6 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Lead Free Status / Rohs Status
 Details
Other names
568-1256-5
935268182512
P87C591VFAA

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P87C591VFA/00,512
Manufacturer:
TI
Quantity:
8
Part Number:
P87C591VFA/00,512
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Preliminary Specification
File under Integrated Circuits, IC28
DATA SHEET
P8xC591
Single-chip 8-bit microcontroller
with CAN controller
INTEGRATED CIRCUITS
2000 Jul 26

Related parts for P87C591VFA/00,512

P87C591VFA/00,512 Summary of contents

Page 1

DATA SHEET P8xC591 Single-chip 8-bit microcontroller with CAN controller Preliminary Specification File under Integrated Circuits, IC28 INTEGRATED CIRCUITS 2000 Jul 26 ...

Page 2

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller CONTENTS 1 FEATURES 1.1 80C51 Related Features of the 8xC591 1.2 CAN Related Features of the 8xC591 2 GENERAL DESCRIPTION 3 ORDERING INFORMATION 4 BLOCK DIAGRAM 5 FUNCTIONAL DIAGRAM 6 PINNING INFORMATION ...

Page 3

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 1 FEATURES 1.1 80C51 Related Features of the 8xC591 Full static 80C51 Central Processing Unit available as OTP, ROM and ROMless 16 Kbytes internal Program Memory expandable externally to 64 Kbytes 512 ...

Page 4

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 2 GENERAL DESCRIPTION The P8xC591 is a single-chip 8-bit-high-performance microcontroller, with on-chip CAN-controller, derived from the 80C51 microcontroller family. It uses the powerful 80C51 instruction set and includes the successful PeliCAN functionality ...

Page 5

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 4 BLOCK DIAGRAM INT0 INT1 T0 80C51 CONFIGURABLE CORE TWO 16-BIT CPU TIMER/EVENT CORE COUNTERS (T0/T1 XTAL1 WATCHDOG OSCILLATOR TIMER (T3) XTAL2 RST 2000 Jul ...

Page 6

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 5 FUNCTIONAL DIAGRAM handbook, full pagewidth T2 RXD RT2 TXD CSMR0 INT0 CSMR1 INT1 CSMR2 T0 CSMR3 2000 Jul XTAL1 XTAL2 RST EA PSEN ...

Page 7

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 6 PINNING INFORMATION 6.1 Pinning diagram handbook, full pagewidth 7 CT3I/INT5/ADC3/P1.5 SCL/ADC4/P1.6 8 SDA/ADC5/P1.7 9 RST 10 T2/P3.0/RXD 11 12 PWM0 RT2/P3.1/TXD 13 CMSR0/P3.2/INT0 14 CMSR1/P3.3/INT1 15 CMSR2/P3.4/T0 16 CMSR3/P3.5/T1 17 2000 ...

Page 8

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth P1.5/ADC3/INT5/CT3I 1 P1.6/ADC4/SCL 2 P1.7/ADC5/SDA 3 4 RST P3.0/T2/RXD 5 PWM0 6 RT2/P3.1/TXD 7 CMSR0/P3.2/INT0 8 CMSR1/P3.3/INT1 9 CMSR2/P3.4/T0 10 CMSR3/P3.5/T1 11 Fig.4 Pinning Diagram for 44-lead Plastic Quad ...

Page 9

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 6.2 Pin description Table 1 Pin description for QFP44/PLCC44, see Note 1. PIN SYMBOL QFP44 PLCC44 RST 4 10 P3.0to P3.7 P3.0/RXD 5 11 P3.1/TXD 7 13 P3.2/INT0/CMSR0 8 14 P3.3/INT1/ 9 ...

Page 10

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller PIN SYMBOL QFP44 PLCC44 P2.0/A08 Port 2 (P2.0 to P2.7): 8-bit programmable I/O port lines; P2.7/A15 PSEN 26 32 ALE/PROG ...

Page 11

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller PIN SYMBOL QFP44 PLCC44 P1 P1 P1.2 to P1.4 42 ...

Page 12

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 7 MEMORY ORGANIZATION The Central Processing Unit (CPU) manipulates operands in three memory spaces as follows (see Fig.5): 16 Kbytes internal resp. 64 Kbytes external Program Memory 512 bytes internal Data Memory ...

Page 13

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 7.1 Program Memory The P8xC591 contains 16 Kbytes of on-chip Program Memory which can be extended to 64 Kbytes with external memories. When EA pin is held HIGH, the P8xC591 fetches instructions ...

Page 14

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 2 AUX-RAM Page Register (address 8EH Table 3 Description of AUX-RAM bits BIT SYMBOL LVADC 1 EXTRAM 0 AO Notes 1. User software ...

Page 15

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth 2000 Jul 26 7Fh (MSB) (LSB) 2Fh 2Eh 2Dh ...

Page 16

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 7.3 PECIAL UNCTION EGISTERS Table 4 Special Function Register Bit Address, Symbol or Alternate Port Function * = SFRs are bit addressable SFRs are modified from or ...

Page 17

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller NAME DESCRIPTION P1M1 Port 1 output mode 1 P1M2 Port 1 output mode 2 P2M1 Port 2 output mode 1 P2M2 Port 2 output mode 2 P3M1 Port 3 output mode 1 ...

Page 18

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller NAME DESCRIPTION TMOD Timer Mode TCON* Timer Control TM2CON# Timer 2 Control TM2IR#* Timer 2/CAN Int Flag Reg T3# Timer 3 2000 Jul 26 BIT FUNCTIONS AND ADDRESSES SFR ADDR MSB 89H ...

Page 19

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 7.4 Dual DPTR The dual DPTR structure (see Figure way by which the chip will specify the address of an external data memory location. There are two 16-bit DPTR ...

Page 20

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 7.4.1 AUXR1 P R AGE EGISTER Table 5 AUXR1 Page Register (address A2H ADC8 AIDL Table 6 Description of AUXR1 of bits User software should not write 1s to reserved ...

Page 21

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 8 I/O FACILITIES The P8xC591 consists of 32 I/O Port lines with partly multiple functions. The I/O’s are held HIGH during reset (asynchronous, before oscillator is running). Ports and ...

Page 22

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 11 LOW POWER MODES 11.1 Stop Clock Mode The static design enables the clock speed to be reduced down to 0 MHz (stopped). When the oscillator is stopped, the RAM and Special ...

Page 23

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 11.3 OWER FF LAG The Power Off Flag (POF) is set by on-chip circuitry when the V level on the P8xC591 rises from The POF ...

Page 24

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12 CAN, CONTROLLER AREA NETWORK Controller Area Network is the definition of a high performance communication protocol for serial data communication. The CAN controller circuitry is designed to provide a full implementation ...

Page 25

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.2 PeliCAN structure A 80C51 CPU Interface connects the PeliCAN to the internal bus of the P8xC591 microcontroller. Via five Special Function Registers CANADR, CANDAT, CANMOD, CANSTA and CANCON the CPU has ...

Page 26

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.2 NTERFACE ANAGEMENT The Interface Management Logic interprets commands from the CPU, controls addressing of the CAN Registers and provides interrupts and status information to the CPU. Additionally it drives ...

Page 27

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.3 Communication between PeliCAN controller and CPU A 80C51 CPU Interface connects the PeliCAN to the internal bus of an 80C51 microcontroller. Special Function Registers, allows a smart and fast access to ...

Page 28

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 10 CAN Special Function Registers PELICAN SFR ACCESS REG. CANADR Read/ - Write CANDAT Read/ - Write CANMOD Read/ Mode Write CANSTA Read Status Write Interrupt Enable CANCON Read Interrupt Write ...

Page 29

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.4 Register and Message Buffer description 12.4 DDRESS AYOUT The PeliCAN internal registers appear to the host CPU as on-chip memory mapped peripheral registers. Because the PeliCAN can operate in ...

Page 30

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller OPERATING MODE CAN ADDR. READ 48 Acceptance Code 0 49 Acceptance Code Acceptance Code Acceptance Code Acceptance Mask Acceptance ...

Page 31

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller OPERATING MODE CAN ADDR. READ 115 Tx Data 1 Tx Identifier 3 116 Tx Data 2 Tx Identifier 4 117 Tx Data 3 Tx Data 1 118 Tx Data 4 Tx Data ...

Page 32

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5 CAN Registers 12.5 ESET ALUES Detection of a set Reset Mode bit results in aborting the current transmission / reception of a message and entering the Reset Mode. On ...

Page 33

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller ADDR. REGISTER 9 Rx Message Counter 10 Rx Buffer Start Address 11 Arbitr. Lost Capture 12 Error Code Capture 13 Error Warning Limit 14 Rx Error Counter 15 Tx Error Counter 29 ...

Page 34

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5 (MOD) ODE EGISTER The contents of the Mode Register are used to change the behaviour of the CAN controller. Bits may be set or reset by the CPU that ...

Page 35

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 4. During a Hardware reset or when the Bus Status bit is set ‘1’ (Bus-Off), the Reset Mode bit is set ‘1’ (present). After the Reset Mode bit is set ‘0’ the ...

Page 36

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 5. If the Transmission Request or the Self Reception Request bit was set ‘1’ previous command, it cannot be cancelled by resetting the bits. The requested transmission may only be ...

Page 37

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Notes to Table 15: 1. When the Transmit Error Counter exceeds the limit of 255, the Bus Status bit is set ‘1’ (Bus-Off), the CAN controller will set the Reset Mode bit ...

Page 38

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.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 will be indicated ...

Page 39

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Notes to Table 16 Wake-Up Interrupt is also generated, if the CPU tries to set the Sleep bit while the CAN controller is involved in bus activities or a CAN ...

Page 40

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5 (RIL) NTERRUPT EVEL The RIL register is used to define the receive interrupt level for the RXFIFO. A receive interrupt is generated if the number of valid CAN ...

Page 41

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5 (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 ...

Page 42

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5. ESSAGE OUNTER The RMC Register (CAN Address 9) reflects the number of messages available within the RXFIFO. The value is incremented with each receive event and decremented by ...

Page 43

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5. RBITRATION OST APTURE This register contains information about the bit position of losing arbitration. The Arbitration Lost Capture Register appears to the CPU as a read only memory. ...

Page 44

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5. RROR ODE APTURE This register contains information about the type and location of errors on the bus. The Error Code Capture Register appears to the CPU as a ...

Page 45

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Always if a bus error occurs, the corresponding bus error interrupt is forced, if enabled. In the same time, the current position of the Bit Stream Processor is captured into the Error ...

Page 46

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5. RROR OUNTER EGISTER The TX Error Counter Register reflects the current value of the Transmit Error Counter. In Operating Mode this register appears to the CPU as ...

Page 47

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth MFORMATB4 AMODEB4 standard/ dual/single extended ACCEPTANCE FILTER BANK 4 ACR 0 ACR 1 ACR 2 ACR 3 AMR 0 AMR 1 AMR 2 AMR 3 filter 2 filter 1 ...

Page 48

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5.17.1 Acceptance Filter Mode Register The current operating mode is defined within the Acceptance Filter Mode Register located at CAN Address 29. A write access to this register is possible only within ...

Page 49

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5.17.2 Acceptance Filter Enable Register Each defined Acceptance Filter is enabled or disabled by a certain bit located within the Acceptance Filter Enable Register. This allows to change the Acceptance Filter Contents ...

Page 50

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5.17.3 Acceptance Filter Priority Register For each available Acceptance Filter it could be defined, whether a receive interrupt is forced immediately if a message passes a certain Acceptance Filter or whether the ...

Page 51

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5.17.4 Single Filter Configuration In this filter configuration one long filter (4-byte) could be defined. The bit correspondences between the filter bytes and the Message bytes depends on the programmed Frame Format ...

Page 52

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Single Filter Extended Frame: If the Extended Frame Format is selected, the complete Identifier including the RTR bit is used for acceptance filtering. For a successful reception of a message, all single ...

Page 53

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5.17.5 Dual Filter Configuration In this filter configuration two short filters could be defined. A received message is compared with both filters to decide, whether this message should be copied into the ...

Page 54

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller For a successful reception of a message, all single bit comparisons of at least one complete filter have to signal acceptance. In case of a set RTR bit or a data length ...

Page 55

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5. RANSMIT UFFER The global layout of the Transmit Buffer is shown in Fig.19. One has to distinguish between the Standard Frame Format (SFF) and the Extended Frame Format (EFF) ...

Page 56

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5.18.2 Descriptor Field of the Transmit Buffer Standard Frame Format (SFF) Addr. 112 TX Frame Information RTR (0) (0) DLC.3 Addr 113 TX Identifi ...

Page 57

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5.18.3 Data Length Code (DLC) The number of bytes in the Data Field of a message is coded by the Data Length Code. At the start of a Remote Frame transmission the ...

Page 58

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5. ECEIVE UFFER The global layout of the Receive Buffer is very similar to the Transmit Buffer described in the previous chapter. The Receive Buffer is the accessible part of ...

Page 59

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 12.5.19.1 Descriptor File of the Receive Buffer Identifier, Frame Format, Remote Transmission Request bit and Data Length Code have the same meaning as described in the Transmit Buffer. Standard Frame Format (SFF) ...

Page 60

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 13 SERIAL I/O The P8xC591 is equipped with three independent serial ports: CAN, SIO0 and SIO1. SIO0 is a Standard Serial Interface UART with enhanced functionality. In following there will be one ...

Page 61

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 14.3 Baud Rate Generation There are several possibilities to generate the baud rate clock for the serial port depending on the mode in which it is operating. For clarification some terms regarding ...

Page 62

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 14.3 AUD ATE ENERATION Depending on the programmed operating mode different paths are selected for the baud rate clock generation. Figure 23 shows the dependencies of the serial port ...

Page 63

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 14.3 AUD ATE IN ODE The baud rate in Mode 0 is fixed to: oscillator frequency Mode 0 baud rate = ------------------------------------------------------- 14.3 AUD ...

Page 64

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller With the baud rate generator as clock source for the serial port in Mode 1 and Mode 3, the baud rate of can be determined as follows: Mode 1, 3 baud rate ...

Page 65

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 46 Serial port mode select SM0 SM1 Table 47 Internal baud rate timer generated baud rates BAUD RATE f (MHz) CLK (KBits/s) 750 ...

Page 66

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 14.4 More about UART Modes More About Mode 0 Serial data enters and exits through RxD. TxD outputs the shift clock. 8 bits are transmitted/received: 8 data bits (LSB 1 first). The ...

Page 67

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller As data bits come in from the right, 1s shift out to the left. When the start bit arrives at the left most position in the shift register (which in Mode 1 ...

Page 68

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth write to SBUF S6 serial port interrupt REN ALE Write to SBUF ...

Page 69

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth write to SBUF BAUD RATE CLOCK RxD TX Clock write to SBUF Send S1P1 Data Shift Start TxD bit TI 16 Reset RX Clock Start RxD bit Bit detector ...

Page 70

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth write to SBUF BAUD RATE CLOCK RxD TX Clock write to SBUF Send S1P1 Data Shift Start TxD bit TI Stop bit gen. 16 Reset RX Clock Start RxD ...

Page 71

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 14.5 Enhanced UART The UART operates in all of the usual modes that are described in the Section of Standard Serial Interface, 80C51-Based 8-Bit Microcontrollers. In addition the UART can perform framing ...

Page 72

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth D0 START bit SM0/FE SMOD1 0 : S0CON.7 = SM0 1 : S0CON handbook, full pagewidth D0 RECEIVED ADDRESS UART Mode 2 or ...

Page 73

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Mode 0 is the Shift Register mode and SM2 is ignored. Using the Automatic Address Recognition feature allows a master to selectively communicate with one or more slaves by invoking the Given ...

Page 74

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 2 The CPU interfaces to the I C logic via the following four special function registers: S1CON (SIO1 control register), S1STA (SIO1 status register), S1DAT (SIO1 data register), and S1ADR (SIO1 slave ...

Page 75

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth 2 I C-bus P1.7/SDA 8xC591 handbook, full pagewidth MSB SDA slave address SCL START condition 2000 Jul P1.6/SCL OTHER DEVICE WITH ...

Page 76

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 15.2 SIO1 Implementation and Operation Figure 32 shows how the on-chip I implemented, and the following text describes the individual blocks. 15.2 NPUT ILTERS AND UTPUT 2 The input ...

Page 77

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth P1.7 INPUT FILTER P1.7/SDA OUTPUT STAGE INPUT FILTER P1.6/SCL OUTPUT STAGE P1.6 2000 Jul 26 S1ADR ADDRESS REGISTER COMPARATOR S1DAT SHIFT REGISTER ARBITRATION & SYNC LOGIC SERIAL CLOCK GENERATOR ...

Page 78

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 15.2 RBITRATION AND YNCHRONIZATION In the master transmitter mode, the arbitration logic checks that every transmitted logic 1 actually appears as a logic the I C bus. ...

Page 79

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth SDA SCL (1) Another service pulls the SCL line low before the SIO “mask” duration is complete. The serial clock generator is immediately reset and commences with the “space” ...

Page 80

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 15.2.10.1 The Address Register, S1ADR The CPU can read from and write to this 8-bit, directly addressable SFR. S1ADR is not affected by the SIO1 hardware. The contents of this register are ...

Page 81

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 15.2. ONTROL EGISTER 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 ...

Page 82

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 15.2.12.1 ENS1, the SIO1 enable bit ENS1 = “0”: When ENS1 is “0”, the SDA and SCL input signals are ignored, SIO1 is in the not addressed slave state, and the STO ...

Page 83

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth SDA SCL handbook, full pagewidth SDA D7 SCL SHIFT ACK & S1DAT ACK S1DAT (1) SHIFT BSD7 BSD7 D7 loaded by the CPU (1) Valid data in S1DAT. (2) ...

Page 84

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 15.2.12.4 SI, the Serial Interrupt Flag SI = “1”: When the SI flag is set, then, if the EA and ES1 (interrupt enable register) bits are also set, a serial interrupt is ...

Page 85

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 15.2. S1STA HE TATUS EGISTER S1STA is an 8-bit read-only special function register. The three least significant bits are always zero. The five most significant bits contain the ...

Page 86

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller master of the bus. In other words reset, SIO0 cannot enter a slave mode. STA, STO, and SI must be reset. The master transmitter mode may now be entered ...

Page 87

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 59 Address Register S1ADR (DBH) (address 00H Table 60 Address Register S1CON (D8H) (address 00H CR2 ENS1 X 1 handbook, full pagewidth SUCCESSFUL TRANSMISSION TO ...

Page 88

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth SUCCESSFUL RECEPTION FROM A SLAVE TRANSMITTER NEXT TRANSFER STARTED WITH A REPEATED START CONDITION NOT ACKNOWLEDGE RECEIVED AFTER THE SLAVE ADDRESS ARBITRATION LOST IN SLAVE ADDRESS OR ACKNOWLEDGE BIT ...

Page 89

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth RECEPTION OF THE OWN SLAVE ADDRESS AND ONE OR MORE DATA BYTES ALL ARE ACKNOWLEDGED LAST DATA BYTE RECEIVED IS NOT ACKNOWLEDGED ARBITRATION LOST AS MST AND ADDRESSED AS ...

Page 90

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller RECEPTION OF THE OWN handbook, full pagewidth SLAVE ADDRESS AND TRANSMISSION OF ONE OR MORE DATA BYTES FROM MASTER TO SLAVE FROM SLAVE TO MASTER DATA A ANY NUMBER OF DATA BYTES ...

Page 91

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 61 Master Transmitter Mode STATUS STATUS OF THE 2 CODE I C BUS AND (S1STA) SIO1 HARDWARE 08H A START condition has been transmitted 10H A repeated START condition has been ...

Page 92

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 62 Master Receiver Mode STATUS STATUS OF THE 2 CODE I C BUS AND (S1STA) SIO1 HARDWARE 08H A START condition has been transmitted 10H A repeated START condition has been ...

Page 93

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 63 Slave Receiver Mode STATUS STATUS OF THE 2 CODE I C BUS AND (S1STA) SIO1 HARDWARE 60H Own SLA+W has been received; ACK has been returned 68H Arbitration lost in ...

Page 94

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller STATUS STATUS OF THE 2 CODE I C BUS AND (S1STA) SIO1 HARDWARE 98H Previously addressed with General Call; DATA byte has been received; NOT ACK has been returned A0H A STOP ...

Page 95

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 64 Slave Transmitter Mode STATUS STATUS OF THE 2 CODE I C BUS AND (S1STA) SIO1 HARDWARE A8H Own SLA+R has been received; ACK has been returned B0H Arbitration lost in ...

Page 96

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 65 Miscellaneous States STATUS STATUS OF THE 2 CODE I C BUS AND (S1STA) SIO1 HARDWARE F8H No relevant state information available 00H Bus error during MST or ...

Page 97

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 15.2.14.4 Slave Transmitter Mode In the slave transmitter mode, a number of data bytes are transmitted to a master receiver (see Figure 40). Data transfer is initialized as in the slave receiver ...

Page 98

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth S SLA W 08H Fig.41 Simultaneous repeated START conditions from 2 Masters. handbook, full pagewidth STA FLAG STO FLAG SDA LINE SCL LINE 2000 Jul 26 A DATA A ...

Page 99

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 2 15.2.15 bus obstructed by a low level on SCL and SDA bus hang-up occurs if SDA or SCL is pulled LOW by an uncontrolled source. ...

Page 100

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 15.3 Software Examples of SIO1 Service Routines This section consists of a software example for: Initialization of SIO1 after a RESET Entering the SIO1 interrupt routine The 26 state service routines for ...

Page 101

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth S1ADR S1DAT S1STA S1CON PSW IPO IEN0 P1 BACKUP NUMBYTMST SLA HADD STD SRD MRD MTD 2000 Jul 26 SPECIAL FUNCTION REGISTERS 0 CR2 ENS1 STA ST0 SI AA ...

Page 102

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 15.3 ASTER RANSMITTER AND M ODES The master mode is entered in the main program. To enter the master transmitter mode, the main program must first load the internal data ...

Page 103

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller SI01 EQUATE LIST LOC OBJ SOURCE !***************************************************************************************************************************** ! LOCATIONS OF THE SI01 SPECIAL FUNCTION REGISTERS! !***************************************************************************************************************************** 00D8 S1CON 00D9 S1STA 00DA S1DAT 00DB S1ADR 00A8 IEN0 00B8 IP0 !***************************************************************************************************************************** ! BIT LOCATIONS ...

Page 104

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller LOC OBJ SOURCE !***************************************************************************************************************************** ! LOCATIONS IN DATA RAM !***************************************************************************************************************************** 0030 MTD 0038 MRD 0040 SRD 0048 STD 0053 BACKUP 0052 NUMBYTMST 0051 SLA 0050 HADD !***************************************************************************************************************************** ! INITIALIZATION ROUTINE ! Example ...

Page 105

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller LOC OBJ SOURCE !***************************************************************************************************************************** ! SI01 INTERRUPT ROUTINE !***************************************************************************************************************************** .sect intvec .base 0x00 ! S1STA and HADD are pushed onto the stack. ! They serve as return address for the RET instruction. ...

Page 106

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller LOC OBJ SOURCE !- - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...

Page 107

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller LOC OBJ SOURCE !- - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...

Page 108

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller LOC OBJ SOURCE !- - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...

Page 109

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller LOC OBJ SOURCE !***************************************************************************************************************************** ! SLAVE RECEIVER STATE SERVICE ROUTINES !***************************************************************************************************************************** !- - - - - - - - - - - - - - - - - - - - - ...

Page 110

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller LOC OBJ SOURCE !- - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...

Page 111

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller LOC OBJ SOURCE !- - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...

Page 112

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller LOC OBJ SOURCE !- - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...

Page 113

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 16 TIMER 2 16.1 Features of Timer 2 Timer 16-bit timer consisting of two registers TMH2 (HIGH byte) and TML2 (LOW byte). The 16-bit timer/counter can be switched off ...

Page 114

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 16.1 ONTROL EGISTER Table 68 T2 Control Register (address EAH T2IS1 T2IS0 Table 69 Description of TM2CON bits BIT SYMBOL 7 T2IS1 Timer T2 16-bit overflow interrupt ...

Page 115

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 16.1 IMER XTENSION When a 6 MHz oscillator is used, a 16-bit overflow on Timer T2 occurs every 65.5, 131, 262, or 524 ms, depending on the prescaler division ...

Page 116

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth CT0I/INT2 INT off f clk 1/6 T2 RT2 T2ER external reset enable STE ...

Page 117

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 16.1 APTURE OGIC The four 16-bit capture registers that Timer T2 is connected to are: CT0, CT1, CT2, and CT3. These registers are loaded with the contents of Timer T2, ...

Page 118

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 16.1.6.1 Reset/Toggle Enable Register (RTE) Table 74 Reset/Toggle enable register (address EFH Table 75 Description of RTE bits BIT SYMBOL Reserved. 3 RP35 If HIGH then P3.5 ...

Page 119

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 16.1 IMER NTERRUPT LAG Seven of the eight Timer T2 interrupt flags are located in special function register TM2lR (see Section 16.1.7.1). The eights flag is TM2CON.4. The ...

Page 120

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 17 WATCHDOG TIMER (T3) In addition to Timer T2 and the standard timers, a Watchdog Timer (T3) is also incorporated on the P8xC591. The purpose of a Watchdog Timer is to reset ...

Page 121

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth 1/6 f clk AUXR1.4 WDE (1) See Fig.8. 2000 Jul 26 INTERNAL BUS PRESCALER TIMER T3 (8-BIT) 11-BIT CLEAR write T3 PCON.4 INTERNAL BUS Fig.46 Functional diagram of T3 ...

Page 122

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 18 PULSE WIDTH MODULATED OUTPUTS The P8xC591 contains two Pulse Width Modulated (PWM) output channels (see Fig.47). These channels generate pulses of programmable length and interval. The repetition frequency is defined by ...

Page 123

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 18.1 Prescaler Frequency Control Register (PWMP) Reading PWMP gives the current reload value. The actual count of the prescaler cannot be read. Table 82 Prescaler Frequency Control Register (address FEH), Reset Value ...

Page 124

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 19 PORT 1 OPERATION Port 1 may be used to input analog signals ADC. Unused ADC inputs may be used to input digital inputs. These inputs have an inherent ...

Page 125

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth ADC0 ADC1 ADC2 ADC3 ANALOG INPUT ADC4 MULTIPLEXER ADC5 n.c. n.c. ADCON 20.3 10-Bit Analog-to-Digital Conversion Figure 48 shows the elements of a successive approximation (SA) ...

Page 126

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller otherwise the bit being tested is cleared. This process is repeated until all ten bits have been tested, at which stage the result of the conversion is held in the successive approximation ...

Page 127

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth 2000 Jul 26 SOC Start of conversion RESET SAR [ BIT POINTER ] = MSB [ BIT ] CONVERSION TIME 1 0 TEST COMPLETE [ BIT ...

Page 128

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 20.3.1 ADC C R ONTROL EGISTER Table 88 ADC Control Register (address C5H); Reset value = xx00 0000B 7 6 ADC.1 ADC.0 Table 89 Description of ADCON bits BIT SYMBOL 7 ADC.1 ...

Page 129

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 20.4 10-Bit ADC Resolution and Analog Supply Figure 48 shows how the ADC is realized. The ADC has its own analog ground (AV ) and a positive analog reference SS pin (V ...

Page 130

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth 0 maximum Recommended < 9.6 k for 1 LSB @ 12 MHz ...

Page 131

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 21 INTERRUPTS The 8xC591 has fifteen interrupt sources, each of which can be assigned one of four priority levels. The five interrupt sources common to the 80C51 are the external interrupts (INT0 ...

Page 132

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 21.2 Interrupt Enable and Priority Registers 21.2 NTERRUPT NABLE EGISTER Logic 0 = interrupt disabled; logic 1 = interrupt enabled. Table 93 Interrupt Enable Register 0 (address A8H) 7 ...

Page 133

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 21.2 NTERRUPT RIORITY EGISTER Logic 0 = low priority; logic 1 = high priority. Table 97 Interrupt Priority Register 0 (address B8H PAD Table 98 Description of ...

Page 134

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 21.2 NTERRUPT RIORITY EGISTER Logic 0 = low priority; logic 1 = high priority. Table 101Interrupt Priority Register 1 (address F8H PT2 PCAN Table 102Description of IP1 ...

Page 135

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 21.3 Interrupt priority Table 105 Interrupt priority structure SOURCE SYMBOL External interrupt SIO1 ( ADC completion ADC Timer 0 overfl capture 0 CT0 T2 compare ...

Page 136

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 22 INSTRUCTION SET For the description of the Data Addressing Modes and Hexadecimal opcode cross-reference see Table 111. Table 107 Instruction set description: Arithmetic operations MNEMONIC Arithmetic operations ADD A,Rr Add register ...

Page 137

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 108 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 ...

Page 138

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 109 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 ...

Page 139

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 110 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 ...

Page 140

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Table 111 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 ...

Page 141

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 23 LIMITING VALUES In accordance with the Absolute Maximum Rating System (IEC 134); Note 1 SYMBOL V Voltage Input voltage on any other pin ...

Page 142

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 24 DC CHARACTERISTICS 5 all voltages with respect +85 C for the P8xC591VFx; V amb SYMBOL ...

Page 143

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller SYMBOL PARAMETER Outputs V LOW level output voltage Ports (except P1.0, P1.6, P1.7) V LOW level output voltage Port 0, ALE, OL1 PSEN, RST, PWM0, PWM1 V LOW ...

Page 144

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller Notes to the DC characteristics 1. 8-bit mode 2. See Figures 62 through 64 for I 3. The operating supply current is measured with all output pins disconnected; XTAL1 driven with t ...

Page 145

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth 1023 1022 1021 1020 1019 1018 code 7 out offset error OS e (1) Example of an actual transfer curve. (2) ...

Page 146

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 25 AC CHARACTERISTICS 5 amb outputs unless otherwise specified. SYMBOL PARAMETER External Program Memory; see Fig.55 1/f System clock frequency; see ...

Page 147

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller SYMBOL PARAMETER UART Timing - Shift Register Mode; see Fig.59 t serial port clock cycle time XLXL t output data setup to clock rising edge QVXH t output data hold after clock ...

Page 148

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller t LHLL handbook, full pagewidth ALE t AVLL PSEN PORT 0 PORT 2 2000 Jul 26 t LLPL t PLPH t LLIV t PLIV t LLAX t PLAZ t PXIX A0 - ...

Page 149

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 2000 Jul 26 149 Preliminary Specification P8xC591 pagewidth full handbook, ...

Page 150

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 2000 Jul 26 150 Preliminary Specification P8xC591 pagewidth full andbook, ...

Page 151

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth INSTRUCTION 0 handbook, full pagewidth ALE CLOCK OUTPUT DATA WRITE TO SBUF INPUT DATA CLEAR RI 2000 Jul 26 t HIGH IH1 V IH1 0.8 V ...

Page 152

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 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 ...

Page 153

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 2000 Jul 26 153 Preliminary Specification P8xC591 pagewidth full handbook, ...

Page 154

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller I (mA handbook, full pagewidth CLOCK SIGNAL All other pins are disconnected. (1) The following pins must be forced to V (2) The following pins must ...

Page 155

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth CLOCK SIGNAL All other pins are disconnected. (1) The following pins must be forced to V (2) The following pins must be forced to V (3) Port 1.6 and ...

Page 156

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller handbook, full pagewidth CLOCK SIGNAL All other pins are disconnected 5 (1) The following pins must be forced to V (2) The following pins must ...

Page 157

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 25.1 Timing symbol definitions Oscillator clock frequency CLK t = clock period CLK Timing symbols (acronyms): Each timing symbol has five characters. The first character is always a 't' (= ...

Page 158

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 27 PACKAGE OUTLINES PLCC44: plastic leaded chip carrier; 44 leads pin 1 index DIMENSIONS (millimetre dimensions are derived ...

Page 159

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller QFP44: plastic quad flat package; 44 leads (lead length 1.3 mm); body 1. pin 1 index DIMENSIONS (mm ...

Page 160

Philips Semiconductors Single-chip 8-bit microcontroller with CAN controller 28 SOLDERING 28.1 Plastic leaded-chip carriers/quad flat-packs 28.1 WAVE During placement and before soldering, the component must be fixed with a droplet of adhesive. After curing the adhesive, the component ...

Related keywords