87C196CB Supplement to 8XC196NT User’s Manual
August
87C196CB Supplement to 8XC196NT User’s Manual
Order Number
Copyright Intel Corporation, 1998
CHAPTER
CONTENTS
GUIDE TO THIS MANUAL
CHAPTER
87C196CB SUPPLEMENT
SIGNAL DESCRIPTIONS
CHAPTER
SPECIAL OPERATING MODES
CONTENTS
FIGURES
Internal Clock Phases
Effect of Clock Mode on CLKOUT Frequency
8XC196CB SUPPLEMENT
FIGURES
Page
87C196CB 100-pin QFP Package
CONTENTS
TABLES
Page
Page
Guide to This Manual
Page
CHAPTER GUIDE TO THIS MANUAL
1.1 MANUAL CONTENTS
Appendix A - Signal Descriptions
1.2 RELATED DOCUMENTS
Chapter 9 - Interfacing with External Memory
Architectural Overview
Page
CHAPTER ARCHITECTURAL OVERVIEW
2.1 DEVICE FEATURES
2.3 INTERNAL TIMING
2.2 BLOCK DIAGRAM
Page
12 MHz
8 MHz
16 MHz
20 MHz
ARCHITECTURAL OVERVIEW
Figure 2-4. Effect of Clock Mode on CLKOUT Frequency
Frequency
Input Frequency to
Page
Memory Partitions
Page
3.1 MEMORY MAP, SPECIAL-FUNCTION REGISTERS, AND WINDOWING
CHAPTER MEMORY PARTITIONS
Address
87C196CB SUPPLEMENT Table 3-2. 87C196CB Memory Map
MEMORY PARTITIONS Table 3-3. 87C196CB Peripheral SFRs
Timer 1, Timer 2, and EPA SFRs
Ports 0, 1, 2, and 6 SFRs
SIO and SSIO SFRs
1EDCH
87C196CB SUPPLEMENT Table 3-4. CAN Peripheral SFRs
1ECCH
Message
MEMORY PARTITIONS Table 3-4. CAN Peripheral SFRs Continued
32-byte Window
87C196CB SUPPLEMENT Table 3-5. Selecting a Window of Peripheral SFRs
64-byte Window
128-byte Window
Table 3-6. Selecting a Window of the Upper Register File
MEMORY PARTITIONS
Register RAM
Locations
87C196CB SUPPLEMENT
Table 3-7. Selecting a Window of Upper Register RAM
MEMORY PARTITIONS
0DE0-0DFFH
87C196CB SUPPLEMENT Table 3-8. Windows
Table 3-8. Windows Continued
MEMORY PARTITIONS
Upper Register File
87C196CB SUPPLEMENT
Table 3-9. WSR Settings and Direct Addresses for Windowable SFRs
MEMORY PARTITIONS
87C196CB SUPPLEMENT
MEMORY PARTITIONS
87C196CB SUPPLEMENT
MEMORY PARTITIONS
87C196CB SUPPLEMENT
32-byte Windows
MEMORY PARTITIONS
64-byte Windows
128-byte Windows
32-byte Windows
Standard and PTS Interrupts
Page
4.1 INTERRUPT SOURCES, VECTORS, AND PRIORITIES
CHAPTER STANDARD AND PTS INTERRUPTS
Figure 4-1. Interrupt Mask 1 INTMASK1 Register
87C196CB SUPPLEMENT
Figure 4-2. interrupt Pending 1 INTPEND1 Register
Standard Vector
I/O Ports
Page
5.1 PORT 0 AND EPORT
CHAPTER I/O PORTS
87C196CB SUPPLEMENT
Figure 5-3. Extended Port Mode EPMODE Register
Figure 5-2. Extended Port I/O Direction EPDIR Register
EPDIR
Figure 5-4. Extended Port Input EPPIN Register
I/O PORTS
Figure 5-5. Extended Port Data Output EPREG Register
EPPIN
Page
Analog-to-digital A/D Converter
Page
6.1 ADDITIONAL A/D INPUT CHANNELS
CHAPTER 6 ANALOG-TO-DIGITAL A/D CONVERTER
ADCOMMAND
Figure 6-1. A/D Command ADCOMMAND Register
87C196CB SUPPLEMENT
Function
Figure 6-2. A/D Result ADRESULT Register - Read Format
ANALOG-TO-DIGITAL A/D CONVERTER
ADRESULT Read
Function
Page
CAN Serial Communications Controller
Page
7.1 CAN FUNCTIONAL OVERVIEW
CHAPTER 7 CAN SERIAL COMMUNICATIONS CONTROLLER
Page
Table 7-1. CAN Controller Signals
7.2 CAN CONTROLLER SIGNALS AND REGISTERS
CAN SERIAL COMMUNICATIONS CONTROLLER
Table 7-2. Control and Status Registers
87C196CB SUPPLEMENT Table 7-2. Control and Status Registers Continued
7.3 CAN CONTROLLER OPERATION
7.3.2 Message Objects
7.3.1 Address Map
87C196CB SUPPLEMENT Table 7-4. Message Object Structure
Contents
7.3.2.1 Receive and Transmit Priorities
7.3.2.2 Message Acceptance Filtering
7.3.3 Message Frames
Table 7-7. Extended Message Frame
87C196CB SUPPLEMENT Table 7-6. Standard Message Frame
7.3.4 Error Detection and Management Logic
Symbol
7.3.5 Bit Timing
Definition
Figure 7-5. A Bit Time as Implemented in the CAN Controller
CAN SERIAL COMMUNICATIONS CONTROLLER
Table 7-9. CAN Controller Bit Time Segments
t SYNC
Table 7-10 defines the bit timing relationships of the CAN controller
where
87C196CB SUPPLEMENT 7.3.5.1 Bit Timing Equations
Table 7-10. Bit Timing Relationships
7.4.1 Programming the CAN Control CANCON Register
7.4 CONFIGURING THE CAN CONTROLLER
87C196CB SUPPLEMENT
This bit globally enables and disables interrupts error, status-change, and
Figure 7-6. CAN Control CANCON Register Continued
Unchanged
7.4.2 Programming the Bit Timing 0 CANBTIME0 Register
87C196CB SUPPLEMENT
7.4.3 Programming the Bit Timing 1 CANBTIME1 Register
Figure 7-8. CAN Bit Timing 1 CANBTIME1 Register
TSEG2
Bit Time
7.4.4 Programming a Message Acceptance Filter
Requirement
Comments
Figure 7-9. CAN Standard Global Mask CANSGMSK Register
87C196CB SUPPLEMENT
CANSGMSK
87C196CB
Figure 7-10. CAN Extended Global Mask CANEGMSK Register
CAN SERIAL COMMUNICATIONS CONTROLLER
CANEGMSK
87C196CB
87C196CB SUPPLEMENT
7.5 CONFIGURING MESSAGE OBJECTS
Figure 7-11. CAN Message 15 Mask CANMSK15 Register
7.5.1 Specifying a Message Object’s Configuration
87C196CB SUPPLEMENT
7.5.2 Programming the Message Object Identifier
Figure 7-13. CAN Message Object x Identifier CANMSGxID0-3 Register
7.5.4 Programming the Message Object Data
7.5.3 Programming the Message Object Control Registers
Access Type
Figure 7-14. CAN Message Object x Control 0 CANMSGxCON0 Register
87C196CB SUPPLEMENT
Program the CAN message object x control 0 CANMSGxCON0 register to indicate whether the message object is ready to transmit and to control whether a successful transmission or reception generates an interrupt. The least-significant bit-pair indicates whether an interrupt is pending
CAN SERIAL COMMUNICATIONS CONTROLLER
Figure 7-15. CAN Message Object x Control 1 CANMSGxCON1 Register
87C196CB SUPPLEMENT
CAN SERIAL COMMUNICATIONS CONTROLLER
Figure 7-16. CAN Message Object Data CANMSGxDATA0-7 Registers
87C196CB SUPPLEMENT
Function
7.6 ENABLING THE CAN INTERRUPTS
Figure 7-17. CAN Control CANCON Register Continued
87C196CB SUPPLEMENT
CANCON Continued
87C196CB
When the SIE bit in the CAN control register is set, the CAN controller generates a successful reception RXOK interrupt request each time it receives a valid message, even if no message ob- ject accepts it. If you set both the SIE bit Figure 7-17 and an individual message object’s RXIE bit Figure 7-18, the CAN controller generates two interrupt requests each time a message object receives a message. The status change interrupt is useful during development to detect bus errors caused by noise or other hardware problems. However, you should disable this interrupt during normal operation in most applications. If the status change interrupt is enabled, each status change generates an interrupt request, placing an unnecessary burden on the CPU. To prevent re- dundant interrupt requests, enable the error interrupt sources with the EIE bit and enable the re- ceive and transmit interrupts in the individual message objects
7.7 DETERMINING THE CAN CONTROLLER’S INTERRUPT STATUS
Figure 7-20. CAN Status CANSTAT Register
CAN SERIAL COMMUNICATIONS CONTROLLER
Figure 7-21. CAN Message Object x Control 0 CANMSGxCON0 Register
87C196CB SUPPLEMENT
Register Mnemonic
7.8 FLOW DIAGRAMS
87C196CB SUPPLEMENT
Process message contents
Figure 7-22. Receiving a Message for Message Objects 1-14 - CPU Flow
A2594-01
Figure 7-23. Receiving a Message for Message Object 15 - CPU Flow
CAN SERIAL COMMUNICATIONS CONTROLLER
Restart Process
Figure 7-24. Receiving a Message - CAN Controller Flow
87C196CB SUPPLEMENT
Received frame with
same identifer as this
Update
Power Up
CAN SERIAL COMMUNICATIONS CONTROLLER
Figure 7-25. Transmitting a Message - CPU Flow
Figure 7-26. Transmitting a Message - CAN Controller Flow
87C196CB SUPPLEMENT
Received remote frame
with same identifer as
7.9 DESIGN CONSIDERATIONS
7.9.1 Hardware Reset
7.9.2 Software Initialization
7.9.3 Bus-off State
The CAN controller synchronizes itself to the CAN bus by waiting for 128 bus idle states 128 occurrences of 11 consecutive recessive bits before participating in bus activities. During this sequence, the CAN controller writes a bit 0 error code to the LEC20 bits of the status register each time it receives a recessive bit. Software can check the status register to determine whether the CAN bus is stuck in a dominant state. Once the CAN controller is resynchronized with the CAN bus, it clears the BUSOFF bit and starts transferring messages again
Special Operating Modes
Page
8.1 CLOCK CIRCUITRY
CHAPTER SPECIAL OPERATING MODES
Figure 8-1. Clock Circuitry
Page
Interfacing with External Memory
Page
CHAPTER 9 INTERFACING WITH EXTERNAL MEMORY
9.1 ADDRESS PINS
9.2 BUS TIMING MODES
Figure 9-1. Modes 0 and 3 Timings
87C196CB SUPPLEMENT
T RLDV = 1t
T AVDV = 3t
no direct access †
Figure 9-2. Chip Configuration 1 CCR1 Register
= always enabled
INTERFACING WITH EXTERNAL MEMORY
87C196CB SUPPLEMENT
Figure 9-2. Chip Configuration 1 CCR1 Register Continued
CCR1 Continued
Function
Programming the Nonvolatile Memory
Page
CHAPTER 10 PROGRAMMING THE NONVOLATILE MEMORY
10.2 MEMORY MAP FOR SLAVE PROGRAMMING MODE
10.1 SIGNATURE WORD AND PROGRAMMING VOLTAGES
87C196CB SUPPLEMENT Table 10-2. Slave Programming Mode Memory Map
10.3 MEMORY MAP AND CIRCUIT FOR AUTO PROGRAMMING
Table 10-3. Auto Programming Memory Map
PROGRAMMING THE NONVOLATILE MEMORY
10.4 MEMORY MAP FOR SERIAL PORT PROGRAMMING
Figure 10-1. Auto Programming Circuit
74HC14
10.4.2 Selecting Bank 1 FF8000-FFFFFFH
10.4.1 Selecting Bank 0 FF2000-FF7FFFH
Serial Port Programming Mode
Signal Descriptions
Page
A.1 FUNCTIONAL GROUPINGS OF SIGNALS
APPENDIX A SIGNAL DESCRIPTIONS
Figure A-1. 87C196CB 84-pin PLCC Package
87C196CB Supplement
xx87C196CB
View of component as
SIGNAL DESCRIPTIONS
A.2 SIGNAL DESCRIPTIONS
Figure A-2. 87C196CB 100-pin QFP Package
xx87C196CB
87C196CB Supplement
Table A-3. Signal Descriptions
Table A-2. Description of Columns of Table A-3
Table A-3. Signal Descriptions Continued
SIGNAL DESCRIPTIONS
read or write. AINC# is sampled after each location is programmed or dumped
87C196CB Supplement
Table A-3. Signal Descriptions Continued
Table A-3. Signal Descriptions Continued
SIGNAL DESCRIPTIONS
87C196CB Supplement
Table A-3. Signal Descriptions Continued
Table A-3. Signal Descriptions Continued
SIGNAL DESCRIPTIONS
87C196CB Supplement
Table A-3. Signal Descriptions Continued
A-10
Table A-3. Signal Descriptions Continued
SIGNAL DESCRIPTIONS
A-11
87C196CB Supplement
Table A-3. Signal Descriptions Continued
A-12
Table A-3. Signal Descriptions Continued
SIGNAL DESCRIPTIONS
A-13
Table A-3. Signal Descriptions Continued
A.3 DEFAULT CONDITIONS
Table A-4. Definition of Status Symbols
87C196CB Supplement
Table A-5. 87C196CB Pin Status Continued
SIGNAL DESCRIPTIONS
A-15
Page
Glossary
Page
GLOSSARY
two adjacent code transitions on the A/D converter
transfer function of an A/D converter
channel-to-channel matching error
characteristic
See off-isolation
earity errors
conversion result. Differential nonlinearity is a
code width
linearity errors. Quantizing error is the only error
The characteristic of an ideal A/D converter. An ideal
are to be serviced by interrupt service routines that
starting address of an interrupt service routine
See differential nonlinearity and nonlinearity
See interrupt service routine
linearity errors
serviced by interrupt service routines that you
terminal-based characteristic from the corre
OTPROM. Consult the Automotive Products or
Embedded Microcontrollers databook to determine
See PTS control block
directly to the interrupt service routine when
prioritized interrupt
ideal A/D converter
transitions from different actual characteristics taken
quantizing error
repeatability error
the A/D converter
Successive approximation register. A component of
sample delay
scaled to remove zero-offset error and full-scale
service routine
characteristic of the A/D converter
interrupt controller for processing by an interrupt
error, differential nonlinearity, and nonlinearity
process quantizing error, zero-offset error, full-scale
isolation, and VCC rejection errors
characteristic
Page
Index
Page
INDEX
Index-2
87C196CB SUPPLEMENT