cop888ek National Semiconductor Corporation, cop888ek Datasheet

no-image

cop888ek

Manufacturer Part Number
cop888ek
Description
8-bit Cmos Rom Based Microcontrollers With 8k Memory, Comparator, And Single-slope A/d Capability
Manufacturer
National Semiconductor Corporation
Datasheet
© 2000 National Semiconductor Corporation
COP888EK
8-Bit CMOS ROM Based Microcontrollers with 8k
Memory, Comparator, and Single-slope A/D Capability
General Description
The COP888EK ROM based microcontrollers are highly in-
tegrated COP8
advanced features including a Multi-Input Comparator and
Single-slope A/D capability. These single-chip CMOS de-
vices are suited for applications requiring a full featured, low
EMI controller with an analog comparator, current source,
and voltage reference. The COP87L88EK/RK Family de-
vices are pin and software compatible (different V
16k or 32k OTP (One Time Programmable) versions for pre-
production, and for use with a range of COP8 software and
hardware development tools.
Key Features
n Analog function block with
n Three 16-bit timers, each with two 16-bit registers
n 8 kbytes of on-chip ROM
n 256 bytes of on-chip RAM
Additional Peripheral Features
n Idle Timer
n Multi-Input Wake Up (MIWU) with optional interrupts (8)
n WATCHDOG and Clock Monitor logic
n MICROWIRE/PLUS serial I/O
I/O Features
n Software selectable I/O options (TRI-STATE
n High current outputs
n Schmitt trigger inputs on Port G and L
n Packages: 44 PLCC with 40 I/O pins, 40 DIP with 36 I/O
COP684EK
COP884EK
COP984EK
COP688EK
COP888EK
COP988EK
COP8
TRI-STATE
iceMASTER
Device
— Analog comparator with seven input multiplexor
— Constant current source and V
supporting:
— Processor Independent PWM mode
— External Event counter mode
— Input Capture mode
Push-Pull Output, Weak Pull-Up Input, High Impedance
Input)
pins, and 28 DIP/SO with 24 I/O pins
, MICROWIRE/PLUS
®
®
is a registered trademark of National Semiconductor Corporation.
is a registered trademark of MetaLink Corporation.
Memory (bytes) RAM (bytes) I/O Pins
Feature core devices with 8k memory and
8k ROM
8k ROM
8k ROM
8k ROM
8k ROM
8k ROM
, and WATCHDOG
are trademarks of National Semiconductor Corporation.
CC
256
256
256
256
256
256
/2 reference
DS012094
36/40
36/40
36/40
Output,
CC
24
24
24
range)
28 DIP/SOIC
28 DIP/SOIC
28 DIP/SOIC
40 DIP, 44 PLCC -55 to +125˚C 4.5V - 5.5V
40 DIP, 44 PLCC -40 to +85˚C
40 DIP, 44 PLCC 0 to +70˚C
Packages
Family features include an 8-bit memory mapped architec-
ture, 10 MHz CKI with 1µs instruction cycle, three multi-
function 16-bit timer/counters with PWM, MICROWIRE/
PLUS
multiplexor, an analog current source and V
two power saving HALT/IDLE modes, idle timer, MIWU, high
current outputs, software selectable I/O options, WATCH-
DOG
eration and 28/40/44 pin packages.
Devices included in this datasheet are:
CPU/Instruction Set Feature
n 1 µs instruction cycle time
n Twelve multi-source vectored interrupts servicing
n Versatile and easy to use instruction set
n 8-bit Stack Pointer (SP) — stack in RAM
n Two 8-bit Register Indirect Data Memory Pointers
Fully Static CMOS
n Single supply operation: 2.5V to 6.0V
n Temperature ranges: 0˚C to +70˚C, −40˚C to +85˚C, and
(B, X)
−55˚C to +125˚C
— External Interrupt with selectable edge
— Idle Timer T0
— Three Timers (Each with 2 interrupts)
— MICROWIRE/PLUS
— Multi-Input Wake Up
— Software Trap
— Default VIS (default interrupt)
timer and Clock Monitor, Low EMI 2.5V to 6.0V op-
serial I/O, one analog comparator with seven input
-55 to +125˚C 4.5V - 5.5V
-40 to +85˚C
0 to +70˚C
Temperature
2.5V - 4.0V, EKH=4.0V - 6.0V
2.5V - 4.0V, EKH=4.0V - 6.0V
Comments
January 2000
CC
www.national.com
reference,

Related parts for cop888ek

cop888ek Summary of contents

Page 1

... COP888EK 8-Bit CMOS ROM Based Microcontrollers with 8k Memory, Comparator, and Single-slope A/D Capability General Description The COP888EK ROM based microcontrollers are highly in- tegrated COP8 ™ Feature core devices with 8k memory and advanced features including a Multi-Input Comparator and Single-slope A/D capability. These single-chip CMOS de- ...

