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

Электронный компонент: COP912C-XXX/N

Скачать:  PDF   ZIP
TL DD12060
COP912CCOP912CH
8-Bit
Microcontroller
August 1996
COP912C COP912CH 8-Bit Microcontroller
General Description
The COP912C COP912CH are members of the COP8
TM
8-bit MicroController family They are fully static Microcon-
trollers fabricated using double-metal silicon gate micro-
CMOS technology These low cost MicroControllers are
complete microcomputers containing all system timing in-
terrupt logic ROM RAM and I O necessary to implement
dedicated control functions in a variety of applications Fea-
tures include an 8-bit memory mapped architecture
MICROWlRE
TM
serial I O a 16-bit timer counter with cap-
ture register and a multi-sourced interrupt Each I O pin has
software selectable options to adapt the device to the spe-
cific application The device operates over voltage ranges
from 2 3V to 4 0V (COP912C) and from 4 0V to 5 5V
(COP912CH) High throughput is achieved with an efficient
regular instruction set operating at a minimum of 2 ms per
instruction rate
Key Features
Y
Lowest cost COP8 microcontroller
Y
16-bit multi-function timer supporting
PWM mode
External event counter mode
Input capture mode
Y
768 bytes of ROM
Y
64 bytes of RAM
I O Features
Y
Memory mapped I O
Y
Software selectable I O options (TRI-STATE
Output
Push-Pull Output Weak Pull-Up Input High Impedance
Input)
Y
Schmitt trigger inputs on Port G
Y
MICROWIRE PLUS
TM
Serial I O
Y
Packages 20 DIP SO with 16 I O pins
CPU Instruction Set Features
Y
Instruction cycle time of 2 ms for COP912CH and
2 5 ms for COP912C
Y
Three multi-sourced interrupts servicing
External Interrupt with selectable edge
Timer interrupt
Software interrupt
Y
Versatile and easy to use instruction set
Y
8-bit Stack Pointer (SP)
stack in RAM
Y
Two 8-bit Register Indirect Memory Pointers (B X)
Fully Static CMOS
Y
Low current drain (typically
k
1 mA)
Y
Single supply operation 2 3V to 4 0V or 4 0V to 5 5V
Y
Temperature range 0 C to
a
70 C
Development Support
Y
Emulation and OTP devices
Y
Real time emulation and full program debug offered by
MetaLink Development System
Applications
Y
Electronic keys and switches
Y
Remote Control
Y
Timers
Y
Alarms
Y
Small industrial control units
Y
Low cost slave controllers
Y
Temperature meters
Y
Small domestic appliances
Y
Toys and games
Block Diagram
TL DD 12060 1
TRI-STATE
is a registered trademark of National Semiconductor Corporation
COP8
TM
MICROWIRE PLUS
TM
WATCHDOG
TM
and MICROWIRE
TM
are trademarks of National Semiconductor Corporation
PC
is a registered trademark of International Business Machines Corp
iceMaster
TM
is a trademark of MetaLink Corporation
C1996 National Semiconductor Corporation
RRD-B30M96 Printed in U S A
http
www national com
Absolute Maximum Ratings
If Military Aerospace specified devices are required
please contact the National Semiconductor Sales
Office Distributors for availability and specifications
Supply Voltage (V
CC
)
6 0V
Voltage at Any Pin
b
0 3V to V
CC
a
0 3V
Total Current into V
CC
Pin (Source)
80 mA
Total Current out of GND Pin (Sink)
80 mA
Storage Temperature Range
b
65 C to
a
150 C
Note
Absolute maximum ratings indicate limits beyond which damage
to the device may occur DC and AC electrical specifications are not
ensured when operating the device at absolute maximum ratings
DC Electrical Characteristics
COP912C COP912CH 0 C
s
T
A
s
a
70 C unless other specified
Parameter
Conditions
Min
Typ
Max
Units
Operating Voltage
912C
2 3
4 0
V
912CH
4 0
5 5
V
Power Supply Ripple 1 (Note 1)
Peak to Peak
0 1 V
CC
V
Supply Current (Note 2)
CKI
e
4 MHz
V
CC
e
5 5V tc
e
2 5 ms
6 0
mA
CKI
e
4 MHz
V
CC
e
4 0V tc
e
2 5 ms
2 5
mA
HALT Current
V
CC
e
5 5V CKI
e
0 MHz
k
1
8
m
A
INPUT LEVELS (V
IH
V
IL
)
Reset CKI
Logic High
0 9 V
CC
V
Logic Low
0 1 V
CC
V
All Other Inputs
Logic High
0 7 V
CC
V
Logic Low
0 2 V
CC
V
Hi-Z Input Leakage TRI-STATE Leakage
V
CC
e
5 5V
b
2
a
2
m
A
Input Pullup Current
V
CC
e
5 5V
250
m
A
G-Port Hysteresis
0 05 V
CC
0 35 V
CC
V
Output Current Levels
Source (Push-Pull Mode)
V
CC
e
4 0V V
OH
e
3 8V
0 4
mA
V
CC
e
2 3V V
OH
e
1 8V
0 2
mA
Sink (Push-Pull Mode)
V
CC
e
4 0V V
OL
e
1 0V
4 0
mA
V
CC
e
2 3V V
OL
e
0 4V
0 7
mA
Allowable Sink Source Current Per Pin
3
mA
Input Capacitance (Note 3)
7
pF
Load Capacitance on D2 (Note 3)
1000
pF
Note 1
Rate of voltage change must be less then 0 5 V ms
Note 2
Supply current is measured after running 2000 cycles with a square wave CKI input CKO open inputs at rails and outputs open
Note 3
Characterized not tested
TL DD 12060 2
FIGURE 1 MICROWIRE PLUS Timing
http
www national com
2
Typical Performance Characteristics
Halt
I
DD
TL DD 12060 16
Dynamic
I
DD
(Crystal Clock Option)
TL DD 12060 17
Port L G Weak Pull-Up
Source Current
TL DD 12060 18
Port L G Push-Pull Source Current
TL DD 12060 19
Port L G Push-Pull Sink Current
TL DD 12060 20
Port D Source Current
TL DD 12060 21
Port D Sink Current
TL DD 12060 22
http
www national com
3
AC Electrical Characteristics
COP912C COP912CH 0 C
s
T
A
s
a
70 C unless otherwise specified
Parameter
Conditions
Min
Typ
Max
Units
INSTRUCTION CYCLE TIME (tc)
Crystal Resonator
4 0V
s
V
CC
s
5 5V
2
DC
m
s
2 3V
s
V
CC
k
4 0V
2 5
DC
m
s
R C Oscillator
4 0V
s
V
CC
s
5 5V
3
DC
m
s
2 3V
s
V
CC
k
4 0V
7 5
DC
m
s
Inputs
t
Setup
4 0V
s
V
CC
s
5 5V
200
ns
2 3V
s
V
CC
k
4 0V
500
ns
t
Hold
4 0V
s
V
CC
s
5 5V
60
ns
2 3V
s
V
CC
k
4 0V
150
ns
Output Propagation Delay
R
L
e
2 2 kX C
L
e
100 pF
t
PD1
t
PD0
SO SK
4 0V
s
V
CC
s
5 5V
0 7
m
s
2 3V
s
V
CC
k
4 0V
1 75
m
s
All Others
4 0V
s
V
CC
s
5 5V
1
m
s
2 3V
s
V
CC
k
4 0V
5
m
s
Input Pulse Width
Interrupt Input High Time
1 tc
Interrupt Input Low Time
1 tc
Timer Input High Time
1 tc
Timer Input Low Time
1 tc
MICROWIRE Setup Time (t
m
WS
)
20
ns
MICROWIRE Hold Time (t
m
WH
)
56
ns
MICROWIRE Output
220
ns
Propagation Delay (t
m
PD
)
Reset Pulse Width
1 0
m
s
COP912C COP912CH Pinout
Top View
20 DIP
TL DD 12060 3
Order Number COP912C-XXX N COP912CH-XXX N
20 SO Wide
TL DD 12060 4
Order Number COP912C-XXX WM
COP912CH-XXX WM
FIGURE 2 COP912C COP912CH Pinout
http
www national com
4
Pin Description
V
CC
and GND are the power supply pins
CKI
is the clock input This can come from an external
source a R C generated oscillator or a crystal (in conjunc-
tion with CKO) See Oscillator description
RESET
is the master reset input See Reset description
PORT L
is an 8-bit I O port
There are two registers associated to configure the L port a
data register and a configuration register Therefore each L
I O bit can be individually configured under software control
as shown below
Port L Config
Port L Data
PORT L
Setup
0
0
Hi-Z Input (TRI-STATE)
0
1
Input with Weak Pull-Up
1
0
Push-Pull Zero Output
1
1
Push-Pull One Output
Three data memory address locations are allocated for this
port one each for data register 00D0
configuration regis-
ter 00D1 and the input pins 00D2
PORT G
is an 8-bit port with 6 I O pins (G0 G5) and 2 input
pins (G6 G7)
All eight G-pins have Schmitt Triggers on the inputs
There are two registers associated to configure the G port
a data register and a configuration register Therefore each
G port bit can be individually configured under software con-
trol as shown below
Port G
Port G
PORT G
Config
Data
Setup
0
0
Hi-Z Input (TRI-STATE)
0
1
Input with Weak Pull-Up
1
0
Push-Pull Zero Output
1
1
Push-Pull One Output
Three data memory address locations are allocated for this
port one for data register 00D4 one for configuration reg-
ister 00D5 and one for the input pins 00D6
Since G6
and G7 are Hi-Z input only pins any attempt by the user to
configure them as outputs by writing a one to the configura-
tion register will be disregarded Reading the G6 and G7
configuration bits will return zeroes Note that the chip will
be placed in the Halt mode by writing a ``1'' to the G7 data
bit
Six pins of Port G have alternate features
G0 INTR (an external interrupt)
G3 TIO (timer counter input output)
G4 SO (MICROWIRE serial data output)
G5 SK (MICROWIRE clock I O)
G6 SI (MICROWIRE serial data input)
G7 CKO crystal oscillator output (selected by mask option)
or HALT restart input general purpose input (if clock op-
tion is R C- or external clock)
Pins G1 and G2 currently do not have any alternate func-
tions
The selection of alternate Port G functions are done through
registers PSW
00EF
to enable external interrupt and
CNTRL 00EE to select TIO and MICROWIRE operations
Functional Description
The internal architecture is shown in the block diagram
Data paths are illustrated in simplified form to depict how
the various logic elements communicate with each other in
implementing the instruction set of the device
ALU AND CPU REGISTERS
The ALU can do an 8-bit addition subtraction logical or
shift operations in one cycle time There are five CPU regis-
ters
A
is the 8-bit Accumulator register
PC
is the 15-bit Program Counter register
PU is the upper 7 bits of the program counter (PC)
PL is the lower 8 bits of the program counter (PC)
B
is the 8-bit address register and can be auto incre-
mented or decremented
X
is the 8-bit alternate address register and can be auto
incremented or decremented
SP
is the 8-bit stack pointer which points to the subroutine
stack (in RAM)
B X and SP registers are mapped into the on chip RAM
The B and X registers are used to address the on chip RAM
The SP register is used to address the stack in RAM during
subroutine calls and returns The SP must be preset by soft-
ware upon initialization
MEMORY
The memory is separated into two memory spaces program
and data
PROGRAM MEMORY
Program memory consists of 768 x 8 ROM These bytes of
ROM may be instructions or constant data The memory is
addressed by the 15-bit program counter (PC) There are no
``pages'' of ROM the PC counts all 15 bits ROM can be
indirectly read by the LAlD instruction for table lookup
DATA MEMORY
The data memory address space includes on chip RAM I O
and registers Data memory is addressed directly by the in-
struction or indirectly through B X and SP registers The
device has 64 bytes of RAM Sixteen bytes of RAM are
mapped as ``registers'' these can be loaded immediately
decremented and tested Three specific registers X B and
SP are mapped into this space the other registers are avail-
able for general usage
Any bit of data memory can be directly set reset or tested
I O and registers (except A and PC) are memory mapped
therefore I O bits and register bits can be directly and indi-
vidually set reset and tested
RESET
The RESET input pin when pulled low initializes the micro-
controller Upon initialization the ports L and G are placed
in the TRl-STATE mode The PC PSW and CNTRL regis-
ters are cleared The data and configuration registers for
ports L and G are cleared The external RC network shown
in
Figure 3 should be used to ensure that the RESET pin is
held low until the power supply to the chip stabilizes
http
www national com
5