cop87l84rg National Semiconductor Corporation, cop87l84rg Datasheet

no-image

cop87l84rg

Manufacturer Part Number
cop87l84rg
Description
8-bit One-time Programmable Microcontroller With Kbytes Program Memory
Manufacturer
National Semiconductor Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
cop87l84rgM-XE
Manufacturer:
NS
Quantity:
36
C 1996 National Semiconductor Corporation
COP87L84RG
8-Bit One-Time Programmable (OTP) Microcontroller
with 32 Kbytes of Program Memory
General Description
The COP87L84RG is a member of the COP8
controller family It is pin and software compatible to the
mask ROM COP888EG product family
Key Features
Y
Y
Y
Y
Additional Peripheral Features
Y
Y
Y
Y
Y
I O Features
Y
Y
Block Diagram
TRI-STATE is a registered trademark of National Semiconductor Corporation
COP8
iceMASTER
Full duplex UART
Three 16-bit timers each with two 16-bit registers
supporting
32 kbytes on-board EPROM with security feature
Note Mask ROMed devices with equivalent on-chip features and pro-
512 bytes on-board RAM
Idle timer
Multi-Input Wake Up (MIWU) with optional interrupts (8)
One analog comparator
WATCHDOG
MICROWIRE PLUS
Memory mapped I O
Software selectable I O options (TRI-STATE
push-pull output weak pull-up input high impedance in-
put
TM
Processor independent PWM mode
External event counter mode
Input capture mode
MICROWIRE
gram memory sizes of 4k and 8k are available (see Table I)
TM
is a trademark of MetaLink Corporation
TM
TM
MICROWIRE PLUS
and clock monitor logic
TM
serial I O
TL DD12872
TM
and WATCHDOG
TM
TM
are trademarks of National Semiconductor Corporation
(Continued)
FIGURE 1 Block Diagram
OTP micro-
output
Y
Y
CPU Instruction Set Features
Y
Y
Y
Y
Y
Fully Static CMOS
Y
Y
Y
Development Support
Y
Y
Schmitt trigger inputs on ports G and L
Packages
1 s instruction cycle time
Fourteen multi-source vectored interrupts servicing
Versatile instruction set with true bit manipulation
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
Single supply operation 2 7V– 5 5V
Temperature range
Emulation device for the COP884EG
Real time emulation and full program debug offered by
MetaLink Development Systems
28 DIP or SO each with 24 I O pins
External interrupt
Idle timer T0
Two timers (each with 2 interrupts)
MICROWIRE PLUS
Multi-Input Wake Up
Software trap
UART (2)
Default VIS (default interrupt)
RRD-B30M96 Printed in U S A
b
40 C to
a
PRELIMINARY
85 C
http
TL DD12872 – 1
www national com
August 1996

Related parts for cop87l84rg

cop87l84rg Summary of contents

Page 1

... COP87L84RG 8-Bit One-Time Programmable (OTP) Microcontroller with 32 Kbytes of Program Memory General Description The COP87L84RG is a member of the COP8 controller family It is pin and software compatible to the mask ROM COP888EG product family Key Features Full duplex UART Y Three 16-bit timers each with two 16-bit registers ...

Page 2

... The devices operates over a volt- age range High throughput is achieved with an efficient regular instruction set operating at a maximum rate per instruction Note -X Crystal Oscillator -E Halt Enable Order Number COP87L84RGM-XE or COP87L84RGN-XE http www national com TABLE I COP888CG EG Family Members ROM EPROM TM Device ...

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 t t PD1 PD0 SO SK All Others MICROWIRE TM Setup Time (t ) UWS MICROWIRE Hold ...

Page 6

Pin Descriptions V and GND are the power supply pins CC CKI is the clock input This can come from generat- ed oscillator or a crystal oscillator (in conjunction with CKO) See Oscillator Description section RESET is ...

Page 7

Pin Descriptions (Continued) Since input only pin and G7 is the dedicated CKO clock output pin (crystal clock option) or general purpose input (R C clock option) the associated bits in the data and configuration registers for ...

Page 8

Functional Description (Continued) The data memory consists of 256 bytes of RAM Sixteen bytes of RAM are mapped as ‘‘registers’’ at addresses 0F0 to 0FF Hex These registers can be loaded immediately and also decremented and tested with the DRSZ ...

Page 9

Reset (Continued) Ports being initialized to the TRI-STATE mode Pin G1 of the G Port is an exception (as noted below) since pin G1 is dedicated as the WATCHDOG and or Clock Monitor error output pin Port D is set ...

Page 10

Control Registers (Continued) PSW Register (Address X 00EF) The PSW register contains the following select bits GIE Global interrupt enable (enables interrupts) EXEN Enable external interrupt BUSY MICROWIRE PLUS busy shifting flag EXPND External interrupt pending T1ENA Timer T1 Interrupt ...

Page 11

Timers (Continued) TIMER T1 TIMER T2 AND TIMER T3 The devices have a set of three powerful timer counter blocks T1 T2 and T3 The associated features and func- tioning of a timer block are described by referring to the ...

Page 12

Timers (Continued) The timer value gets copied over into the register when a trigger event occurs on its corresponding pin Control bits TxC3 TxC2 and TxC1 allow the trigger events to be speci- fied either as a positive or a ...

Page 13

Timers (Continued) The timer mode control bits (TxC3 TxC2 and TxC1) are detailed below TxC3 TxC2 TxC1 ...

Page 14

Power Save Modes (Continued) The WATCHDOG detector circuit is inhibited during the HALT mode However the clock monitor circuit if enabled remains active during HALT mode in order to ensure a clock monitor error if the device inadvertently enters the ...

Page 15

Multi-Input Wake Up (Continued 8-bit read write register which contains a control bit for every L port bit Setting a particular WKEN bit enables a Wake Up from the associated L port pin The user can select whether ...

Page 16

UART The device contains a full-duplex software programmable UART The UART (Figure 12) consists of a transmit shift register a receiver shift register and seven addressable reg- isters as follows a transmit buffer register (TBUF) a receiv- er buffer register ...

Page 17

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 18

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 19

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 20

Baud Clock Generation FIGURE 15 UART BAUD Clock Divisor Registers TABLE III Prescaler Factors Prescaler Prescaler Prescaler Select Factor Select 00000 NO CLOCK 10000 00001 1 10001 00010 1 5 10010 00011 2 10011 00100 2 5 10100 00101 3 ...

Page 21

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 22

Comparators (Continued) CMPSL REGISTER (ADDRESS X’00B7) The CMPSL register contains the following bits CMP1EN Enable comparator CMP1RD Comparator result (this is a read only bit which will read the comparator is not enabled) CMP10E Selects pin I3 ...

Page 23

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 24

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 25

WATCHDOG Operation (Continued) The WATCHDOG service window will restart when the WDOUT pin goes high It is recommended that the user tie the WDOUT pin back to V through a resistor in order to CC pull WDOUT high A WATCHDOG ...

Page 26

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 27

MICROWIRE PLUS (Continued) MICROWIRE PLUS OPERATION Setting the BUSY bit in the PSW register causes the MICROWIRE PLUS to start shifting the data It gets reset when eight data bits have been shifted The user may reset the BUSY bit ...

Page 28

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 29

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 30

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 31

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 32

LOWER NIBBLE 32 ...

Page 33

Development Support SUMMARY iceMASTER IM-COP8 400 Full feature in-circuit em- TM 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 34

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 35

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 36

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

Page 37

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 38

http www national com 38 ...

Page 39

... Physical Dimensions inches (millimeters) unless otherwise noted Molded SO Wide Body Package (M) Order Number COP87L84RGM-XE NS Package Number M28B 39 http www national com ...

Page 40

... 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 Molded Dual-In-Line Package (N) Order Number COP87L84RGN-XE NS Package Number N28B 2 A critical component is any component of a life ...

Related keywords