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

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

Скачать:  PDF   ZIP
COP8SG Family
8-Bit CMOS ROM Based and OTP Microcontrollers with
8k to 32k Memory, Two Comparators and USART
General Description
The COP8SGx5 Family ROM based microcontrollers are
highly integrated COP8
TM
Feature core devices with 8k to
32k memory and advanced features including Analog com-
parators, and zero external components. These single-chip
CMOS devices are suited for more complex applications re-
quiring a full featured controller with larger memory, low EMI,
two comparators, and a full-duplex USART. COP8SGx7 de-
vices are 100% form-fit-function compatible 8k or 32k OTP
(One Time Programmable) versions for use in production or
development.
Erasable windowed versions are available for use with a
range of COP8 software and hardware development tools.
Family features include an 8-bit memory mapped architec-
ture, 15 MHz CKI with 0.67 s instruction cycle, 14 inter-
rupts, three multi-function 16-bit timer/counters with PWM,
full duplex USART, MICROWIRE/PLUS
TM
, two analog com-
parators, two power saving HALT/IDLE modes, MIWU, idle
timer, on-chip R/C oscillator, high current outputs, user se-
lectable options (WATCHDOG
TM
, 4 clock/oscillator modes,
power-on-reset), 2.7V to 5.5V operation, program code se-
curity, and 28/40/44 pin packages.
Devices included in this datasheet are:
Device
Memory (bytes)
RAM
(bytes)
I/O Pins
Packages
Temperature
COP8SGE5
8k ROM
256
24/36/40
28 DIP/SOIC, 40 DIP, 44 PLCC/QFP
-40 to +85C,
-40 to +125C
COP8SGG5
16k ROM
512
24/36/40
28 DIP/SOIC, 40 DIP, 44 PLCC/QFP
-40 to +85C,
-40 to +125C
COP8SGH5
20k ROM
512
24/36/40
28 DIP/SOIC, 40 DIP, 44 PLCC/QFP
-40 to +85C,
-40 to +125C
COP8SGK5
24k ROM
512
24/36/40
28 DIP/SOIC, 40 DIP, 44 PLCC/QFP
-40 to +85C,
-40 to +125C
COP8SGR5
32k ROM
512
24/36/40
28 DIP/SOIC, 40 DIP, 44 PLCC/QFP
-40 to +85C,
-40 to +125C
COP8SGE7
8k OTP EPROM
256
24/36/40
28 DIP/SOIC, 40 DIP, 44 PLCC/QFP
-40 to +85C,
-40 to +125C
COP8SGR7
32k OTP EPROM
512
24/36/40
28 DIP/SOIC, 40 DIP, 44 PLCC/QFP
-40 to +85C,
-40 to +125C
COP8SGR7-Q3
32k EPROM
512
24/36/40
28 DIP/SOIC, 40 DIP, 44 PLCC/QFP
Room Temp.
Key Features
n
Low cost 8-bit microcontroller
n
Quiet Design (low radiated emissions)
n
Multi-Input Wakeup pins with optional interrupts (8 pins)
n
Mask selectable clock options
-- Crystal oscillator
-- Crystal oscillator option with on-chip bias resistor
-- External oscillator
-- Internal R/C oscillator
n
Internal Power-On-Reset -- user selectable
n
WATCHDOG and Clock Monitor Logic -- user selectable
n
Eight high current outputs
n
256 or 512 bytes on-board RAM
n
8k to 32k ROM or OTP EPROM with security feature
CPU Features
n
Versatile easy to use instruction set
n
0.67 s instruction cycle time
n
Fourteen multi-source vectored interrupts servicing
-- External interrupt / Timers T0 -- T3
-- MICROWIRE/PLUS Serial Interface
-- Multi-Input Wake Up
-- Software Trap
-- USART (2; 1 receive and 1 transmit)
-- Default VIS (default interrupt)
n
8-bit Stack Pointer SP (stack in RAM)
n
Two 8-bit Register Indirect Data Memory Pointers
n
True bit manipulation
n
BCD arithmetic instructions
COP8
TM
, MICROWIRE/PLUS
TM
, and WATCHDOG
TM
are trademarks of National Semiconductor Corporation.
TRI-STATE
is a registered trademark of National Semiconductor Corporation.
iceMASTER
is a registered trademark of MetaLink Corporation.
January 2000
COP8SG
Family
,
8-Bit
CMOS
ROM
Based
and
OTP
Microcontrollers
with
8k
to
32k
Memory
,
T
wo
Comparators
and
USART
2000 National Semiconductor Corporation
DS101317
www.national.com
CPU Features
(Continued)
Peripheral Features
n
Multi-Input Wakeup Logic
n
Three 16-bit timers (T1 -- T3), each with two 16-bit
registers supporting:
-- Processor Independent PWM mode
-- External Event Counter mode
-- Input Capture mode
n
Idle Timer (T0)
n
MICROWIRE/PLUS Serial Interface (SPI Compatible)
n
Full Duplex USART
n
Two Analog Comparators
I/O Features
n
Software selectable I/O options (TRI-STATE
Output,Push-Pull Output, Weak Pull-Up Input, and High
Impedance Input)
n
Schmitt trigger inputs on ports G and L
n
Eight high current outputs
n
Packages: 28 SO with 24 I/O pins, 40 DIP with 36 I/O
pins, 44 PLCC and PQFP with 40 I/O pins
Fully Static CMOS Design
n
Low current drain (typically
<
4 A)
n
Two power saving modes: HALT and IDLE
Temperature Range
n
-40C to +85C, -40C to +125C
Development Support
n
Windowed packages for DIP and PLCC
n
Real time emulation and full program debug offered by
MetaLink Development System
Block Diagram
DS101317-44
FIGURE 1. COP8SGx Block Diagram
COP8SG
Family
www.national.com
2
1.0 Device Description
1.1 ARCHITECTURE
The COP8 family is based on a modified Harvard architec-
ture, which allows data tables to be accessed directly from
program memory. This is very important with modern
microcontroller-based applications, since program memory
is usually ROM or EPROM, while data memory is usually
RAM. Consequently data tables need to be contained in
non-volatile memory, so they are not lost when the microcon-
troller is powered down. In a modified Harvard architecture,
instruction fetch and memory data transfers can be over-
lapped with a two stage pipeline, which allows the next in-
struction to be fetched from program memory while the cur-
rent instruction is being executed using data memory. This is
not possible with a Von Neumann single-address bus archi-
tecture.
The COP8 family supports a software stack scheme that al-
lows the user to incorporate many subroutine calls. This ca-
pability is important when using High Level Languages. With
a hardware stack, the user is limited to a small fixed number
of stack levels.
1.2 INSTRUCTION SET
In today's 8-bit microcontroller application arena cost/
performance, flexibility and time to market are several of the
key issues that system designers face in attempting to build
well-engineered products that compete in the marketplace.
Many of these issues can be addressed through the manner
in which a microcontroller's instruction set handles process-
ing tasks. And that's why COP8 family offers a unique and
code-efficient instruction set -- one that provides the flexibil-
ity, functionality, reduced costs and faster time to market that
today's microcontroller based products require.
Code efficiency is important because it enables designers to
pack more on-chip functionality into less program memory
space. Selecting a microcontroller with less program
memory size translates into lower system costs, and the
added security of knowing that more code can be packed
into the available program memory space.
1.2.1 Key Instruction Set Features
The COP8 family incorporates a unique combination of in-
struction set features, which provide designers with optimum
code efficiency and program memory utilization.
Single Byte/Single Cycle Code Execution
The efficiency is due to the fact that the majority of instruc-
tions are of the single byte variety, resulting in minimum pro-
gram space. Because compact code does not occupy a sub-
stantial amount of program memory space, designers can
integrate additional features and functionality into the micro-
controller program memory space. Also, the majority instruc-
tions executed by the device are single cycle, resulting in
minimum program execution time. In fact, 77% of the instruc-
tions are single byte single cycle, providing greater code and
I/O efficiency, and faster code execution.
1.2.2 Many Single-Byte, Multifunction Instructions
The COP8 instruction set utilizes many single-byte, multi-
function instructions. This enables a single instruction to ac-
complish multiple functions, such as DRSZ, DCOR, JID, LD
(Load) and X (Exchange) instructions with post-incrementing
and post-decrementing, to name just a few examples. In
many cases, the instruction set can simultaneously execute
as many as three functions with the same single-byte in-
struction.
JID: (Jump Indirect); Single byte instruction; decodes exter-
nal events and jumps to corresponding service routines
(analogous to "DO CASE" statements in higher level lan-
guages).
LAID: (Load Accumulator-Indirect); Single byte look up table
instruction provides efficient data path from the program
memory to the CPU. This instruction can be used for table
lookup and to read the entire program memory for checksum
calculations.
RETSK: (Return Skip); Single byte instruction allows return
from subroutine and skips next instruction. Decision to
branch can be made in the subroutine itself, saving code.
AUTOINC/DEC: (Auto-Increment/Auto-Decrement); These
instructions use the two memory pointers B and X to effi-
ciently process a block of data (analogous to "FOR NEXT" in
higher level languages).
1.2.3 Bit-Level Control
Bit-level control over many of the microcontroller's I/O ports
provides a flexible means to ease layout concerns and save
board space. All members of the COP8 family provide the
ability to set, reset and test any individual bit in the data
memory address space, including memory-mapped I/O ports
and associated registers.
1.2.4 Register Set
Three memory-mapped pointers handle register indirect ad-
dressing and software stack pointer functions. The memory
data pointers allow the option of post-incrementing or post-
decrementing with the data movement instructions (LOAD/
EXCHANGE). And 15 memory-maped registers allow de-
signers to optimize the precise implementation of certain
specific instructions.
1.3 EMI REDUCTION
The COP8SGx5 family of devices incorporates circuitry that
guards against electromagnetic interference -- an increasing
problem in today's microcontroller board designs. National's
patented EMI reduction technology offers low EMI clock cir-
cuitry, gradual turn-on output drivers (GTOs) and internal I
CC
smoothing filters, to help circumvent many of the EMI issues
influencing
embedded
control
designs.
National
has
achieved 15 dB20 dB reduction in EMI transmissions when
designs have incorporated its patented EMI reducing cir-
cuitry.
1.4 PACKAGING/PIN EFFICIENCY
Real estate and board configuration considerations demand
maximum space and pin efficiency, particularly given today's
high integration and small product form factors. Microcontrol-
ler users try to avoid using large packages to get the I/O
needed. Large packages take valuable board space and in-
creases device cost, two trade-offs that microcontroller de-
signs can ill afford.
The COP8 family offers a wide range of packages and do not
waste pins: up to 90.9% (or 40 pins in the 44-pin package)
are devoted to useful I/O.
COP8SG
Family
www.national.com
3
Connection Diagrams
DS101317-4
Note 1: X = E for 8k, G for 16k,
H for 20k, K for 24k, R for 32k
Y = 5 for ROM, 7 for OTP
Top View
Order Number COP8SGXY28M8
See NS Package Number M28B
Order Number COP8SGXY28N8
See NS Package Number N28A
Order Number COP8SGR728Q3
See NS Package Number D28JQ
DS101317-5
Top View
Order Number COP8SGXY40N8
See NS Package Number N40A
Order Number COP8SGR540Q3
See NS Package Number D40KQ
DS101317-6
Top View
Order Number COP8SGXY44V8
See NS Package Number V44A
Order Number COP8SGR744J3
See NS Package Number EL44C
DS101317-43
Top View
Order Number COP8SGXYVEJ8
See NS Package Number VEJ44A
FIGURE 2. Connection Diagrams
COP8SG
Family
www.national.com
4
Connection Diagrams
(Continued)
Pinouts for 28 -, 40- and 44-Pin Packages
Port
Type
Alt. Fun
28-Pin SO
40-Pin DIP
44-Pin PLCC
44-Pin PQFP
L0
I/O
MIWU
11
17
17
11
L1
I/O
MIWU or CKX
12
18
18
12
L2
I/O
MIWU or TDX
13
19
19
13
L3
I/O
MIWU or RDX
14
20
20
14
L4
I/O
MIWU or T2A
15
21
25
19
L5
I/O
MIWU or T2B
16
22
26
20
L6
I/O
MIWU or T3A
17
23
27
21
L7
I/O
MIWU or T3B
18
24
28
22
G0
I/O
INT
25
35
39
33
G1
I/O
WDOUT*
26
36
40
34
G2
I/O
T1B
27
37
41
35
G3
I/O
T1A
28
38
42
36
G4
I/O
SO
1
3
3
41
G5
I/O
SK
2
4
4
42
G6
I
SI
3
5
5
43
G7
I
CKO
4
6
6
44
D0
O
19
25
29
23
D1
O
20
26
30
24
D2
O
21
27
31
25
D3
O
22
28
32
26
D4
O
29
33
27
D5
O
30
34
28
D6
O
31
35
29
D7
O
32
36
30
F0
I/O
7
9
9
3
F1
I/O
COMP1IN-
8
10
10
4
F2
I/O
COMP1IN+
9
11
11
5
F3
I/O
COMP1OUT
10
12
12
6
F4
I/O
COMP2IN-
13
13
7
F5
I/O
COMP2IN+
14
14
8
F6
I/O
COMP2OUT
15
15
9
F7
I/O
16
16
10
C0
I/O
39
43
37
C1
I/O
40
44
38
C2
I/O
1
1
39
C3
I/O
2
2
40
C4
I/O
21
15
C5
I/O
22
16
C6
I/O
23
17
C7
I/O
24
18
V
CC
6
8
8
2
GND
23
33
37
31
CKI
I
5
7
7
1
RESET
I
24
34
38
32
* G1 operation as WDOUT is controlled by ECON bit 2.
COP8SG
Family
www.national.com
5