cop8acc National Semiconductor Corporation, cop8acc Datasheet

no-image

cop8acc

Manufacturer Part Number
cop8acc
Description
8-bit Cmos Rom Based And Otp Microcontrollers With 4k Or 16k Memory And High Resolution A/d
Manufacturer
National Semiconductor Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
cop8acc720M8-XE
Manufacturer:
NS
Quantity:
6 218
Part Number:
cop8acc720M8-XE
Manufacturer:
NS/国半
Quantity:
20 000
Part Number:
cop8acc728M8-XE
Manufacturer:
NS
Quantity:
85
Part Number:
cop8acc728M9-RE
Manufacturer:
NS
Quantity:
1
Part Number:
cop8acc728M9-XE
Manufacturer:
NS
Quantity:
104
Part Number:
cop8acc728N9-RE
Manufacturer:
NS/国半
Quantity:
20 000
Part Number:
cop8acc728N9-XE
Manufacturer:
NS/国半
Quantity:
20 000
© 2001 National Semiconductor Corporation
COP8ACC Family
8-Bit CMOS ROM Based and OTP Microcontrollers with
4k or 16k Memory and High Resolution A/D
General Description
The COP8ACC Family ROM based microcontrollers are
highly integrated COP8
memory and advanced features including a High-Resolution
A/D. These single-chip CMOS devices are suited for appli-
cations requiring a full featured, low EMI controller with an
A/D (only one external capacitor required). COP8ACC7 de-
vices are pin and software compatible (different V
16k OTP EPROM versions for pre-production. Erasable win-
dowed versions are available for use with a range of COP8
software and hardware development tools.
Key Features
n Analog Function Block with 12-bit A/D including
n Quiet design (reduced radiated emissions)
n 4096 bytes on-board ROM or 16,384 OTP EPROM with
n 128 bytes on-board RAM
Additional Peripheral Features
n Idle Timer
n One 16-bit timer with two 16-bit registers supporting:
n Multi-Input Wake-Up (MIWU) with optional interrupts
n WATCHDOG and clock monitor logic
n MICROWIRE/PLUS
I/O Features
n Software selectable I/O options (Push-Pull Output, Weak
n High current outputs
n Schmitt Trigger inputs on ports G and L
n Packages: 28 DIP/SO with 23 I/O pins,
COP8
TRI-STATE
iceMASTER
— Analog comparator with seven input mux
— Constant Current Source and V
— 16-bit capture timer (upcounter) clocked from CKI
security feature
— Processor Independent PWM mode
— External Event counter mode
— Input Capture mode
clock-polarity
Pull-Up Input, High Impedance Input)
COP8ACC5xxx9
COP8ACC5xxx8
COP8ACC7xxx9
COP8ACC7xxx8
20 SO with 15 I/O pins
with auto reset on timer startup
, MICROWIRE
®
Device
®
is a registered trademark of National Semiconductor Corporation.
is a registered trademark of MetaLink Corporation.
, MICROWIRE/PLUS
serial I/O with programmable shift
16k OTP EPROM
16k OTP EPROM
Memory (bytes)
Feature core devices with 4k
4k ROM
4k ROM
, and WATCHDOG
CC/2
DS012865
Reference
are trademarks of National Semiconductor Corporation.
RAM (bytes)
CC
128
128
128
128
range)
Family features include an 8-bit memory mapped architec-
ture, 4 MHz CKI with 2.5µs instruction cycle, 6 channel A/D
with 12-bit resolution, analog capture timer, analog current
source and V
counter, MICROWIRE/PLUS serial I/O, two power saving
HALT/IDLE modes, MIWU, high current outputs, software
selectable I/O options, WATCHDOG
tor, Low EMI 2.5V to 5.5V operation and 20/28 pin packages.
Devices included in this datasheet are:
CPU/Instruction Set Features
n 2.5 µs instruction cycle time
n Eight multi-source vectored interrupt servicing
n 8-bit Stack Pointer (SP) — stack in RAM
n Two 8-bit Registers Indirect Data Memory Pointers
Fully Static CMOS
n Two power saving modes: HALT and IDLE
n Single supply operation: 2.5V to 5.5V for COP8ACC5
n Single supply operation: 2.7V to 5.5V for COP8ACC7
n Temperature ranges: 0˚C to +70˚C, −40˚C to +85˚C
Development System
n Emulation and OTP devices
n Real time emulation and full program debug offered by
Applications
n Battery Chargers
n Appliances
n Data Acquisition systems
(B and X)
MetaLink development system
— External Interrupt
— Idle Timer T0
— Timer T1 associated Interrupts
— MICROWIRE/PLUS
— Multi-Input Wake Up
— Software Trap
— Default VIS
— A/D (Capture Timer)
I/O Pins
15/23
15/23
15/23
15/23
CC
/2 reference, one multi-function 16-bit timer/
20 SOIC, 28 DIP/SOIC
20 SOIC, 28 DIP/SOIC
20 SOIC, 28 DIP/SOIC
20 SOIC, 28 DIP/SOIC
Packages
timer and Clock Moni-
Temperature
0 to +70˚C
-40 to +85˚C
0 to +70˚C
-40 to +85˚C
www.national.com
July 2000

