cop888ek National Semiconductor Corporation, cop888ek Datasheet
cop888ek
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 ...