cop87l88kg National Semiconductor Corporation, cop87l88kg Datasheet

no-image

cop87l88kg

Manufacturer Part Number
cop87l88kg
Description
8-bit One-time Programmable Otp Microcontroller With Uart And Three Multi-function Timers
Manufacturer
National Semiconductor Corporation
Datasheet
C 1996 National Semiconductor Corporation
COP87L88KG
8-Bit One-Time Programmable (OTP) Microcontroller
with UART and Three Multi-Function Timers
General Description
The COP87L88KG OTP microcontroller is a member of the
COP8
pin and software compatible to the mask ROM COP888KG
product family
Key Features
Y
Y
Y
Y
Additional Peripheral Features
Y
Y
Y
Y
Y
I O Features
Y
Y
TRI-STATE is a registered trademark of National Semiconductor Corporation
MICROWIRE PLUS
IBM
iceMASTER
Full duplex UART
Three 16-bit timers each with two 16-bit registers
supporting
24 kbytes on-board OTP EPROM with security feature
1088 bytes on-board RAM
Idle Timer
Multi-Input Wake-Up (MIWU) with optional interrupts (8)
Two analog comparators
WATCHDOG
MICROWIRE PLUS
Memory mapped I O
Software selectable I O options (TRI-STATE
Push-Pull Output Weak Pull-Up Input High Impedance
Input)
PC
Processor Independent PWM mode
External Event counter mode
Input Capture mode
TM
TM
PC-AT and PC-XT are registered trademarks of International Business Machines Corporation
feature family using an 8-bit core architecture It is
is a trademark of MetaLink Corporation
TM
M
TM
2
CMOS
and Clock Monitor logic
TM
TM
COP8
serial I O
TM
TL DD12864
COPS
TM
microcontrollers MICROWIRE
(Continued)
Output
TM
and WATCHDOG
Y
Y
CPU Instruction Set Features
Y
Y
Y
Y
Y
Fully Static CMOS
Y
Y
Y
Y
Development Support
Y
Y
Schmitt trigger inputs on ports G and L
Packages
1 ms instruction cycle time
Fourteen multi-source vectored interrupts servicing
Versatile and easy to use instruction set
8-bit Stack Pointer SP (stack in RAM)
Two 8-bit Register Indirect Data Memory Pointers
(B and X)
Two power saving modes HALT and IDLE
Low current drain (typically
Single supply operation 2 7V – 5 5V
Temperature ranges
b
Emulation device for COP888KG
Real time emulation and full program debug offered by
MetaLink’s Development System
40 C to
40 DIP with 35 I O pins
44 PLCC with 39 I O pins
External Interrupt with selectable edge
Idle Timer T0
Three Timers (each with 2 interrupts)
MICROWIRE PLUS
Multi-Input Wake-Up
Software Trap
UART (2)
Default VIS (default interrupt)
TM
are trademarks of National Semiconductor Corporation
RRD-B30M96 Printed in U S A
a
85 C
k
1 mA)
PRELIMINARY
http
www national com
August 1996

Related parts for cop87l88kg

cop87l88kg Summary of contents

Page 1

... COP87L88KG 8-Bit One-Time Programmable (OTP) Microcontroller with UART and Three Multi-Function Timers General Description The COP87L88KG OTP microcontroller is a member of the COP8 feature family using an 8-bit core architecture pin and software compatible to the mask ROM COP888KG product family Key Features ...

Page 2

... High throughput is achieved with an efficient regular instruction set operating at a maximum rate per instruction Dual-In-Line Package TL DD12864 – 2 Order Number COP87L88KGN-XE See NS Package Number N40A FIGURE 2 Connection Diagrams 2 TL DD12864 – DD12864 – ...

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 Total Current into V Pin (Source ...

Page 5

AC Electrical Characteristics COP888KG Parameter Instruction Cycle Time ( Crystal Resonator R C Oscillator Inputs t SETUP t HOLD Output Propagation Delay t t PD1 PD0 SO SK All Others MICROWIRE Setup Time (t ) (Note 5) UWS ...

Page 6

Comparators AC and DC Characteristics Parameter Input Offset Voltage Input Common Mode Voltage Range Voltage Gain 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 ( 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 21 TL DD12864 – DD12864 – 17 http www national com ...

Page 22

Baud Clock Generation TABLE III Baud Rate Divisors (1 8432 MHz Prescaler Output) Baud Baud Rate b Rate Divisor 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 III) ...

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 this time since GIE 0 other maskable interrupts are 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 ...

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

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 e 1 Crystal Oscillator (CKI 10) G7 (CKO) is clock generator output to ...

Page 36

Development Support (Continued) IceMASTER (IM) IN-CIRCUIT EMULATION The iceMASTER IM-COP8 400 is a full feature PC based in-circuit emulation tool developed and marketed by Meta- Link Corporation to support the whole COP8 family of prod- ucts National is a resale ...

Page 37

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 38

Development Support (Continued) iceMASTER 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 ...

Page 39

Development Support (Continued) COP8 ASSEMBLER LINKER SOFTWARE DEVELOPMENT TOOL KIT National Semiconductor offers a relocateable COP8 macro cross assembler linker librarian and utility software devel- opment tool kit Features are summarized as follows  Basic and Feature Family instruction set ...

Page 40

Development Support (Continued) AVAILABLE LITERATURE For more information please see the COP8 Basic Family User’s Manual Literature Number 620895 COP8 Feature Family User’s Manual Literature Number 620897 and Na- tional’s Family of 8-bit Microcontrollers COP8 Selection Guide Literature Number 630009 ...

Page 41

... Physical Dimensions inches (millimeters) unless otherwise noted Molded Dual-In-Line Package (N) Order Number COP87L88KGN-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 COP87L88KGV-XE NS Package Number V44A 2 A critical component is any component of a life ...

Related keywords