Related parts for cop8acc

cop8acc Summary of contents

Page 1

... Two 8-bit Registers Indirect Data Memory Pointers (B and X) Fully Static CMOS n Two power saving modes: HALT and IDLE n Single supply operation: 2.5V to 5.5V for COP8ACC5 n Single supply operation: 2.7V to 5.5V for COP8ACC7 n Temperature ranges: 0˚C to +70˚C, −40˚C to +85˚C Development System n Emulation and OTP devices ...

Page 2

... COP8ACC728N8-XE Order Number COP8ACC728M9-XE or COP8ACC728M8-XE See NS Molded Package Number M28B www.national.com FIGURE 1. Block Diagram Note: -X Crystal Oscillator Note: -E Halt Enable DS012865-2 Order Number COP8ACC520M9 or COP8ACC520N8 Order Number COP8ACC720M9-XE or See NS Molded Package Number M20B FIGURE 2. Connection Diagrams 2 DS012865-1 DS012865-3 Top View COP8ACC720N8-XE ...

Page 3

Connection Diagrams (Continued) Pinouts for 28-Pin, 20-Pin Packages Port Type L4 I/O L5 I/O L6 I/O L7 I/O G0 I/O G1 WDOUT G2 I/O G3 I/O G4 I I/CKO ...

Page 4

