87C196CB Supplement to 8XC196NT User’s Manual
August
87C196CB Supplement to 8XC196NT User’s Manual
Order Number
Copyright Intel Corporation, 1998
CHAPTER
CONTENTS
CHAPTER
GUIDE TO THIS MANUAL
SPECIAL OPERATING MODES
SIGNAL DESCRIPTIONS
87C196CB SUPPLEMENT
CHAPTER
Effect of Clock Mode on CLKOUT Frequency
FIGURES
CONTENTS
Internal Clock Phases
87C196CB 100-pin QFP Package
FIGURES
8XC196CB SUPPLEMENT
Page
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
20 MHz
8 MHz
12 MHz
16 MHz
Input Frequency to
Figure 2-4. Effect of Clock Mode on CLKOUT Frequency
ARCHITECTURAL OVERVIEW
Frequency
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
SIO and SSIO SFRs
Timer 1, Timer 2, and EPA SFRs
MEMORY PARTITIONS Table 3-3. 87C196CB Peripheral SFRs
Ports 0, 1, 2, and 6 SFRs
1EDCH
87C196CB SUPPLEMENT Table 3-4. CAN Peripheral SFRs
1ECCH
Message
MEMORY PARTITIONS Table 3-4. CAN Peripheral SFRs Continued
128-byte Window
87C196CB SUPPLEMENT Table 3-5. Selecting a Window of Peripheral SFRs
32-byte Window
64-byte Window
Locations
MEMORY PARTITIONS
Table 3-6. Selecting a Window of the Upper Register File
Register RAM
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
128-byte Windows
MEMORY PARTITIONS
32-byte Windows
64-byte Windows
32-byte Windows
Standard and PTS Interrupts
Page
4.1 INTERRUPT SOURCES, VECTORS, AND PRIORITIES
CHAPTER STANDARD AND PTS INTERRUPTS
Standard Vector
87C196CB SUPPLEMENT
Figure 4-1. Interrupt Mask 1 INTMASK1 Register
Figure 4-2. interrupt Pending 1 INTPEND1 Register
I/O Ports
Page
5.1 PORT 0 AND EPORT
CHAPTER I/O PORTS
EPDIR
Figure 5-3. Extended Port Mode EPMODE Register
87C196CB SUPPLEMENT
Figure 5-2. Extended Port I/O Direction EPDIR Register
EPPIN
I/O PORTS
Figure 5-4. Extended Port Input EPPIN Register
Figure 5-5. Extended Port Data Output EPREG Register
Page
Analog-to-digital A/D Converter
Page
6.1 ADDITIONAL A/D INPUT CHANNELS
CHAPTER 6 ANALOG-TO-DIGITAL A/D CONVERTER
Function
Figure 6-1. A/D Command ADCOMMAND Register
ADCOMMAND
87C196CB SUPPLEMENT
Function
ANALOG-TO-DIGITAL A/D CONVERTER
Figure 6-2. A/D Result ADRESULT Register - Read Format
ADRESULT Read
Page
CAN Serial Communications Controller
Page
7.1 CAN FUNCTIONAL OVERVIEW
CHAPTER 7 CAN SERIAL COMMUNICATIONS CONTROLLER
Page
Table 7-2. Control and Status Registers
7.2 CAN CONTROLLER SIGNALS AND REGISTERS
Table 7-1. CAN Controller Signals
CAN SERIAL COMMUNICATIONS CONTROLLER
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
7.3.2.2 Message Acceptance Filtering
Contents
87C196CB SUPPLEMENT Table 7-4. Message Object Structure
7.3.2.1 Receive and Transmit Priorities
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
t SYNC
CAN SERIAL COMMUNICATIONS CONTROLLER
Figure 7-5. A Bit Time as Implemented in the CAN Controller
Table 7-9. CAN Controller Bit Time Segments
Table 7-10. Bit Timing Relationships
where
Table 7-10 defines the bit timing relationships of the CAN controller
87C196CB SUPPLEMENT 7.3.5.1 Bit Timing Equations
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
TSEG2
7.4.3 Programming the Bit Timing 1 CANBTIME1 Register
87C196CB SUPPLEMENT
Figure 7-8. CAN Bit Timing 1 CANBTIME1 Register
Comments
7.4.4 Programming a Message Acceptance Filter
Bit Time
Requirement
87C196CB
87C196CB SUPPLEMENT
Figure 7-9. CAN Standard Global Mask CANSGMSK Register
CANSGMSK
87C196CB
CAN SERIAL COMMUNICATIONS CONTROLLER
Figure 7-10. CAN Extended Global Mask CANEGMSK Register
CANEGMSK
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
87C196CB
87C196CB SUPPLEMENT
Figure 7-17. CAN Control CANCON Register Continued
CANCON Continued
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
A2594-01
Process message contents
87C196CB SUPPLEMENT
Figure 7-22. Receiving a Message for Message Objects 1-14 - CPU Flow
Figure 7-23. Receiving a Message for Message Object 15 - CPU Flow
CAN SERIAL COMMUNICATIONS CONTROLLER
Restart Process
same identifer as this
87C196CB SUPPLEMENT
Figure 7-24. Receiving a Message - CAN Controller Flow
Received frame with
Figure 7-25. Transmitting a Message - CPU Flow
Power Up
Update
CAN SERIAL COMMUNICATIONS CONTROLLER
with same identifer as
87C196CB SUPPLEMENT
Figure 7-26. Transmitting a Message - CAN Controller Flow
Received remote frame
7.9.3 Bus-off State
7.9.1 Hardware Reset
7.9 DESIGN CONSIDERATIONS
7.9.2 Software Initialization
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
T AVDV = 3t
87C196CB SUPPLEMENT
Figure 9-1. Modes 0 and 3 Timings
T RLDV = 1t
INTERFACING WITH EXTERNAL MEMORY
Figure 9-2. Chip Configuration 1 CCR1 Register
no direct access †
= always enabled
Function
Figure 9-2. Chip Configuration 1 CCR1 Register Continued
87C196CB SUPPLEMENT
CCR1 Continued
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
74HC14
10.4 MEMORY MAP FOR SERIAL PORT PROGRAMMING
PROGRAMMING THE NONVOLATILE MEMORY
Figure 10-1. Auto Programming Circuit
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
View of component as
87C196CB Supplement
Figure A-1. 87C196CB 84-pin PLCC Package
xx87C196CB
xx87C196CB
A.2 SIGNAL DESCRIPTIONS
SIGNAL DESCRIPTIONS
Figure A-2. 87C196CB 100-pin QFP Package
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
87C196CB Supplement
A.3 DEFAULT CONDITIONS
Table A-3. Signal Descriptions Continued
Table A-4. Definition of Status Symbols
Table A-5. 87C196CB Pin Status Continued
SIGNAL DESCRIPTIONS
A-15
Page
Glossary
Page
GLOSSARY
characteristic
transfer function of an A/D converter
two adjacent code transitions on the A/D converter
channel-to-channel matching error
code width
earity errors
See off-isolation
conversion result. Differential nonlinearity is a
starting address of an interrupt service routine
The characteristic of an ideal A/D converter. An ideal
linearity errors. Quantizing error is the only error
are to be serviced by interrupt service routines that
See differential nonlinearity and nonlinearity
See interrupt service routine
linearity errors
Embedded Microcontrollers databook to determine
terminal-based characteristic from the corre
serviced by interrupt service routines that you
OTPROM. Consult the Automotive Products or
See PTS control block
directly to the interrupt service routine when
prioritized interrupt
repeatability error
transitions from different actual characteristics taken
ideal A/D converter
quantizing error
the A/D converter
Successive approximation register. A component of
sample delay
interrupt controller for processing by an interrupt
service routine
scaled to remove zero-offset error and full-scale
characteristic of the A/D converter
characteristic
process quantizing error, zero-offset error, full-scale
error, differential nonlinearity, and nonlinearity
isolation, and VCC rejection errors
Page
Index
Page
INDEX
Index-2
87C196CB SUPPLEMENT