Information in this document is provided in connection with Intel products. No license, express or implied, by estoppel or
herwise, to any intellectual property rights is granted by this document. Except as provided in Intel’s Terms and Conditions
ot
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,
e saving, or life sustaining applications.
lif
In
tel may make changes to specifications and product descriptions at any time, without notice.
Designers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined."
Intel reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising
om future changes to them.
fr
The 8XC196Lx, 8XC196Kx, 8XC196Jx and 87C196CA 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
obtained by calling 1-800-548-4725 or by visiting Intel’s website at http://www.intel.com.
This document is a supplement to the 8XC196Kx, 8XC196Jx, 87C196 CA Microcontr oller Fa milyUser’s Manual. It describes the dif ferences between the 8XC196L x and the 8XC196 Kx family of
microcontrollers. For information not found in this su pplement, please consult the 8XC196Kx,8XC196Jx, 87C196CA Microcontroller Family User’s Manual (order number 272258) or the
8XC196Lx datasheets listed in the “Related Documents” section of this chapter.
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 remainder of this chapter provides references to related
documentation.
Chapter 2 — Architectural Overview — compares the features of the 8XC196Lx microcontroller family with those of the 8XC196Kx microcontroller family and describes the 87C196LA,
LB internal clock circuitry.
Chapter 3 — Address Space — describes the addressable memory space of the 52-pin
8XC196Lx, 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
87C196LB’s J1850 communications controller peripheral and the SFRs that support those interrupts.
Chapter 5 — I/O Ports — describes the port differences and explains the change in the port reset
state from a “logic 1” to a “logic 0” on the 87C196LA, LB.
Chapter 6— Synchronous Serial I/O Port — describes the enhanced synchronous serial I/O
(SSIO) port and explains how to program the two additional peripheral SFRs.
Chapter 8—J1850 Communications Controller— describes the 87C196LB’s integrated
J1850 controller and explains how to configure it.
Chapter 9 — Minimum Hardware Considerations — describes device reset options through
the reset source register, and discusses hardware design considerations.
Chapter 10 — Special Operating Modes — illustrates the internal clock control circuitry of the
87C196LA, LB and describes how to enter and exit on-circuit emulation (ONCE) mode.
Chapter 11— Pr ogramming the Nonvolat ile Memory — describes the memory maps and rec-
ommended circuits to support programming of the 87C196LA, LB’s 24 Kbytes of OTPROM.
1-1
8XC196LX SUPPLEMENT
Appendix A — Signal Descriptions — provides reference information for the 8XC196Lx de-
vice pins, including description s of the pin functi ons, reset stat us of the I/O and contr ol pins, and
package pin assignments.
Glossary — defines terms with special meaning used throughout this supplement.
Index — lists key topics with page number references.
1.2RELATED DOCUMENTS
T ab le 1-1 lists additional documen ts that yo u may fi nd usefu l in des igning syst ems inco rporat ing
the 8XC196Lx microcontrollers.
This chapter describes architectural differences between the 8XC196L x (87C196LA, 87C1 96LB,
and 83C196LD) and the 8XC196Kx (8XC196Kx, 8XC196Jx, and 87C196CA) microcontroller
families. Both the 8XC196Lx and the 8XC196Kx are designed for high-speed calculations and
fast I/O, and share a common architecture and instruction set with few deviations. This chapter
provides a high-level overview of the deviations between th e two families.
NOTE
This supplement describes two product families within the MCS® 96
microcontroller family. For brevity, the name 8XC196Lx is used when the
discussion applies to all three Lx controllers. Likewise, the name 8XC196Kx is
used when the discussion applies to all the Kx, Jx, and CA controllers.
2.1MICROCONTROLLER FEATURES
Table 2-1 lists the features of the 8XC196Lx and the 8XC196K x.
Table 2-1. Features of the 8XC196Lx and 8XC196Kx Product Famiies
1. Optional. The second character of the device name indicates the presence and type of nonvolatile
memory. 80C196
2. Register RAM amounts include the 24 bytes allocated to core SFRs and the stack pointer.
OTPROM/
EPROM/
ROM (1)
xx
= none; 83C196xx = ROM; 87C196xx = OTPROM or EPROM.
Register
RAM (2)
Code
RAM
I/O
Pins
EPA
Pins
SIO/
SSIO
Ports
A/DCAN J1850
Ext.
Interrupt
Pins
2-1
8XC196LX SUPPLEMENT
2.2BLOCK DIAGRAM
Figure 2-1 is a simplified block diagram that shows the major blocks within the microcontroller.
Observe that the slave port peripheral does not exist on the 8XC196Lx.
Core
(CPU, Memory
Controller)
Clock and
Power Mgmt.
SIO
Note:
The J1850 peripheral is unique to the 87C196LB device.
The A/D peripheral is unique to the 87C196LA, LB devices.
Optional
ROM/
OTPROM
Optional
Code/Data
RAM
EPA
Controller
Peripheral
Transaction
A/DSSIOI/O
Interrupt
Server
WDT
J1850
A5253-01
Figure 2-1. 8XC196Lx Block Diagram
2.3INTERNAL TIMING
The 87C196LA, LB clock circuitry (Figure 2-2) implements a phase-locked loo p 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 oscill ator. Depending on t he val u e of th e PLLEN pin, this frequency is routed
either through the phase-locked loop and m ultipl ier or directly to the divid e-by-two circuit. The
multiplier circuitry can double the input frequency (F
) before the frequency (f) reaches the
XTAL1
divide-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 87C196LA and LB, f is equal to either F
XTAL1
or 2F
, depending on the
XTAL1
clock multiplier mode, which is controlled by the PLLEN input pin.
ARCHITECTURAL OVERVIEW
XTAL1
XTAL2
F
XTAL1
Disable Oscillator
(Powerdown)
XTAL1
F
Disable
PLL
(Powerdown)
PLLEN
XTAL1
1
2F
0
Divide by two
Circuit
Clock
Generators
Programmable
Divider
(CLK1:0)
Phase
Comparator
Phase-locked
Oscillator
Phase-locked Loop
Clock Multiplier
f
Disable Clock Input (Powerdown)
f/2
Clock
Failure
Detection
f/2
Filter
To reset logic
Disable Clocks (Idle, Powerdown)
CPU Clocks (PH1, PH2)
Peripheral Clocks (PH1, PH2)
OSC
0
CLKOUT
1
Disable Clocks (Powerdown)
A5290-01
Figure 2-2. Clock Circuitry (87C196LA, LB Only)
The rising edges of PH1 and PH2 generate the internal CLKOUT signal (Figure 2-3). The clock
circuitry routes separat e internal cl ock sign als to the CPU an d the peri pherals to provi de flexi bility 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
8XC196LX SUPPLEMENT
P H1 (in MHz)
f
2
-- -PH2==
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 (Assumes PLL is Bypassed)
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. T able 2 -2 lists state time durations at various frequencies.
The following formulas calculate the frequency of PH1 and PH2, the d uration of a state time, and
the duration of a clock period (t).
State Time (in µs)
2
-- -=t
f
1
-- -=
f
Because the device can operate at many frequencies, this manual defines time requirements (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 frequency (F
), the operating
XTAL1
frequency (f), and the CLKOUT signal with each PLLEN pin configuration. Table 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
(16 MHz)
ARCHITECTURAL OVERVIEW
T
XHCH
PLLEN = 0
PLLEN = 1
f
t = 62.5ns
Internal
CLKOUT
f
t = 31.25ns
Internal
CLKOUT
A3376-01
Figure 2-4. Effect of Clock Mode on Internal CLKOUT Frequency
Table 2-3. Relationships Between Input Frequency, Clock Multiplier, and State Times
You can control the output frequency on the CLKOUT pin by programming two uneraseable
PROM bits. Figure 2-5 illustrates the read-only USFR1, which reflects the state of the u nerasable
PROM bits. You can select one of three frequencies: f/2, f/4, or f/8. As Figure 2-2 on page 2-3
shows, the configurable divider accepts the output of the clock generators (f/2) and further divides that frequency to produce the desired output frequency. The CLK1:0 bits control the divisor
(divide f/2 by either 1, 2, or 4).
2-5
8XC196LX SUPPLEMENT
USFR1 (read only)
The UPROM special-function register 1 (USFR1) reflects the status of unerasable, programmable
read-only memory (UPROM) locations. This read-only register reflects the status of two bits that
control the output frequency on CLKOUT.
70
——————CLK1CLK0
Bit
Number
7:2—Reserved.
1:0CLK1:0CLKOUT Control
Bit
Mnemonic
Function
These bits reflect the programmed frequency of the CLKOUT signal:
CLK1 CLK0
00divide by 1 (CLKOUT = f/2)
01divide by 2 (CLKOUT = f/4)
10divide by 4 (CLKOUT = f/8)
11divide by 1 (CLKOUT = f/2)
T o progr am these bits, write the co rrect value to the locations shown in Table 2-4 using slave programming mode. During normal operation , you can determine the values of these bits by reading
the UPROM SFR (Figure 2-5).
You can verify a UPROM bit to make sure it programmed, but you cannot erase it. For this reason, Intel cannot test the bits before shipment. However, Intel does test the features that t he UPROM bits enable, so the on ly undetectable defects ar e (unlikely) defects within the UPROM cells
themselves.
Table 2-4. UPROM Programming Values and Locations
To set this bitWrite this valueT o this location
CLK00001H0768H
CLK10002H0728H
2.5INTERNAL PERIPHERALS
The internal peripheral modules provide special functions for a variety of applications. This section provides a brief description of the peripherals that differ between the 8XC196 Lx and the
8XC196Kx families.
2-6
ARCHITECTURAL OVERVIEW
2.5.1I/O Ports
The I/O ports of the 8XC196Lx are fu nctionally identical to those of th e 8XC196J x. However , on
the 87C196LA and LB the reset state level of all 41 general-purpose I/O pins has changed from
a weak logic “1” (wk1) to a weak logic “0” (wk0).
2.5.2Synchronous Serial I/O Port
The synchronous serial I/O (SSIO) port on the 8XC196Lx has b een enhance d, implementing two
new special function registers (SSIO0_CLK and SSIO1_CLK) that allow you to select the operating mode and configure the phase and polarity of the serial clock signals.
2.5.3Event Processor Array
The 8XC196L x’s event processor array (EPA) is functionally identical to that of the 8XC196Jx,
except that it has only two EPA capture/compare channels with out pins instead of four. In addition the LD has no compare-only channels.
2.5.4J1850 Communications Controller
The 87C196LB microcon troller has a peri pheral no t found on the 8XC1 96Kx microcontrollers or
any other Lx microcontroller, the J1850 peripheral. The J1850 communications controller manages communications between multip le network nodes. This integrated peripheral s upports the
10.4 Kb/s VPW (variable pulse-width) medium-speed, class B, in-vehicle network protocol. It
also supports both the standard and in-frame response (IFR) message f raming as specified by the
Society of Automotive Engineering (SAE) J1850 (revised May 1994) technical standards.
2.6DESIGN CONSIDERATIONS
With the exception of a few new multiplexed functions, the 8XC196Lx microcontrollers are pin
compatible with the 8XC1 96Jx microcontrollers . The 8XC196Jx microcontrollers are 52-lead
versions of 8XC196Kx microcontrollers. For registers that are implemented in both the
8XC196Lx and the 8XC196Jx, configure the 8XC196Lx register as y ou woul d fo r the 8XC 196Jx
unless differences are noted in this supplement.
2-7
Address Space
3
CHAPTER 3
ADDRESS SPACE
This chapter describes the differences in the address space of the 8XC196Lx from that of the
8XC196Kx.
3.1ADDRESS PARTITIONS
Table 3-1 is an address map of the 8XC196Lx and 8XC196Kx microcontroller family members.
Table 3-1. Address Map
Device and Hex Address Range
JV
FFFF
E000
DFFF
2080
207F
2000
1FFF
1FE0
1FDF
1F00
1EFF
1E00
1DFF
1C00
FFFF
6000
5FFF
2080
207F
2000
1FFF
1FE0
1FDF
1F00
1EFF
1C00
LD
FFFF
8000
7FFF
2080
207F
2000
1FFF
1FE0
1FDF
1F00
1EFF
0300
LA, LB
JT, KT
FFFF
A000
9FFF
2080
207F
2000
1FFF
1FE0
1FDF
1F00
1EFF
1C00
CA
FFFF
A000
9FFF
2080
207F
2000
1FFF
1FE0
1FDF
1F00
1EFF
1E00
1DFF
1C00
—————
NOTES:
1. After a reset, the device fetches its first instruction from 2080H.
2. The content or function of these locations may change in future device revisions, in which case
a program that relies on a location in this range might not function properly.
JR, KR
FFFF
6000
5FFF
2080
207F
2000
1FFF
1FE0
1FDF
1F00
—————CAN SFRs
1EFF
1C00
Description
External device (memory
or I/O) connected to
address/data bus
Program memory
(internal nonvolatile or
external memory); see
Note 1
Special-purpose memory
(internal nonvolatile or
external memory)
Memory-mapped SFRs
Peripheral SFRs
(Includes J1850 SFRs on
87C196LB)
External device (memory
or I/O) connected to
address/data bus;
(future SFR expansion;
see Note 2)
Register RAM
Addressing
Modes
Indirect or
indexed
Indirect or
indexed
Indirect or
indexed
Indirect or
indexed
Indirect,
indexed, or
windowed
direct
Indirect,
indexed, or
windowed
direct
Indirect or
indexed
Indirect,
indexed, or
windowed
direct
3-1
8XC196LX SUPPLEMENT
Table 3-1. Address Map (Continued)
Device and Hex Address Range
CA
1BFF
0500
04FF
0400
—
03FF
0100
00FF
0000
NOTES:
1. After a reset, the device fetches its first instruction from 2080H.
2. The content or function of these locations may change in future device revisions, in which case
a program that relies on a location in this range might not function properly.
JR, KR
1BFF
0500
04FF
0400
03FF
0200
01FF
0100
00FF
0000
LD
1BFF
0600
——
05FF
0180
017F
0100
00FF
0000
LA, LB
—
———
02FF
0100
00FF
0000
JT, KT
1BFF
0600
05FF
0400
03FF
0100
00FF
0000
JV
1BFF
0600
05FF
0400
03FF
0100
00FF
0000
Description
External device (memory
or I/O) connected to
address/data bus
Lower register file
(register RAM, stack
pointer, and CPU SFRs)
Addressing
Indirect or
indexed
Indirect or
indexed
Indirect or
indexed
Indirect,
indexed, or
windowed
direct
Direct,
indirect, or
indexed
Modes
3.2REGISTER FILE
Figure 3-1 compares the register file addresses of the 8XC196Lx and 8XC196Kx. The register
file in Figure 3-1 is divi ded int o an upper register f ile and a lower regi ster fi le. The u pper register
file consists of general-purpose register RAM. The lower register file contains general-purpose
register RAM along with the stack pointer (SP) and the CPU special-function registers (SFRs).
T ab le 3-2 lists the register file memory addresses. The RALU accesses the lower register file directly, without the use of the memory controller. It also accesses a windowed location directly
(see “Windowing” on page 3-6). The upper register file and the peripheral SFRs can be win-
dowed. Registers in the lower register file and registers being windowed can be accessed with
register-direct addressing.
NOTE
The register file must not contain code. An attempt to execute an instruction
from a location in the register file causes the memory controller to fetch the
instruc tion from external memory.
3-2
General-purpose
Register RAM
ADDRESS SPACE
Address
03FFH
(CA, JT, JV, KT)
02FFH (LA, LB)
01FFH (JR, KR)
017FH (LD)
Address
03FFH
0100H
00FFH
0000H
Upper
Register File
Lower
Register File
Figure 3-1. Register File Address Map
Table 3-2. Register File Memory Addresses
Device and Hex Address Range
JVCA,JT,KT LA, LB JR, KRLD
1DFF
1C00
03FF
0100
00FF
001A
0019
0018
0017
0000
————Register RAM
03FF
0100
00FF
001A
0019
0018
0017
0000
02FF
0100
00FF
001A
0019
0018
0017
0000
01FF
0100
00FF
001A
0019
0018
0017
0000
017F
0100
00FF
001A
0019
0018
0017
0000
General-purpose
Register RAM
Stack Pointer
CPU SFRs
DescriptionAddressing Modes
Upper register file (register RAM)
Lower register file (register RAM)
Lower register file (stack pointer)
Lower register file (CPU SFRs)
0100H
00FFH
001AH
0019H
0018H
0017H
0000H
A5260-01
Indirect, indexed, or
windowed direct
Indirect, indexed, or
windowed direct
Direct, indirect, or
indexed
Direct, indirect, or
indexed
Direct, indirect, or
indexed
3-3
8XC196LX SUPPLEMENT
3.3PERIPHERAL SPECIAL-FUNCTION REGISTERS
T ab le 3-3 l ist s the p eriph eral SF R addr esses . High light ed addr esses are un ique to t he 8 XC196L x.
T ab le 3- 3. 8XC19 6Lx Peripheral SFRs
Ports 3, 4, 5, and UPROM SFRsPorts 0, 1, 2, and 6 SFRs
Windowing maps a segment of higher memory (the upper register file or peripheral SFRs) into
the lower register file. The window selection register (WSR) selects a 32-, 64- or 128-byte segment of higher memory to be windowed into the top of the lower register file space. Table 3-4
lists the WSR values for windowing the upper register file for both the 8XC196Lx and
8XC196Kx.
Table 3-4. Windows
Base
Address
Peripheral SFRs
1FE0H7FH (Note)
1FC0H7EH
1FA0H7DH
1F60H7BH
1F40H7AH
1F20H79H
CAN Peripheral SFRs (87C196CA Only)
1EE0H77H
1EC0H76H
1EA0H75H
1E60H73H
1E40H72H
1E20H71H
Register RAM (87C196JV Only)
1DE0H6FH
1DC0H6EH
1DA0H6DH
1D60H6BH
1D40H6AH
1D20H69H
NOTE: Locations 1FE0–1FFFH contain memory-mapped SFRs that cannot be accessed through a
window. Reading these locations through a window returns FFH; writing these locations
through a window has no effect.
WSR Value
for 32-byte Window
(00E0–00FFH)
WSR Value
for 64-byte Window
(00C0–00FFH)
3FH (Note)
3EH1F80H7CH
3DH
3CH1F00H78H
3BH
3AH1E80H74H
39H
38H1E00H70H
37H
36H1D80H6CH
35H
34H1D00H68H
WSR Value for
128-byte
Window
(0080–00FFH)
1FH (Note)
1EH
1DH
1CH
1BH
1AH
3-6
Loading...
+ 106 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.