ChipFind - документация

Электронный компонент: TN87C196MD

Скачать:  PDF   ZIP
8XC196MD
PROCESS INFORMATION
This device is manufactured on PX29.5, a CHMOS
III-E process. Additional process and reliability infor-
mation is available in the Intel
Quality System
Handbook
.
2723232
NOTE:
EPROMs are available as One Time Programmable
(OTPROM) only.
Figure 2. The 8XC196MD Family Nomenclature
Table 1. Thermal Characteristics
Package
ja
jc
Type
PLCC
35
C/W
13
C/W
QFP
56
C/W
12
C/W
All thermal impedance data is approximate for static air
conditions at 1W of power dissipation. Values will change
depending on operation conditions and application. See
the Intel
Packaging Handbook (order number 240800) for a
description of Intel's thermal impedance test methodology.
Table 2. 8XC196MD Memory Map
Description
Address
External Memory or I/O
0FFFFH
06000H
Internal ROM/EPROM or External
5FFFH
Memory (Determined by EA)
2080H
Reserved. Must contain FFH.
207FH
(Note 5)
205EH
PTS Vectors
205DH
2040H
Upper Interrupt Vectors
203FH
2030H
ROM/EPROM Security Key
202FH
2020H
Reserved. Must contain FFH.
201FH
(Note 5)
201CH
Reserved. Must Contain 20H
201BH
(Note 5)
CCB1
201AH
Reserved. Must Contain 20H
2019H
(Note 5)
CCB0
2018H
Reserved. Must contain FFH.
2017H
(Note 5)
2014H
Lower Interrupt Vectors
2013H
2000H
SFR's
1FFFH
1F00H
External Memory
1EFFH
0200H
488 Bytes Register RAM (Note 1)
01FFH
0018H
CPU SFR's (Notes 1. 3)
0017H
0000H
NOTES:
1. Code executed in locations 0000H to 01FFH will be
forced external.
2. Reserved memory locations must contain 0FFH unless
noted.
3. Reserved SFR bit locations must contain 0.
4. Refer to 8XC196MC for SFR descriptions.
5. WARNING: Reserved memory locations must not be
written or read. The contents and/or function of these lo-
cations may change with future revisions of the device.
Therefore, a program that relies on one or more of these
locations may not function properly.
3
x
x
8XC196MD
8XC196MC AND 8XC196MD
DIFFERENCES
INT
MASK1 INT
PEND1 Registers
There
are
some
differences
between
the
8XC196MC
and
8XC196MD
INT
MASK1
INT
PEND1 registers
The 8XC196MD interrupt
mask and pending registers are shown below No-
tice that the CAPCOM5 COMP4 and CAPCOM4
bits are reserved bits on the 8XC196MC The PI bit
of the INT
PEND1 register will be set when a
Waveform Generator or Compare Module 5 event
occurs and the corresponding bit in the PI
MASK
register is set The PI interrupt vector can be taken
when the PI bit in the INT
MASK1 register is set
The 8XC196MC User's Manual should be refer-
enced for details about the interrupts
INT
MASK1 (0031H)
and INT
PEND1 (0012H)
7
6
5
4
3
2
1
0
RSV EXTINT
PI
CAPCOM5 COMP4 CAPCOM4 COMP3 CAPCOM3
RSV
e
RESERVED BIT MUST WRITE AS 0
e
THIS BIT RESERVED ON 8XC196MC
Figure 3 Interrupt Mask and Status Registers
PTSSRV and PTSSEL Register
Similarly there are differences between 8XC196MC
and 8XC196MD PTS registers The 8XC196MD PTS
registers are shown below Notice the CAPCOM5
COMP4 and CAPCOM4 bits are reserved bits on
the 8XC196MC The PI bit in the PTSSRV will be set
when a Waveform Generator or Compare Module 5
end of PTS interrupt occurs and the corresponding
bit in the PI
MASK register is set The PI PTS vec-
tor can be used when the PI bit in the PTSSEL regis-
ter is set The 8XC196MC User's Manual should be
referenced for details about the PTS
PTSSEL (0004H) and PTSSRV (0006H)
15
14
13
12
11
10
9
8
RSV
EXTINT
PI
CAPCOM5
COMP4
CAPCOM4
COMP3 CAPCOM3
7
6
5
4
3
2
1
0
COMP2 CAPCOM2 COMP1 CAPCOM1 COMP0 CAPCOM0 AD
DONE TOVF
RSV
e
RESERVED BIT MUST WRITE AS 0
e
THIS BIT RESERVED ON 8XC196MC
Figure 4 PTS Select and Service Registers
PI
MASK and PI
PEND Registers
The PI
MASK PI
PEND registers contain the bits
for the Compare Module 5 (COMP5) Waveform Gen-
erator (WG) Timer 1 Overflow (TFI) and Timer 2
Overflow (TF2) mask status flag The diagram be-
low shows the registers Notice that the COMP5 bit
is a reserved bit on the 8XC196MC The 8XC196MC
User's Manual should be referenced for details
about the Waveform Generator Compare Modules
and Timers
PI
MASK (1FBEH) and
PI
PEND (1FBCH Read Only)
7
6
5
4
3
2
1
0
RSV
COMP5
RSV
WG
RSV
TF2
RSV
TF1
RSV
e
RESERVED BIT MUST WRITE AS 0
READ AS 1
e
THIS BIT RESERVED ON 8XC196MC
Figure 5 Peripheral Interrupt Mask
and Status Registers
The PI bit in the INT
PEND1 register is set if a
Waveform Generator event or Compare Module 5
event occurs and the corresponding PI
MASK bit is
set For either of these events to cause an interrupt
the PI bit in the INT
MASK1 register and the corre-
sponding event bit in the PI
MASK register must be
set
Similarly the TOVF bit in the INT
PEND register is
set if Timer 1 or Timer 2 overflow and the corre-
sponding bit in the PI
MASK register is set For ei-
ther of these two events to cause an interrupt the
TOVF bit in the INT
MASK register and the corre-
sponding event bit in the PI
MASK must be set
Upon a PI and or a TOVF interrupt it may be neces-
sary to check if the Compare Module 5 the Wave-
form Generator Timer 1 or Timer 2 event caused
the interrupt The PI
PEND will give this informa-
tion However it should be noted that reading the
PI
PEND register will clear the register So the indi-
vidual bits in the PI
PEND register must be read by
loading PI
PEND into another ``shadow'' register
then checking the ``shadow'' register to see what
event occurred
4
8XC196MD
Table 3 Interrupt Sources Vectors and Priorities
Interrupt Service
PTS Service
Interrupt Source
Symbol
Name
Vector
Priority
Name
Vector
Priority
Capture Compare5
CAPCOMP5
INT12
2038H
12
PTS12
2058H
27
Compare4
COMP4
INT11
2036H
11
PTS11
2056H
26
Capture Compare4
CAPCOMP4
INT10
2034H
10
PTS10
2054H
25
Interrupt and PTS Vectors
The 8XC196MD has three new interrupt and PTS
vectors which are Capture Compare5 Compare 4
and Capture Compare4 Table 3 shows these inter-
rupt vectors and priorities These are shown as re-
served vectors in the 8XC196MC User's Manual
Frequency Generator
The Frequency Generator (FG) Peripheral which
was not available on the 8XC196MC device is avail-
able on the 8XC196MD device The FG outputs a
programmable-frequency 50% duty cycle waveform
on the FREQOUT pin (P7 7) There are two 8-bit reg-
isters which control the FG peripheral
Frequency Generator Control Register
(FG
CON) at 1FB8h
Frequency Generator Period Count Register
(FG
COUNT) at 1FBAh
The FG
CON can be read or written This register
is loaded with a value which determines the number
of counts necessary for toggling the output The fol-
lowing equation should be used to calculate the
FG
CON value
FG
CON value
e
F
XTAL
16
(FG Frequency)
b
1
where FG Frequency is from 4 kHz to 1 MHz
The FG
COUNT is loaded with the FG
CON reg-
ister value The FG
COUNT register is decrement-
ed every eighth state time When it reaches 00h the
FG
COUNT register will send a signal to toggle the
output pin and reload the FG
COUNT register with
the
value
in
the
FG
CON
register
The
FG
COUNT can only be read not written
The FREQOUT pin (P7 7) must be configured for a
special function to use it for the Frequency Genera-
tor feature
Port 7
Port 7 is an additional bidirectional port that was not
available on the 8XC196MC device Port 7 can be
used as I O or some of the pins have special func-
tions The pins are listed below followed by their
special functions
Table 4 Port 7 Special Function Pins
Pin
Special Function
P7 0
CAPCOMP4
P7 1
CAPCOMP5
P7 2
CAPCOMP4
P7 3
CAPCOMP5
P7 4
P7 5
P7 6
P7 7
FREQOUT
The special functions of the pins are selected in the
Port 7 SFRs The Port 2 I O Port section of the
8XC196MC User's Manual can be referenced when
setting up the Port 7 SFRs Port 7 SFRs are located
in the following locations
Table 5 Port 7 Special Function Registers
SFR
Address
P7
MODE
1FD1h
P7
DIR
1FD3h
P7
REG
1FD5h
P7
PIN
1FD7h
5