cop87l88gg National Semiconductor Corporation, cop87l88gg Datasheet
cop87l88gg
Available stocks
Related parts for cop87l88gg
cop87l88gg Summary of contents
Page 1
... COP87L88GG 8-Bit One-Time Programmable (OTP) Microcontroller with UART and Three Multi-Function Timers General Description The COP87L88GG OTP microcontroller is a member of the COP8 feature family using an 8-bit core architecture pin and software compatible to the mask ROM COP888GG product family Features Full duplex UART ...
Page 2
... High throughput is achieved with an efficient regular instruction set operating at a maximum rate per instruction Dual-In-Line Package TL DD 12532– 2 Order Number COP87L88GGN-XE See NS Package Number N40A FIGURE 2 Connection Diagrams 12532 – 3 ...
Page 3
Connection Diagrams (Continued) Port Type WDOUT ...
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 b Total Current into V Pin (Source ...
Page 5
AC Electrical Characteristics Parameter Instruction Cycle Time ( Crystal Resonator R C Oscillator Inputs t SETUP t HOLD Output Propagation Delay (Note PD1 PD0 SO SK All Others MICROWIRE Setup Time (t ) UWS MICROWIRE ...
Page 6
Comparators AC and DC Characteristics Parameter Input Offset Voltage Input Common Mode Voltage Range Low Level Output Current High Level Output Current DC Supply Current per Comparator (When Enabled) Response Time http www national com ...
Page 7
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 generat- ed oscillator or a crystal oscillator (in conjunction with CKO) ...
Page 8
Pin Descriptions (Continued) Note that the chip will be placed in the HALT mode by writ- ing a ‘‘1’’ to bit 7 of the Port G Data Register Similarly the chip will be placed in the IDLE mode by writing ...
Page 9
Data Memory Segment RAM Extension Data memory address 0FF is used as a memory mapped location for the Data Segment Address Register (S) The data store memory is either addressed directly by a single byte address within the instruction or ...
Page 10
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 11
Control Registers CNTRL Register (Address X 00EE) The Timer1 (T1) and MICROWIRE PLUS control register contains the following bits SL1 SL0 Select the MICROWIRE PLUS clock divide by ( IEDG External interrupt ...
Page 12
Timers The device contains a very versatile set of timers ( T3) All timers and associated autoreload capture regis- ters power up containing random data TIMER T0 (IDLE TIMER) The device supports applications that require maintaining real time ...
Page 13
Timers (Continued) Figure 9 shows a block diagram of the timer in External Event Counter mode Note The PWM output is not available in this mode since the TxA pin is being used as the counter input clock FIGURE 9 ...
Page 14
Timers (Continued) The timer mode control bits (TxC3 TxC2 and TxC1) are detailed below TxC3 TxC2 TxC1 ...
Page 15
Power Save Modes (Continued) The device has two mask options associated with the HALT mode The first mask option enables the HALT mode fea- ture while the second mask option disables the HALT mode With the HALT mode enable mask ...
Page 16
Multi-Input Wakeup (Continued) The Multi-Input Wakeup feature utilizes the L Port The user selects which particular L port bit (or combination of L Port bits) will cause the device to exit the HALT or IDLE modes The selection is done ...
Page 17
UART The device contains a full-duplex software programmable UART The UART (Figure 12) consists of a transmit shift register a receive shift register and seven addressable reg- isters as follows a transmit buffer register (TBUF) a receiv- er buffer register ...
Page 18
UART (Continued) UART CONTROL AND STATUS REGISTERS The operation of the UART is programmed through three registers ENU ENUR and ENUI The function of the individ- ual bits in these registers is as follows ENU-UART Control and Status Register (Address ...
Page 19
UART (Continued) ETDX TDX (UART Transmit Pin) is the alternate function assigned to Port L pin selected by setting ETDX bit To simulate line break generation software should reset ETDX bit and output logic zero to TDX ...
Page 20
UART Operation (Continued) UART INTERRUPTS The UART is capable of generating interrupts Interrupts are generated on Receive Buffer Full and Transmit Buffer Emp- ty Both interrupts have individual interrupt vectors Two bytes of program memory space are reserved for each ...
Page 21
Baud Clock Generation (Continued) FIGURE 14 UART BAUD Clock Generation FIGURE 15 UART BAUD Clock Divisor Registers 12532 – 12532 – 20 http www national com ...
Page 22
Baud Clock Generation TABLE IV Baud Rate Divisors (1 8432 MHz Prescaler Output) Baud Baud Rate Rate Divisor b 110 (110 03) 1046 134 5 (134 58) 855 150 767 300 383 600 191 1200 95 1800 63 2400 47 ...
Page 23
Baud Clock Generation (Continued) Where BR is the Baud Rate Fc is the CKI frequency N is the Baud Rate Divisor (Table IV the Prescaler Divide Factor selected by the value in the Prescaler Select Register (Table V) ...
Page 24
Comparators (Continued) CMPSL REGISTER (ADDRESS X’00B7) The CMPSL register contains the following bits CMP1EN Enable comparator 1 CMP1RD Comparator 1 result (this is a read only bit which will read the comparator is not enabled) CMP10E Selects ...
Page 25
Interrupts (Continued) At this time since GIE 0 other maskable interrupts are e disabled The user is now free to do whatever context switching is required by saving the context of the machine in the stack with PUSH instructions The ...
Page 26
Interrupts (Continued) When an ST occurs the user can re-initialize the stack pointer and do a recovery procedure (similar to reset but not necessarily containing all of the same initialization pro- cedures) before restarting The occurrence ...
Page 27
WATCHDOG Operation (Continued) WATCHDOG AND CLOCK MONITOR SUMMARY The following salient points regarding the WATCHDOG and CLOCK MONITOR should be noted Both the WATCHDOG and CLOCK MONITOR detector circuits are inhibited during RESET Following RESET the WATCHDOG and CLOCK MONI- ...
Page 28
Detection of Illegal Conditions The device can detect various illegal conditions resulting from coding errors transient noise power supply voltage drops runaway programs etc Reading of undefined ROM gets zeros The opcode for soft- ware interrupt is zero If the ...
Page 29
MICROWIRE PLUS (Continued) MICROWIRE PLUS OPERATION Setting the BUSY bit in the PSW register causes the MI- CROWIRE PLUS to start shifting the data It gets reset when eight data bits have been shifted The user may reset the BUSY ...
Page 30
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 ...
Page 31
Addressing Modes There are ten addressing modes six for operand address- ing 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 ...
Page 32
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 ...
Page 33
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 x equals the ...
Page 34
http www national com 34 ...
Page 35
Development Support SUMMARY iceMASTER TM IM-COP8 400 Full feature in-circuit em- ulation for all COP8 products A full set of COP8 Basic and Feature Family device and package specific probes are available COP8 Debug Module Moderate cost in-circuit emulation and ...
Page 36
Development Support (Continued) iceMASTER DEBUG MODULE (DM) The iceMASTER Debug Module based combination in-circuit emulation tool and COP8 based OTP EPROM pro- gramming tool developed and marketed by MetaLink Corpo- ration to support the whole COP8 family ...
Page 37
EVALUATION PROGRAMMING UNIT (EPU) The iceMASTER EPU-COP888GG based in-circuit simulation tool to support the feature family COP8 products See Figure 21 for configuration The simulation capability is a very low cost means of evalu- ating the ...
Page 38
... Supports linking of compiled object or COP8 assembled object formats Global optimization of linked code Symbolic debug load format fully sourced level support the MetaLink debugger OTP EMULATOR SUPPORT The COP87L88GG provides emulation and OTP support for the COP888GG COP888HG mask programmable devices Approved List North Europe America ...
Page 39
... OTP Emulator Ordering Information Clock Device Number Package Option COP87L88GGV-XE Crystal HALT En 44 PLCC COP888GG COP87L88GGN-XE Crystal HALT En 40 DIP INDUSTRY WIDE OTP EPROM PROGRAMMING SUPPORT Programming support in addition to the MetaLink develop- ment tools is provided by a full range of independent ap- ...
Page 40
http www national com 40 ...
Page 41
... Physical Dimensions inches (millimeters) unless otherwise noted Molded Dual-In-Line Package (N) Order Number COP87L88GGN-XE NS Package Number N40A 41 http www national com ...
Page 42
... National does not assume any responsibility for use of any circuitry described no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications Plastic Leaded Chip Carrier (V) Order Number COP87L88GGV-XE NS Package Number V44A 2 A critical component is any component of a life ...