COP8ACC5 National Semiconductor, COP8ACC5 Datasheet

no-image

COP8ACC5

Manufacturer Part Number
COP8ACC5
Description
8-Bit CMOS ROM Based Microcontrollers with 4k Memory and High Resolution A/D
Manufacturer
National Semiconductor
Datasheet
© 1999 National Semiconductor Corporation
COP8ACC5
8-Bit CMOS ROM Based Microcontrollers with 4k
Memory and High Resolution A/D
General Description
The COP8ACC5 ROM based microcontrollers are highly in-
tegrated COP8
advanced features including a High-Resolution A/D. These
single-chip CMOS devices are suited for applications requir-
ing a full featured, low EMI controller with an A/D (only one
external capacitor required). COP8ACC7 devices are pin
and software compatible (different V
EPROM versions for pre-production. Erasable windowed
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
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
COP8ACC5xxx9
COP8ACC5xxx8
clock-polarity
Pull-Up Input, High Impedance Input)
— Analog comparator with seven input mux
— Constant Current Source and V
— 16-bit capture timer (upcounter) clocked from CKI
— Processor Independent PWM mode
— External Event counter mode
— Input Capture mode
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
Feature core devices with 4k memory and
Memory (bytes)
serial I/O with programmable shift
4k ROM
4k ROM
, and WATCHDOG
CC/2
CC
DS012865
Reference
range) 16k OTP
are trademarks of National Semiconductor Corporation.
RAM (bytes)
128
128
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
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
I/O Pins
(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)
15/23
15/23
CC
20 SOIC, 28 DIP/SOIC
20 SOIC, 28 DIP/SOIC
/2 reference, one multi-function 16-bit timer/
Packages
timer and Clock Moni-
Temperature
0 to +70˚C
-40 to +85˚C
www.national.com
May 1999

Related parts for COP8ACC5

COP8ACC5 Summary of contents

Page 1

... COP8ACC5 8-Bit CMOS ROM Based Microcontrollers with 4k Memory and High Resolution A/D General Description The COP8ACC5 ROM based microcontrollers are highly in- tegrated COP8 Feature core devices with 4k memory and ™ advanced features including a High-Resolution A/D. These single-chip CMOS devices are suited for applications requir- ing a full featured, low EMI controller with an A/D (only one external capacitor required) ...

Page 2

... DS012865-2 Top View Order Number COP8ACC528N9 or COP8ACC528N8 See NS Molded Package Number N28A Order Number COP8ACC528M9 or COP8ACC528M8 See NS Molded Package Number M28B www.national.com FIGURE 1. Block Diagram Top View Order Number COP8ACC520M9 or COP8ACC520N8 See NS Molded Package Number M20B FIGURE 2. Connection Diagrams 2 DS012865-1 DS012865-3 ...

Page 3

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

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 A Parameter Operating Voltage Peak-to-Peak Power Supply Ripple (Note 2) ...

Page 5

DC Electrical Characteristics 0˚C T +70˚C unless otherwise specified A Parameter Input Capacitance (Note 6) Load Capacitance on D2 (Note 6) AC Electrical Characteristics 0˚C T +70˚C unless otherwise specified 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 A Parameter Operating Voltage Power Supply Ripple (Note 10) ...

Page 7

