Information in this document is provided in connection with Intel products. No license, express or implied, by estoppel or
rwise, to any intellectual property rights is granted by this document. Except as provided in Intel’s Terms and Conditions
othe
of
Sale for such products, Intel assumes no liability whatsoever, and Intel disclaims any express or implied warranty, relating
to
sale and/or use of Intel products including liability or warranties relating to fitness for a particular purpose, merchantability,
or infringement of any patent, copyright or other intellectual property right. Intel products are not intended for use in medical,
life saving, or life sustaining applications.
l may make changes to specifications and product descriptions at any time, without notice.
Inte
Designers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined."
Inte
l reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising
from future changes to them.
The 87C196CB and 8XC196NT microprocessors may contain design defects or errors known as errata which may cause the
products to deviate from published specifications. Current characterized errata are available on request.
Contact your local Intel sales office or your distributor to obtain the latest specifications and before placing your product order.
Copies of documents which have an ordering number and are referenced in this document, or other Intel literature may be
obta
ined by calling 1-800-548-4725 or by visiting Intel’s website at http://www.intel.com.
This document is a supplement to the 8XC196NT Microcontroller User’s Manual. It describes
the differences between the 87C196CB and the 8XC196NT. For information not found in this
supplement, please consult the 8XC196NT Microcontroller User’s Manual (order number
272317) or the 87C196CB datasheet (87C196CA/87C196CB 20 MHz Advanced 16-Bit CHMOSMicrocontroller with Integrated CAN 2.0, order number 272405).
1.1MANUAL CONTENTS
This supplement contains several chapters, an appendix, a glossary, and an index. This chapter,
Chapter 1, provides an overview of the supplement. This section summarizes the contents of the
remaining chapters and appendixes. The remain der of this chapter provides references to related
documentation.
Chapter 2 — Architectural Overview — compares the features of the 87C196CB with those of
the 8XC196NT and describes the 87C196CB’s internal clock circuitry.
Chapter 3 — Memory Partitions — describes the addressable memory space of the 84 -pin and
100-pin 87C196CB, lists the peripheral special-function registers (SFRs), and provides tables of
WSR values for windowing higher memory into the lower register file for direct access.
Chapter 4 — Standard and PTS Interrupts — describes the additional interrupts for the CAN
(controller area network) peripheral and the SFRs that support those interrupts.
Chapter 5 — I/O Ports — describes the port 0 and EPORT differences for the 100-pin
87C196CB. Both port 0 and the EPORT are implemented as eight-bit ports on the 100-pin
87C196CB, but as four-bit ports (like the 8XC196NT) on the 84-pin 87C196CB.
Chapter 6 —Analog-to-digital ( A/D) Converter— illustrates the SFRs that are affected by the
implementation of port 0 as an eight-bit port.
Chapter 7 — CAN Serial Communications Controller — describes the 87C196CB’s integrated CAN controller and explains how to configure it. This integrated periphera l is similar to Intel’s
standalone 82527 CAN serial communications controller, supporting both the standard and extended message frames specified by the CAN 2.0 protocol parts A and B.
Chapter 8 — Special Operating Modes — illustrates the clock control circuitry of the
87C196CB.
1-1
87C196CB SUPPLEMENT
Chapter 9 — Interfacing with External Memory — discusses differenc es in the bus timing
modes supported by the 8XC196NT and the 87C196CB.
Chapter 10 — Programming the Nonvola tile Memory — describes the memory maps and rec-
ommended circuits to support programmi ng of the 87C196CB’s 56 Kbytes of OTPROM.
Appendix A — Signal Descriptions — describes the additional signals implemented on the
87C196CB.
Glossary — defines terms with special me aning used througho ut this supplement.
Index — lists key topics with page number referenc es .
1.2RELATED DOCUMENTS
Table 1-1 lists additional documents that you may find useful in desig ning systems incorporating
the 87C196CB microcontroller.
T able 1-1. Related Documents
Title and DescriptionOrder Number
8XC196NT Microcontroller User’s Manual
Automotive Products
87C196C B 20 MHz Advanced 1 6-Bit CHM OS Microcontroller with
Integrated CAN 2.0 (
handbook231792
datasheet)
272317
272405
1-2
Architectural
Overview
2
CHAPTER 2
ARCHITECTURAL OVERVIEW
This chapter describes architectural differences between the 87C196CB and the 8XC196NT.
Both the 8XC196NT and the 87C196CB are designed for high-speed calculations and fast I/O.
With the addition of the CAN (controller area network ) peripheral, the 8 7C196CB reduces pointto-point wiring requirements, making it well-suited to automotive and factory automation applications.
The 87C196CB is available in eith er an 84-p in or a 100-pin p ackage. Th e 84-pin 8 7C196CB, like
the 8XC196NT, has up to 2 0 external address lines, enabling access to 1 Mbyte of linear add ress
space. The 100-pin 87C196CB has four additional pin s available for ex ternal add ress lines. With
all 24 external address lines connected, the 100-pin 87C196CB can access 16 Mbytes of linear
address space.
2.1DEVICE FEATURES
Table 2-1 lists the features of the 8XC196NT and the 87C196CB. The 87C196CB implements
more OTPROM, more register RAM, four additional A/D channels, and the CAN peripheral. The
100-pin 87C196CB also implements four additional EPORT pins.
Table 2-1. Features of the 8XC196NT and 87C196CB
8XC196NT68 0 or 32 K1 K512561024140
87C196CB84 56 K1.5 K512 561028 142
87C196CB100 56 K 1.5 K512601028182
†
Register RAM amount includes the 24 bytes allocated to the core SFRs and stack pointer.
2-1
87C196CB SUPPLEMENT
2.2BLOCK DIAGRAM
Figure 2-1 shows the major blocks within the device. The 8XC196NT and 87C196CB have the
same peripheral set with the exception of the CAN (controller area network) periphe ral, which is
unique to the 87C196CB. The CAN peripheral manages communications between multiple network nodes. This integrated periph eral is similar to Intel’s standalon e 82527 CAN serial communications controller, supporting both the standard and extended message frames specified by the
CAN 2.0 protocol parts A and B.
Core
Clock and
Power Mgmt.
SSIO
OTPROM
Code/Data
RAM
EPAI/O
A/DSIO
Interrupt
Controller
PTS
WDT
Slave
Port
CAN
A3179-01
Figure 2-1. 87C196CB Block Diagram
2.3INTERNAL TIMING
The 87C196CB’s clock circuitry ( Figure 2-2 ) implements phase-locked loop and clock multiplier
circuitry, which can substantially increase the CPU clock rate while using a lower-frequency input clock. The clock circuitry accepts an input clock signal on XTAL1 provided by an external
crystal or oscillator. Depending on the value of the PLLEN pin, this frequency is routed either
through the phase-locked loop and multiplier or directly to the divide-by-two circuit. The multiplier circuitry can quadruple the inpu t frequency (F
) before the frequency (f) reache s the di-
XTAL1
vide-by-two circuitry. The clock generators accept the divided input frequency (f/2) from the
divide-by-two circuit and produce two nonoverlapping internal timing signals, PH1 and PH2.
These signals are active when high.
2-2
NOTE
This manual uses lowercase “f” to represent the internal clock frequency. For
the 87C196CB, f is equal to either F
XTAL1
or 4F
, depending on the clock
XTAL1
multiplier mode, which is controlled by the PLLEN input pin.
XTAL1
F
XTAL1
Disable
PLL
(Powerdown)
ARCHITECTURAL OVERVIEW
Phase
Comparator
Filter
Phase-
locked
Oscillator
Phase-locked Loop
Clock Multiplier
Peripheral Clocks (PH1, PH2)
CLKOUT
CPU Clocks (PH1, PH2)
A3168-01
XTAL2
PLLEN
Disable
Oscillator
(Powerdown)
XTAL1
F
XTAL1
4F
Disable Clock Input
(Powerdown)
f
Divide-by-two
Circuit
f
2
Clock
Generators
Disable Clocks
(Powerdown)
Disable Clocks
(Idle, Powerdown)
Figure 2-2. Clock Circuitry
The rising edges of PH1 and PH2 generate the internal CLKOUT signal (Figure 2-3). The clock
circuitry routes separate internal clock signals to the CPU and the peripher als to provid e flexibility in power management. It also outputs the CLKOUT signal on the CLKOUT pin. Because of
the complex logic in the clock circuitry, the signal on the CLKOUT pin is a delayed version of
the internal CLKOUT signal. This delay varies with temperature and voltage.
2-3
87C196CB SUPPLEMENT
XTAL1
PH1
PH2
CLKOUT
tt
1 State Time
1 State Time
Phase 1Phase 2
Phase 1Phase 2
A0805-01
Figure 2-3. Internal Clock Phases
The combined period of phase 1 and phase 2 of the internal CLKOUT signal defines the basic
time unit known as a state time or state. Table 2-2 lists state time durations at various frequencies.
The following formulas calculate the freq uency of PH1 and PH2, the d uration of a state time, and
the duration of a clock period (t).
P H1 (in MHz)
f
-- -PH2==State Time (in µs)
2
2
-- -=t
f
1
-- -=
f
Because the device can operate at many frequencies, this manual defines time requir ements (such
as instruction execution times) in terms of state times rather than specific measurements.
Datasheets list AC characteristics in terms of clock periods (t; sometimes called T
osc
).
Figure 2-4 illustrates the timing relationships between the input freq uency (F
), the operating
XTAL1
frequency (f), and the CLKOUT signal with each PLLEN pin conf iguration. Ta ble 2-3 details the
relationships between the input frequency (F
), the PLLEN pin, the operating frequency (f),
XTAL1
the clock period (t), and state times.
2-4
XTAL1 (5 MHz)
CLKOUT
XTAL1 (5 MHz)
CLKOUT
ARCHITECTURAL OVERVIEW
PLLEN = 0
t = 80ns
f
T
XHCH
PLLEN = 1
t = 20ns
f
T
XHCH
A3170-01
Figure 2-4. Effect of Clock Mode on CLKOUT Frequency
Table 2-3. Relationships Between Input Frequency, Clock Multiplier, and State Times
This chapter describes the differences in the address space of the 87C196CB from that of the
8XC196NT. The 87C196CB has 56 Kbytes of one-time-programmable read-only memory (OTPROM), while the 8XC196NT is available with 32 Kbytes. The 87C196CB also has an additional
512 bytes of register RAM.
The 87C196CB is available in eith er an 84-p in or a 100-pin p ackage. Th e 84-pin 8 7C196CB, like
the 8XC196NT, has up to 2 0 external address lines, enabling access to 1 Mbyte of linear add ress
space. The 100-pin 87C196CB has four additional pin s available for ex ternal add ress lines. With
all 24 external address lines connected (A23:16 and AD15:0), the 100-pin 87 C196CB can access
16 Mbytes of linear address space.
3.1MEMORY MAP, SPECIAL-FUNCTION REGISTERS, AND WINDOWING
Table 3-1 compares the register file addresses of the 8XC196NT and 87C196CB. Table 3-2 is a
memory map of the 87C196CB. Table 3-3 lists the 87C196CB’s peripheral SFRs (these are the
same as those of the 8XC196NT). Table 3-4 lists the CAN peripheral SFRs, which are unique to
the 87C196CB. Tables 3-5 through 3-9 provide the information necessary to window higher
memory into the lower register file for direct access.
Table 3-1. Register File Memory Addresses
Device and Hex
Address Range
CBNT
1DFF
1C00
03FF
0100
00FF
001A
0019
0018
0017
0000
.
.
—Register RAMIndirect, indexed, or windowed direct
03FF
0100
00FF
001A
0019
0018
0017
0000
Upper register file (register RAM)Indirect, indexed, or windowed direct
Lower register file (register RAM)Direct, indirect, or indexed
Lower register file (stack pointer)Direct, indirect, or indexed
Lower register file (CPU SFRs)Direct, indirect, or indexed
DescriptionAddressing Modes
3-1
87C196CB SUPPLEMENT
Table 3-2. 87C196CB Memory Map
Hex
Address
FFFFFF
FF2080
FF207F
FF2000
FF1FFF
FF0600
FF05FF
FF0400
FF03FF
FF0100
FF00FF
FF0000
FEFFFF
0F0000
0EFFFF
010000
00FFFF
002000
001FFF
001FE0
001FDF
001F00
001EFF
001E00
001DFF
001C00
001BFF
000600
0005FF
000400
0003FF
000100
0000FF
000000
†
For the 87C196CB, the program and special-purpose memory locations (FF2000-FFF FFFH) can reside
Program memory (After a device reset, the first instruction fetch
is from FF2080H)
Special purpose memory
External device (memory or I/O) connected to address/data busIndirect, indexed, extended
Internal code and data RAM
(mapped identically into pages FFH and 00H)
External device (memory or I/O) connected to address/data busIndirect, indexed, extended
Locations xF0000-xF00FFH are reserved for in-circuit emulator s. Do not use these locations except to
initialize them. Except as otherwise noted, initialize unused program memory locations and reserved
memory locations to FFH.
†††
These locations can be either external memory (CCB2.2=0) or a copy of the OTPROM (CCB2.2=1).
DescriptionAddressing Modes
†
†
Indirect, indexed, extended
Indirect, indexed, extended
Indirect, indexed, extended
Indirect, indexed, extended
††
†††
Indirect, indexed, extended
Indirect, indexed, extended
Indirect, indexed, extended,
windowed direct
Indirect, indexed,
windowed direct
Indirect, indexed, extended
Indirect, indexed, extended
Indirect, indexed,
windowed direct
3-2
MEMORY PARTITIONS
Table 3-3. 87C196CB Peripheral SFRs
Ports 0, 1, 2, and 6 SFRsTimer 1, Timer 2, and EPA SFRs