Absolute Maximum Ratings If Military/Aerospace specified devices are required, please contact the National Semiconductor Sales Office/ Distributors for availability and specifications. Supply Voltage ( Voltage at Any Pin DC Electrical Characteristics 0˚C T +70˚C unless otherwise specified [OTP ...

Page 5

DC Electrical Characteristics 0˚C T +70˚C unless otherwise specified [OTP Value] A Parameter Input Capacitance Load Capacitance Electrical Characteristics 0˚C T +70˚C unless otherwise specified [OTP Value] A Parameter Instruction Cycle Time ( Crystal, Resonator ...

Page 6

Absolute Maximum Ratings If Military/Aerospace specified devices are required, please contact the National Semiconductor Sales Office/ Distributors for availability and specifications. Supply Voltage ( Voltage at Any Pin DC Electrical Characteristics −40˚C T +85˚C unless otherwise specified [OTP ...

Page 7

DC Electrical Characteristics −40˚C T +85˚C unless otherwise specified [OTP Value] A Parameter Input Capacitance Load Capacitance Electrical Characteristics −40˚C T +85˚C unless otherwise specified [OTP Value] A Parameter Instruction Cycle Time ( Crystal, Resonator ...

Page 8

Comparator AC and DC Characteristics V = 5V, −40˚C T +85˚ Parameter Input Offset Voltage Input Common Mode Voltage Range (Note 17) Voltage Gain V /2 Reference CC DC Supply Current For Comparator (when enabled) DC Supply Current ...

Page 9

... Typical Performance Characteristics Port D Source Current (COP8ACC5 Only) Ports C/G/L Source Current Ports C/G/L Weak Pull-Up Source Current (−55˚ +125˚C) A Port D Sink Current (COP8ACC5 Only) DS012865-40 Ports C/G/L Sink Current DS012865-42 Dynamic DS012865-44 9 DS012865-41 DS012865-43 DS012865-45 www.national.com ...

Page 10

... Idle — (COP8ACC5 Only Current Source Regulation at −55˚C Current Source Regulation www.national.com (−55˚ +125˚C) (Continued) A Halt — DS012865-46 Current Source Regulation at 125˚C DS012865-48 = 5.0V V Variation from V REF DS012865-50 10 (COP8ACC5 Only) CC DS012865-47 DS012865- DS012865-51 ...

Page 11

Pin Descriptions V and GND are the power supply pins. All V CC pins must be connected. CKI is the clock input. This can come from an R/C generated oscillator crystal oscillator (in conjunction with CKO). See Oscillator ...

Page 12

... JID instruction, and interrupt vectors for the VIS instruction). The program memory is addressed by the 15-bit program counter (PC). All interrupts in the devices vector to program memory location 0FF Hex. The COP8ACC7 device can be configured to inhibit external reads of the program memory. This is done by programming the Security Byte. SECURITY FEATURE The program memory array has an associate Security Byte that is located outside of the program address range ...

Page 13

Oscillator Circuits (Continued) > POWER SUPPLY RISE TIME FIGURE 6. Recommended Reset Circuit Figure 7 shows the Crystal and R/C Oscillator diagrams. DS012865-54 DS012865-55 FIGURE 7. Crystal and R/C Oscillator Diagrams CRYSTAL OSCILLATOR CKI and CKO can ...

Page 14

Control Registers (Continued) LPEN L Port Interrupt Enable (Multi-Input Wakeup/ Interrupt) T0PND Timer T0 Interrupt pending T0EN Timer T0 Interrupt Enable (Bit 12 toggle) µWPND MICROWIRE/PLUS interrupt pending µWEN Enable MICROWIRE/PLUS interrupt T1PNDB Timer T1 Interrupt Pending Flag for T1B ...

Page 15

Timers (Continued) TIMER T1 The devicea have a powerful timer/counter block. The timer consists of a 16-bit timer, T1, and two supporting 16-bit autoreload/capture registers, R1A and R1B. The timer block has two pins associated with it, T1A and T1B. ...

Page 16

Timers (Continued) Mode 3. Input Capture Mode The devices can precisely measure external frequencies or time external events by placing the timer block, T1, in the input capture mode. In this mode, the timer T1 is constantly running at the ...

Page 17

Timers (Continued) Mode T1C3 T1C2 HIGH SPEED CAPTURE TIMER The devices provide a 16-bit high-speed capture timer. The timer consists of a 16-bit up-counter that is clocked with the device clock ...

Page 18

Power Save Modes (Continued) However, the clock monitor circuitry, if enabled, remains active and will cause the WATCHDOG output pin (WDOUT low. If the HALT mode is used and the user does not want to activate the WDOUT ...

Page 19

Multi-Input Wakeup (Continued) ister WKEN is an 8-bit read/write register, which contains a control bit for every L port bit. Setting a particular WKEN bit enables a Wakeup from the associated L port pin. The user can select whether the ...

Page 20

Multi-Input Wakeup (Continued) A control flag, LPEN, functions as a global interrupt enable for Port L interrupts. Setting the LPEN flag will enable inter- rupts and vice versa. A separate global pending flag is not needed since the register WKPND ...

Page 21

Analog Function Block Control Bit CMPISEL2 CMPISEL1 Reset The state of the Analog Block immediately after RESET is as follows: 1. The CMPSL Register ...

Page 22

Interrupts (Continued) MASKABLE INTERRUPTS All interrupts other than the Software Trap are maskable. Each maskable interrupt has an associated enable bit and pending flag bit. The pending bit is set to 1 when the interrupt condition occurs. The state of ...

Page 23

Interrupts (Continued) and enable bits to determine the source(s) of the interrupt. If more than one interrupt is active, the user’s program must decide which interrupt to service. Within a specific interrupt service routine, the associated pending bit should be ...

Page 24

Interrupts (Continued) ARBITRATION RANKING (1) Highest Software (2) Reserved (3) External (4) Timer T0 (5) Timer T1 (6) Timer T1 (7) MICROWIRE/PLUS (8) Reserved (9) Reserved (10) Reserved (11) High Speed Capture Timer (12) Reserved (13) Reserved (14) Reserved (15) ...

Page 25

Interrupts (Continued) FIGURE 15. VIS Operation FIGURE 16. VIS Flowchart 25 DS012865-65 DS012865-66 www.national.com ...

Page 26

Interrupts (Continued) Programming Example: External Interrupt PSW =00EF CNTRL =00EE RBIT 0,PORTGC RBIT 0,PORTGD SBIT IEDG, CNTRL SBIT EXEN, PSW SBIT GIE, PSW WAIT: JP WAIT . . . .=0FF VIS . . . .=01FA .ADDRW SERVICE . . INT_EXIT: ...

Page 27

Interrupts (Continued) NON-MASKABLE INTERRUPT Pending Flag There is a pending flag bit associated with the non-maskable interrupt, called STPND. This pending flag is not memory- mapped and cannot be accessed directly by the software. The pending flag is reset to ...

Page 28

WATCHDOG The devices contain a WATCHDOG and clock monitor. The WATCHDOG is designed to detect the user program getting stuck in infinite loops resulting in loss of program control or “runaway” programs. The Clock Monitor is used to detect the ...

Page 29

WATCHDOG Operation • The initial WATCHDOG service must match the key data value in the WATCHDOG Service register WDSVR in order to avoid a WATCHDOG error. • Subsequent WATCHDOG services must match all three data fields in WDSVR in order ...

Page 30

MICROWIRE/PLUS (Continued) TABLE 9. MICROWIRE/PLUS Master Mode Clock Select SL1 SL0 Where t is the instruction cycle clock C MICROWIRE/PLUS OPERATION Setting the BUSY bit in the PSW register causes the MICROWIRE/PLUS to start ...

Page 31

MICROWIRE/PLUS (Continued) FIGURE 18. MICROWIRE/PLUS Application 31 DS012865-64 www.national.com ...

Page 32

Memory Map All RAM, ports and registers (except A and PC) are mapped into data memory address space. Address S/ADD REG 0000 to 006F On-Chip RAM bytes (112 bytes) 0070 to 007F Unused RAM Address Space (Reads As All Ones) ...

Page 33

Addressing Modes (Continued) Immediate The instruction contains an 8-bit immediate field as the operand. Short Immediate This addressing mode is used with the Load B Immediate instruction. The instruction contains a 4-bit immediate field as the operand. Indirect This addressing ...

Page 34

Instruction Set (Continued) # ,Mem SBIT Set BIT # ,Mem RBIT Reset BIT IFBIT # ,Mem IF BIT RPND Reset PeNDing Flag X A,Mem EXchange A with Memory X A,[X] EXchange A with Memory [X] LD A,Meml LoaD A with ...

Page 35

Instruction Set (Continued) Instruction Execution Time Most instructions are single byte (with immediate addressing mode instructions taking two bytes). Most single byte instructions take one cycle time to execute. Skipped instructions require x number of cycles to be skipped, where ...

Page 36

Instruction Set (Continued) www.national.com NIBBLE LOWER 36 ...

Page 37

... Includes COP8-NSDEV, Drive- way COP8 Demo, MetaLink Debugger, I/O cables and power supply. • COP8–EVAL-ICUxx: Very Low cost evaluation and de- sign test board for COP8ACC and COP8SGx Families, from ICU. Real-time environment with add-on A/D, D/A, and EEPROM. Includes software routines and reference designs. ...

Page 38

... COP8-MLSIM: Free Instruction Level Simulator tool for Windows. For testing and debugging software instruc- tions only (No I/O or interrupt support). TOOLS ORDERING NUMBERS FOR THE COP8ACC5 FAMILY DEVICES Vendor Tools National COP8-NSEVAL COP8-NSEVAL ...

Page 39

Development Tools Support Byte COP8C COP8C Craft Aisys DriveWay COP8 DriveWay COP8 OTP Programmers Contact vendors < Cost: Free $100 $100 - $300 $300 - $1k $1k - $3k $3k ...

Page 40

... Physical Dimensions www.national.com inches (millimeters) unless otherwise noted Order Number COP8ACC528N9 or COP8ACC528N8 NS Molded Package Number N28A Order Number COP8ACC528M9 or COP8ACC528M8 NS Molded Package Number M28B 40 ...

Page 41

... Physical Dimensions inches (millimeters) unless otherwise noted (Continued) Order Number COP8ACC520M9 or COP8ACC520M8 Order Number COP8ACC728N9-XE or COP8ACC728N8-XE NS Molded Package Number M20B NS Molded Package Number N28A 41 www.national.com ...

Page 42

... Physical Dimensions Order Number COP8ACC728M9-XE or COP8ACC728M8-XE Order Number COP8ACC720M9-XE or COP8ACC720M8-XE www.national.com inches (millimeters) unless otherwise noted (Continued) NS Molded Package Number M28B NS Molded Package Number M20B 42 ...

Page 43

... NATIONAL’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL COUNSEL OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein: 1. Life support devices or systems are devices or systems which, (a) are intended for surgical implant ...

Related keywords