Page 2

Development Support n Emulation and OTP devices Block Diagram www.national.com n Real time emulation and full program debug offered by MetaLink Development System FIGURE 1. Block Diagram 2 DS012094-1 ...

Page 3

... COP988EK-XXX/V or COP988EKH-XXX/V See NS Plastic Chip Package Number V44A Order Number COP684EK-XXX/N, COP884EK-XXX/N, COP984EK-XXX/N or COP984EKH-XXX/N Order Number COP684EK-XXX/WM, COP884EK-XXX/WM, COP984EK-XXX/WM or COP984EKH-XXX/WM Dual-In-Line Package DS012094-2 Order Number COP688EK-XXX/N, COP888EK-XXX/N, COP988EK-XXX/N or COP988EKH-XXX/N See NS Molded Package Number N40A Dual-In-Line Package DS012094-4 Top View ...

Page 4

Connection Diagrams Pinouts for 28-, 40- and 44-Pin Packages Port Type L0 I/O MIWU L1 I/O MIWU L2 I/O MIWU L3 I/O MIWU L4 I/O MIWU L5 I/O MIWU L6 I/O MIWU L7 I/O MIWU G0 I/O INT G1 WDOUT ...

Page 5

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 98xEK: 0˚ 70˚C unless otherwise ...

Page 6

