COP8SA National Semiconductor, COP8SA Datasheet
COP8SA
Available stocks
Related parts for COP8SA
COP8SA Summary of contents
Page 1
... Microcontroller with Memory, Power On Reset, and Very Small Packaging General Description Note: COP8SAx devices are instruction set and pin com- patible supersets of the COP800 Family devices, and are replacements for these in new designs when possible. The COPSAx Rom based and OTP microcontrollers are highly integrated COP8 ™ ...
Page 2
... Two power saving modes: HALT and IDLE Temperature Ranges 0˚C to +70˚C, −40˚C to +85˚C, and −40˚C to +125˚C Development Support n Windowed packages for DIP and PLCC n Real time emulation and full program debug offered by MetaLink Development System FIGURE 1. COP8SAx Block Diagram 2 < 4 µA) DS012838-1 ...
Page 3
... EMI transmissions when designs have incorporated its patented EMI reducing cir- cuitry. 1.2 ARCHITECTURE The COP8SAx family is based on a modified Harvard archi- tecture, 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 ...
Page 4
Connection Diagrams DS012838-2 Top View DS012838-5 Top View www.national.com DS012838-3 Top View DS012838-39 Top View Top View FIGURE 2. Connection Diagrams 4 DS012838-4 Top View DS012838-6 ...
Page 5
... COP8SAC728M9 COP8SAB720N9 20N COP8SAC720N9 COP8SAB728N9 28N COP8SAC728N9 COP8SAC740N9 COP8SAC744V9 COP8SAB720M8 20M COP8SAC720M8 COP8SAB728M8 28M COP8SAC728M8 COP8SAB720N8 20N COP8SAC720N8 COP8SAB728N8 28N COP8SAC728N8 COP8SAC740N8 COP8SAC744V8 COP8SAB7SLB8 SLB COP8SAC7SLB8 COP8SAC720M7 COP8SAC728M7 COP8SAC720N7 COP8SAC728N7 COP8SAC740N7 COP8SAC744V7 5 DS012838-8 4k EPROM Windowed Device Package Order Number Package 20M ...
Page 6
... Electrical Characteristics 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 Power Supply Rise Time from 0.0V ...
Page 7
DC Electrical Characteristics 0˚C T +70˚C unless otherwise specified. A Parameter Output Current Levels D Outputs Source Sink L Port Source (Weak Pull-Up) Source (Push-Pull Mode) Sink (L0–L3, Push-Pull Mode) Sink (L4–L7, Push-Pull Mode) All Others Source (Weak Pull-Up Mode) ...
Page 8
AC Electrical Characteristics 0˚C T +70˚C unless otherwise specified. A Parameter Instruction Cycle Time ( Crystal/Resonator, External Internal R/C Oscillator R/C Oscillator Frequency Variation (Note 8) External CKI Clock Duty Cycle (Note 8) Rise Time (Note 8) Fall ...
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 −0. ESD Protection Level (Human Body Model) DC Electrical Characteristics −40˚C T +85˚C unless otherwise specified. ...
Page 10
DC Electrical Characteristics −40˚C T +85˚C unless otherwise specified. A Parameter Output Current Levels D Outputs Source Sink L Port Source (Weak Pull-Up) Source (Push-Pull Mode) Sink (L0–L3, Push-Pull Mode) Sink (L4–L7, Push-Pull Mode) All Others Source (Weak Pull-Up Mode) ...
Page 11
AC Electrical Characteristics −40˚C T +85˚C unless otherwise specified. A Parameter Inputs t SETUP t HOLD Output Propagation Delay (Note 16 PD1 PD0 SO, SK All Others MICROWIRE Setup Time (t ) (Note 16) UWS MICROWIRE Hold ...
Page 12
... 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 ESD Protection Level (Human Body Model) DC Electrical Characteristics −40˚C T +125˚C unless otherwise specified. ...
Page 13
DC Electrical Characteristics −40˚C T +125˚C unless otherwise specified. A Parameter Allowable Sink Current per Pin (Note 17) D Outputs and All Others Maximum Input Current without Latchup (Note 15) RAM Retention Voltage Rise Time ...
Page 14
... Port 8-bit I/O port. The 40-pin device does not have a full complement of Port C pins. The unavailable pins are not terminated. A read operation on these unterminated pins will return unpredictable values. Only the COP8SAC7 device contains Port C. The 20/28 pin devices do not offer Port C. On these devices, the associated Port C Data and Configu- ration registers should not be used ...
Page 15
Pin Descriptions (Continued) FIGURE 5. I/O Port Configurations FIGURE 6. I/O Port Configurations — Output Mode FIGURE 7. I/O Port Configurations — Input Mode Port 8-bit output port that is preset high when RESET goes low. ...
Page 16
... Example: The following sets a value in the ECON register and User Identification for a COP8SAC728M7. The ECON Bit 1 Bit 0 bit values shown select options: Power-on enabled, Security Reserved HALT disabled, Crystal oscillator with on-chip bias disabled, WATCHDOG enabled and HALT mode enabled ...
Page 17
... V 2.0V. Note: While the POR feature of the COP8SAx was never intended to function as a brownout detector, there are certain constraints of this block that the system designer must address to properly recover from a brownout condition ...
Page 18
Functional Description The contents of data registers and RAM are unknown follow- ing the on-chip reset. FIGURE 10. Reset Timing (Power-On Reset Enabled) with V Tied to RESET CC DS012838-16 FIGURE 11. Reset Circuit Using Power-On Reset 6.8 OSCILLATOR ...
Page 19
Functional Description With On-Chip Bias Resistor DS012838-17 DS012838-20 For operation at lower than maximum R/C oscillator frequency. (Continued) Without On-Chip Bias Resistor FIGURE 12. Crystal Oscillator DS012838-19 FIGURE 13. External Oscillator For operation at maximum R/C oscillator frequency. FIGURE ...
Page 20
Functional Description 6.9 CONTROL REGISTERS CNTRL Register (Address X'00EE) T1C3 T1C2 T1C1 T1C0 MSEL IEDG Bit 7 The Timer1 (T1) and MICROWIRE/PLUS control register contains the following bits: T1C3 Timer T1 mode control bit T1C2 Timer T1 mode control ...
Page 21
Timers (Continued) the PMW outputs are useful in controlling motors, triacs, the intensity of displays, and in providing inputs for data acquisi- tion and sine wave generators. In this mode, the timer T1 counts down at a fixed rate ...
Page 22
Timers (Continued) 7.2.3 Mode 3. Input Capture Mode The device can precisely measure external frequencies or time external events by placing the timer block, T1, in the in- put capture mode. In this mode, the reload registers serve as ...
Page 23
Timers (Continued) 7.3 TIMER CONTROL FLAGS The control bits and their functions are summarized below. T1C3 Timer mode control T1C2 Timer mode control T1C1 Timer mode control T1C0 Timer Start/Stop control in Modes 1 and 2 (Pro- cessor Independent ...
Page 24
... The COP8SAx devices offer system designers a variety of low-power consumption features that enable them to meet the demanding requirements of today’s increasing range of low-power applications. These features include low voltage operation, low current drain, and power saving features such as HALT, IDLE, and Multi-Input wakeup (MIWU) ...
Page 25
Power Save Modes (Continued) 8.2 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 and the ...
Page 26
Power Save Modes 8.3 MULTI-INPUT WAKEUP The Multi-Input Wakeup feature is used to return (wakeup) the device from either the HALT or IDLE modes. Alternately Multi-Input Wakeup/Interrupt feature may also be used to generate edge selectable ...
Page 27
Interrupts 9.1 INTRODUCTION The device supports eight vectored interrupts. Interrupt sources include Timer 1, Timer T0, Port L Wakeup, Software Trap, MICROWIRE/PLUS, and External Input. All interrupts force a branch to location 00FF Hex in program memory. The VIS ...
Page 28
Interrupts (Continued) 9.2 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 ...
Page 29
Interrupts (Continued) ample, if the Software Trap routine is located at 0310 Hex, then the vector location 0yFE and -0yFF should contain the data 03 and 10 Hex, respectively. When a Software Trap in- terrupt occurs and the VIS ...
Page 30
Interrupts (Continued) 9.3.1 VIS Execution When the VIS instruction is executed it activates the arbitra- tion logic. The arbitration logic generates an even number between E0 and FE (E0, E2, E4, E6 etc...) depending on which active interrupt has ...
Page 31
Interrupts (Continued) DS012838-30 FIGURE 23. VIS Flowchart 31 www.national.com ...
Page 32
Interrupts (Continued) Programming Example: External Interrupt = 00EF PSW = 00EE CNTRL RBIT 0,PORTGC RBIT 0,PORTGD SBIT IEDG, CNTRL SBIT GIE, PSW SBIT EXEN, PSW WAIT: JP WAIT . . . . = 0FF VIS . . . . ...
Page 33
Interrupts (Continued) 9.4 NON-MASKABLE INTERRUPT 9.4.1 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 ...
Page 34
... WATCHDOG service time, the lower window provides protection against an infinite program loop that contains the WATCHDOG service instruction. The COP8SAx devices provide the added feature of a soft- ware trap that provides protection against stack overpops and addressing locations outside valid user program space. ...
Page 35
WATCHDOG/Clock Monitor TABLE 8. WATCHDOG Service Actions Key Window Data Data Match Match Don’t Care Mismatch Mismatch Don’t Care Don’t Care Don’t Care 10.3 WATCHDOG AND CLOCK MONITOR SUMMARY The following salient points regarding the WATCHDOG and CLOCK MONITOR ...
Page 36
MICROWIRE/PLUS MICROWIRE/PLUS is a serial SPI compatible synchronous communications interface. The MICROWIRE/PLUS capabil- ity enables the device to interface with MICROWIRE/PLUS or SPI peripherals (i.e. A/D converters, display drivers, EE- PROMs etc.) and with other microcontrollers which support the ...
Page 37
MICROWIRE/PLUS (Continued) 11.1.2 MICROWIRE/PLUS Slave Mode Operation In the MICROWIRE/PLUS Slave mode of operation the SK clock is generated by an external source. Setting the MSEL bit in the CNTRL register enables the SO and SK functions onto the ...
Page 38
MICROWIRE/PLUS FIGURE 27. MICROWIRE/PLUS SPI Mode Interface Timing, Alternate SK Mode, SK Idle Phase being High FIGURE 28. MICROWIRE/PLUS SPI Mode Interface Timing, Normal SK Mode, SK Idle Phase being High www.national.com (Continued) 38 DS012838-35 DS012838-31 ...
Page 39
... All RAM, ports and registers (except A and PC) are mapped into data memory address space. RAM Select 64 On-Chip RAM Bytes. (COP8SAAx) 128 On-Chip RAM Bytes (COP8SABx/SACx) Reading any undefined memory location in the address range of 0080H–00FFH will return undefined data. Address ADD REG On-Chip RAM (48 Bytes) ...
Page 40
... Instruction Set 13.1 INTRODUCTION This section defines the instruction set of the COP8SAx Family members. It contains information about the instruc- tion set features, addressing modes and types. 13.2 INSTRUCTION FEATURES The strength of the instruction set is based on the follow- ing features: • Mostly single-byte opcode instructions minimize pro- gram size. • ...
Page 41
Instruction Set (Continued) Example: Load Accumulator Immediate Reg/Data Contents Memory Before Accumulator XX Hex Immediate Short. This is a special case of an immediate in- struction. In the “Load B immediate” instruction, the 4-bit im- ...
Page 42
Instruction Set (Continued) Jump Indirect. In this 1-byte instruction, the lower byte of the jump address is obtained from a table stored in program memory, with the Accumulator serving as the low order byte of a pointer into program ...
Page 43
Instruction Set (Continued) 13.4.9 No-Operation Instruction The no-operation instruction does nothing, except to occupy space in the program memory and time in execution. No-Operation (NOP) Note: The VIS is a special case of the Indirect Transfer of Control addressing ...
Page 44
Instruction Set (Continued) 13.6 INSTRUCTION SET SUMMARY 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 ...
Page 45
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 13.7 INSTRUCTION EXECUTION TIME Most ...
Page 46
Instruction Set (Continued) Memory Transfer Instructions Register Indirect [ (Note 21) 1 (Note 21) 1 Imm LD B, Imm LD Mem, Imm 2/2 LD Reg, Imm IFEQ MD, Imm > Note 21: = ...
Page 47
Nibble Lower 47 www.national.com ...
Page 48
... Mask Options For mask options information on COP8SAx5 devices, please refer to Section 6.4 ECON (CONFIGURATION) REGISTER. 15.0 Development Tools Support 15.1 OVERVIEW National is engaged with an international community of inde- pendent 3rd party vendors who provide hardware and soft- ware development tool support. Through National’s interac- tion and guidance, these tools cooperate to form a choice of solutions that fits each developer’ ...
Page 49
... COP8-DM: MetaLink Debug Module. A moderately priced real-time in-circuit emulation tool, with COP8 de- vice programmer. Includes MetaLink Debugger, power supply, emulation cables and adapters. 15.3 TOOLS ORDERING NUMBERS FOR THE COP8SAx FAMILY DEVICES Note: The following order numbers apply to the COP8 devices in this datasheet only. Vendor Tools ...
Page 50
... MHW-CNVxx (xx = 33, 34 Adapters etc.) OTP MHW-COP8-PGMA-DS Programming Adapters MHW-COP8-PGMA-44QFP L MHW-COP8-PGMA-28CSP L IM-COP8 IM-COP8-AD-464 (-220) (10 MHz maximum) IM Probe Card PC-COP8SA28DW-AD-10 PC-COP8SA40DW-AD-10 IM Probe Target MHW-SOICxx (xx = 16, Adapters 20, 28) MHW-CSPxx (xx = 20, 28) MHW-CONV33 ICU COP8-EVAL-ICUxx Not available for this device KKD WCOP8-IDE WCOP8-IDE IAR EWCOP8-xx ...
Page 51
Development Tools Support 15.4 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 ...
Page 52
... Physical Dimensions inches (millimeters) unless otherwise noted 20-Lead Hermetic Dual-In-Line Package, EPROM (D) www.national.com Order Number COP8SAC720Q3 NS Package Number D20CQ 52 ...
Page 53
... Physical Dimensions inches (millimeters) unless otherwise noted (Continued) Order Number COP8SAA716M8 or COP8SAA716M9 Order Number COP8SAA716N8 or COP8SAA716N9 Molded Small Outline Package (WM) NS Package Number M16B Molded Dual-In-Line Package (N) NS Package Number N16A 53 www.national.com ...
Page 54
... Physical Dimensions inches (millimeters) unless otherwise noted (Continued) Order Number COP8SAA720M9, COP8SAB720M9, COP8SAC720M9 COP8SAA720M8, COP8SAB720M8 or COP8SAC720M8 Order Number COP8SAA720N9, COP8SAB720N9, COP8SAC720N9, COP8SAA720N8, COP8SAB720N8 or COP8SAC720N8 www.national.com Molded SO Wide Body Package (WM) NS Package Number M20B Molded Dual-In-Line Package (N) NS Package Number N20A ...
Page 55
... Physical Dimensions inches (millimeters) unless otherwise noted (Continued) 28-Lead Hermetic Dual-In-Line Package EPROM (D) Order Number COP8SAC728Q3 NS Package Number D28JQ 55 www.national.com ...
Page 56
... Physical Dimensions inches (millimeters) unless otherwise noted (Continued) Order Number COP8SAA728M9, COP8SAB728M9, COP8SAC728M9, COP8SAA728M8, COP8SAB728M8 or COP8SAC728M8 Order Number COP8SAA728N9, COP8SAB728N9, COP8SAC728N9, COP8SAA728N8, COP8SAB728N8 or COP8SAC728N8 www.national.com Molded SO Wide Body Package (WM) NS Package Number M28B Molded Dual-In-Line Package (N), NS Package Number N28B ...
Page 57
... Physical Dimensions inches (millimeters) unless otherwise noted (Continued) Order Number COP8SAA7SLB9, COP8SAB7SLB9 or COP8SAC7SLB9 28 Lead Chip Scale Package (SLB) NS Package Number SLB28A 57 www.national.com ...
Page 58
... Physical Dimensions inches (millimeters) unless otherwise noted (Continued) Order Number COP8SAC740N9 or COP8SAC740N8 www.national.com 40-Lead Hermetic DIP EPROM (D) Order Number COP8SAC740Q3 NS Package Number D40KQ Molded Dual-In-Line Package (N) NS Package Number N40A 58 ...
Page 59
... Physical Dimensions inches (millimeters) unless otherwise noted (Continued) 44-Lead EPROM Leaded Chip Carrier (EL) Order Number COP8SAC744Q3 NS Package Number EL44C 59 www.national.com ...
Page 60
... Physical Dimensions inches (millimeters) unless otherwise noted (Continued) Order Number COP8SAC744V9 or COP8SAC744V8 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 ...