DC Electrical Characteristics −40˚C T +85˚C unless otherwise specified A Parameter Input Capacitance (Note 14) Load Capacitance on D2 (Note 14) AC Electrical Characteristics −40˚C T +85˚C unless otherwise specified 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 = +125˚C) (−55˚ DS012865-40 DS012865-42 DS012865-44 9 DS012865-41 DS012865-43 DS012865-44 www.national.com ...

Page 10

Typical Performance Characteristics www.national.com = +125˚C) (Continued) (−55˚ DS012865-46 DS012865-48 DS012865-50 10 DS012865-47 DS012865-49 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

... WARNING: When the device is held in reset for a long time it will con- sume high current (typically about 7 mA). This is not true for the equivalent ROM device (COP8ACC5). Oscillator Circuits The chip can be driven by a clock input on the CKI input pin which can be between DC and 10 MHz. The CKO output clock is on pin G7 (crystal configuration) ...

Page 13

Oscillator Circuits (Continued) DS012865-7 DS012865-8 FIGURE 7. Crystal and R/C Oscillator Diagrams CRYSTAL OSCILLATOR CKI and CKO can be connected to make a closed loop crys- tal (or resonator) controlled oscillator. Table 1 shows the component values required for various ...

Page 14

Timers The device contains a very versatile set of timers (T0 and T1). All timers and associated autoreload/capture registers power up containing random data. TIMER T0 (IDLE TIMER) The device supports applications that require maintaining real time and low power ...

Page 15

Timers (Continued) (ON time and OFF time). Once begun, the timer block will continuously generate the PWM signal completely indepen- dent of the microcontroller. The user software services the timer block only when the PWM parameters require updat- ing. In ...

Page 16

Timers (Continued) FIGURE 11. Timer in Input Capture Mode Figure 11 shows a block diagram of the timer in Input Cap- ture mode. The timer mode control bits (T1C3, T1C2 and T1C1) are detailed below: Mode T1C3 T1C2 1 0 ...

Page 17

Timers (Continued) ters with any desired value. This mode can be used in con- junction with the timer’s overflow to implement for example a programmable delay counter. “CAPTURE MODE” is only active when the CAPRUN bit is set, i.e. any ...

Page 18

Power Save Modes (Continued) The IDLE timer window is selectable from one of five values, 4k, 8k, 16k, 32k or 64k instruction cycles. Selection of this value is made through the ITMR register. The IDLE mode uses the on-chip IDLE ...

Page 19

Multi-Input Wakeup (Continued) FIGURE 12. Multi-Input Wake Up Logic An example may serve to clarify this procedure. Suppose we wish to change the edge select from positive (low going high) to negative (high going low) for L Port bit 5, ...

Page 20

Analog Function Block This device contains an analog function block with the intent to provide a function which allows for single slope, low cost, A/D conversion channels. CMPSL REGISTER (ADDRESS X’00B7) CMPT2B CMPISEL2 CMPISEL1 CMPISEL0 CMPOE ...

Page 21

Analog Function Block (Continued) TABLE 4. Comparator Input Selection Control Bit CMPISEL2 CMPISEL1 Reset The state of the Analog Block immediately after RESET is ...

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) DS012865-29 FIGURE 15. VIS Operation DS012865-30 FIGURE 16. VIS Flowchart 25 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

... RPND instruction. MICROWIRE/PLUS MICROWIRE/PLUS is a serial synchronous communications interface. The MICROWIRE/PLUS capability enables the de- vice to interface with any of National Semiconductor’s MICROWIRE peripherals (i.e. A/D converters, display driv- ers, E2PROMs etc.) and with other microcontrollers which support the MICROWIRE interface. It consists of an 8-bit se- rial shift register (SIO) with serial data input (SI), serial data output (SO) and serial shift clock (SK) ...

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 DS012865-17 31 www.national.com ...

Page 32

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

Page 33

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

Page 34

Instruction Set (Continued) SBIT # ,Mem Set BIT RBIT # ,Mem Reset BIT # ,Mem IFBIT 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

Mask Options The mask programmable options are shown below. The op- tions are programmed at the same time as the ROM pattern submission. OPTION 1: CLOCK CONFIGURATION = 1 Crystal Oscillator (CKI/10) G7 (CKO) is clock generator output to crystal/resonator ...

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 Order Number National ...

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 inches (millimeters) unless otherwise noted Order Number COP8ACC528N9 or COP8ACC528N8 Order Number COP8ACC528M9 or COP8ACC528M8 www.national.com NS Molded Package Number N28B NS Molded Package Number M28B 40 ...

Page 41

... Physical Dimensions inches (millimeters) unless otherwise noted (Continued) Order Number COP8ACC520M9 or COP8ACC520M8 LIFE SUPPORT POLICY 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 ...

Related keywords