DC Electrical Characteristics 98xEK: 0˚ 70˚C unless otherwise specified A Parameter Input Capacitance Load Capacitance Electrical Characteristics 98xEK: 0˚ 70˚C unless otherwise specified A Parameter Instruction Cycle Time ( Crystal, Resonator, ...

Page 7

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 88xEK: −40˚C T +85˚C unless otherwise specified ...

Page 8

DC Electrical Characteristics 88xEK: −40˚C T +85˚C unless otherwise specified A Parameter Load Capacitance Electrical Characteristics 88xEK: −40˚C T +85˚C unless otherwise specified A Parameter Instruction Cycle Time ( Crystal, Resonator, R/C Oscillator Inputs t ...

Page 9

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 68xEK: −55˚C T +125˚C unless otherwise specified ...

Page 10

AC Electrical Characteristics 68xEK: −55˚C T +125˚C unless otherwise specified A Parameter Instruction Cycle Time ( Crystal, Resonator R/C Oscillator Inputs t SETUP t HOLD Output Propagation Delay (Note 23 PD1 PD0 SO, SK All ...

Page 11

Analog Function Block AC and DC Characteristics V = 5.0V, −40˚C T +85˚ Parameter Comparator Response Time Note 25: While performance characteristics are given reference and the constant current source is not guaranteed beyond ...

Page 12

Typical Performance Characteristics www.national.com (−55˚ +125˚C) (Continued) A DS012094-23 DS012094-25 DS012094-27 12 DS012094-24 DS012094-26 DS012094-28 ...

Page 13

Typical Performance Characteristics 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 ...

Page 14

Pin Descriptions (Continued) Note that the chip will be placed in the HALT mode by writing a “1” to bit 7 of the Port G Data Register. Similarly the chip will be placed in the IDLE mode by writing a ...

Page 15

Functional Description S is the 8-bit Data Segment Address Register used to extend the lower half of the address range (00 to 7F) into 256 data segments of 128 bytes each. All the CPU registers are memory mapped with the ...

Page 16

Reset The RESET input when pulled low initializes the microcon- troller. Initialization will occur whenever the RESET input is pulled low. Upon initialization, the data and configuration registers for ports L, G and C are cleared, resulting in these Ports ...

Page 17

Control Registers (Continued) MSEL Selects G5 and G4 as MICROWIRE/PLUS signals SK and SO respectively IEDG External interrupt edge polarity select (0 = Rising edge Falling edge) SL1 & SL0 Select the MICROWIRE/PLUS clock divide by (00 = ...

Page 18

Timers (Continued) Each timer block consists of a 16-bit timer, Tx, and two sup- porting 16-bit autoreload/capture registers, RxA and RxB. Each timer block has two pins associated with it, TxA and TxB. The pin TxA supports I/O required by ...

Page 19

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

Page 20

Timers (Continued) The timer mode control bits (TxC3, TxC2 and TxC1) are detailed below: Mode TxC3 TxC2 Power Save Modes The ...

Page 21

Power Save Modes (Continued) IDLE MODE The device is placed in the IDLE mode by writing a “1” to the IDLE flag (G6 data bit). In this mode, all activities, except the associated on-board oscillator circuitry, the WATCHDOG logic, the ...

Page 22

... HALT or IDLE modes. In the other case, the device will first execute the in- terrupt service routine and then revert to normal operation. (See HALT MODE for clock option wakeup information.) FIGURE 12. COP888EK Analog Function Block 22 DS012094-14 ...

Page 23

... A/D conversion channels. See Application Note 983, Simple, Cost Effective A/D COP888EK, for further information on this application. CMPSL REGISTER (ADDRESS X’00B7) CMPT2B CMPISEL2 CMPISEL1 CMPISEL0 CMPOE CSEN CMPEN CMPNEG Bit 7 The CMPSL register contains the following bits: CMPT2B Selects the timer T2B input to be driven di- rectly by the comparator output ...

Page 24

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 25

Interrupts (Continued) An interrupt service routine typically ends with an RETI in- struction. This instruction sets the GIE bit back to 1, pops the address stored on the stack, and restores that address to the program counter. Program execution then ...

Page 26

Interrupts (Continued) Arbitration Ranking (1) Highest (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) Lowest Note 28 variable which represents the VIS block. VIS and the vector table must be located in ...

Page 27

Interrupts (Continued) FIGURE 14. VIS Operation FIGURE 15. VIS Flowchart 27 DS012094-33 DS012094-34 www.national.com ...

Page 28

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 29

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 30

WATCHDOG The device contains 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 31

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

Page 32

MICROWIRE/PLUS (Continued) Key Data Match Don’t Care Mismatch Don’t Care Don’t Care Don’t Care TABLE 8. MICROWIRE/PLUS Master Mode Clock Select SL1 SL0 Where t ...

Page 33

MICROWIRE/PLUS (Continued) FIGURE 17. MICROWIRE/PLUS Application 33 DS012094-17 www.national.com ...

Page 34

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 35

Addressing Modes There are ten addressing modes, six for operand addressing and four for transfer of control. OPERAND ADDRESSING MODES Register Indirect This is the “normal” addressing mode. The operand is the data memory addressed by the B pointer or ...

Page 36

Instruction Set (Continued) INSTRUCTION SET ADD A,Meml ADD ADC A,Meml ADD with Carry SUBC A,Meml Subtract with Carry AND A,Meml Logical AND ANDSZ A,Imm Logical AND Immed., Skip if Zero OR A,Meml Logical OR XOR A,Meml Logical EXclusive OR IFEQ ...

Page 37

Instruction Set (Continued) JSRL Addr. Jump SubRoutine Long JSR Addr Jump SubRoutine JID Jump InDirect RET RETurn from subroutine RETSK RETurn and SKip RETI RETurn from Interrupt INTR Generate an Interrupt NOP No OPeration [SP] PL, [SP−1] PU,SP− ...

Page 38

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, ...

Page 39

Bits 39 www.national.com ...

Page 40

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 41

Development Support (Continued) • EWCOP8-M: Full featured ANSI C-Compiler and Embed- ded Workbench for Windows from IAR (no code limit). A fully integrated Win32 IDE, ANSI C-Compiler, macro as- sembler, editor, linker, librarian, C-Spy high-level simulator/debugger, PLUS MetaLink debugger/hardware interface ...

Page 42

... Development Support TOOLS ORDERING NUMBERS FOR THE COP888EK FAMILY DEVICES Vendor Tools National COP8-NSEVAL COP8-NSEVAL COP8-NSASM COP8-NSASM COP8-MLSIM COP8-MLSIM COP8-NSDEV COP8-NSDEV COP8-EPU Not available for this device COP8-DM Contact MetaLink Development COP87L84EK Devices COP87L88EK IM-COP8 Contact MetaLink MetaLink COP8-EPU Not available for this device ...

Page 43

Development Support (Continued) WHERE TO GET TOOLS Tools are ordered directly from the following vendors. Please go to the vendor’s web site for current listings of distributors. Vendor Home Office Aisys U.S.A.: Santa Clara, CA 1-408-327-8820 fax: 1-408-327-8830 Byte Craft ...

Page 44

Physical Dimensions Order Number COP684EK-XXX/WM, COP884EK-XXX/WM, Order Number COP684EK-XXX/N, COP884EK-XXX/N, www.national.com inches (millimeters) unless otherwise noted Molded SO Wide Body Package (WM) COP984EK-XXX/WM or COP984EKH-XXX/WM NS Package Number M28B Molded Dual-In-Line Package (N) COP984EK-XXX/N or COP984EKH-XXX/N NS Package Number N28B ...

Page 45

... Physical Dimensions inches (millimeters) unless otherwise noted (Continued) Order Number COP688EK-XXX/N, COP888EK-XXX/N, Order Number COP688EK-XXX/V, COP888EK-XXX/V, Molded Dual-In-Line Package (N) COP988EK-XXX/N or COP988EKH-XXX/N NS Package Number N40A Plastic Leaded Chip Carrier (V) COP988EK-XXX/V or COP988EKH-XXX/V NS Package Number V44A 45 www.national.com ...

Page 46

... 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