cop87l88rw National Semiconductor Corporation, cop87l88rw Datasheet

no-image

cop87l88rw

Manufacturer Part Number
cop87l88rw
Description
8-bit One-time Programmable Otp Microcontroller With Pulse Train Generators And Capture Modules
Manufacturer
National Semiconductor Corporation
Datasheet
C 1996 National Semiconductor Corporation
COP87L88RW
8-Bit One-Time Programmable (OTP) Microcontroller
with Pulse Train Generators and Capture Modules
General Description
The COP87L88RW is a member of the COP8
microcontroller family It is pin and software compatible to
the mask ROM COP888GW product family
Key Features
Y
Y
Y
Y
Y
Y
Note Mask ROMed devices with equivalent on-chip features and program
Y
Additional Peripheral Features
Y
Y
Y
Y
I O Features
Y
Y
Block Diagram
TRI-STATE is a registered trademark of National Semiconductor Corporation
MICROWIRE PLUS
iceMASTER
Multiply divide functions
Full duplex UART
Four pulse train generators with 16-bit prescalers
Two 16-bit input capture modules with 8-bit prescalers
Two 16-bit timers each with two 16-bit registers
supporting
32 kbytes on-board OTP EPROM with security feature
512 bytes on-board RAM
Idle Timer
Multi-Input Wake-Up (MIWU) with optional interrupts (8)
WATCHDOG
MICROWIRE PLUS
Memory mapped I O
Software selectable I O options
memory sizes of 16k is available
Processor independent PWM mode
External event counter mode
Input capture mode
TRI-STATE output
Push-pull output
Weak pull-up input
High impedance input
TM
is a trademark of MetaLink Corporation
TM
COPS
TM
and clock monitor logic
TM
microcontrollers MICROWIRE
TM
serial I O
TL DD12855
FIGURE 1 COP87L88RW Block Diagram
TM
WATCHDOG
TM
(Continued)
8-bit OTP
TM
and COP8
TM
are trademarks of National Semiconductor Corporation
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
Package
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
Single supply operation 2 7V to 5 5V
Temperature range
Emulation device for the COP888GW
Real time emulation and full program debug offered by
MetaLink’s Development System
External interrupt
Idle timer T0
Two timers (each with 2 interrupts)
MICROWIRE PLUS
Multi-Input Wake-Up
Software trap
UART (2)
Default VIS
Capture timers
Counters (one vector for all four counters)
RRD-B30M106 Printed in U S A
68 PLCC with I O pins
b
40 C to
a
PRELIMINARY
85 C
TL DD 12855 – 1
http
September 1996
www national com

Related parts for cop87l88rw

cop87l88rw Summary of contents

Page 1

... COP87L88RW 8-Bit One-Time Programmable (OTP) Microcontroller with Pulse Train Generators and Capture Modules General Description The COP87L88RW is a member of the COP8 microcontroller family It is pin and software compatible to the mask ROM COP888GW product family Key Features Multiply divide functions Y Full duplex UART ...

Page 2

... HALT or IDLE modes Each I O pin has software selectable configurations The devices operate over a voltage range of 2 7V--5 5V High throughput is achieved with an efficient regular instruction set operating at a maximum per instruction rate Top View Order Number COP87L88RWV-XE See NS Plastic Chip Package Number V68A FIGURE 2 Connection Diagram 12855 – 2 ...

Page 3

Absolute Maximum Ratings SuppIy Voltage ( Voltage at Any Pin Total Current into V Pin (Source) CC Total Current out of GND Pin (Sink) b Storage Temperature Range Electrical ...

Page 4

AC Electrical Characteristics Parameter Instruction Cycle Time ( Crystal Resonator Ceramic Inputs t SETUP t HOLD Output Propagation Delay (Note PD1 PD0 SO SK All Others MICROWIRE Setup Time (t ) (Note 7) TM UWS ...

Page 5

Pin Descriptions V and GND are the power supply pins All V CC pins must be connected CKI is the clock input This comes from a crystal oscillator (in conjunction with CKO) See Oscillator Description sec- tion RESET is the ...

Page 6

Pin Descriptions (Continued) Since input only pin and G7 is dedicated CKO clock output pin the associated bits in the data and configuration registers for G6 and G7 are used for special purpose func- tions as outlined ...

Page 7

Data Memory Segment RAM Extension The data store memory is either addressed directly by a single-byte address within the instruction or indirectly rela- tive to the reference of the pointers (each con- tains a single-byte address) ...

Page 8

Reset This device enters a reset state immediately upon detecting a logic low on the RESET pin The RESET pin must be held low for a minimum of one instruction cycle to guarantee a valid reset During power-up initialization the ...

Page 9

Oscillator Circuits (Continued) Table I shows the component values required for various standard crystal values TABLE I CrystaI Oscillator Configuration CKI Freq (kX) (MX) (pF) (pF) (MHz – ...

Page 10

Timers The device contains a very versatile set of timers (T0 T1 T2) All timers and associated autoreload capture registers power up containing random data TIMER T0 (IDLE TIMER) The device supports applications that require maintaining reaI time and Iow ...

Page 11

Timers (Continued) FIGURE 9 Timer in External Event Counter Mode In this mode the input pin TxB can be used as an indepen- dent positive edge sensitive interrupt input if the TxENB control flag is set The occurrence of a ...

Page 12

Timers (Continued) TIMER CONTROL FLAGS The timers T1 and T2 have identical control structures The control bits and their functions are summarized below TxC0 Timer Start Stop control in Modes 1 and 2 (Proc- essor Independent PWM and External Event ...

Page 13

Timers (Continued) FIGURE 11 Capture Timer 1 Block Diagram The registers shown in the block diagram include those for Capture Timer 1 (CM1) as well as the capture timer 1 con- trol register These registers are read writable (with the ...

Page 14

Timers (Continued) The CCMR2 Register Bits are CM2RUN CM2 start stop control bit (1 start 0 CM2IEN CM2 interrupt enable control bit (1 CM2IP1 CM2 interrupt pending bit 1 (1 flowed) CM2IP2 CM2 interrupt pending bit 2 (1 CM2EC Select ...

Page 15

Timers (Continued) INITIALIZATION The user should perform the following initialization prior to starting the capture timer 1 Reset the CMxRUN bit 2 Configure the corresponding Port bits as inputs 3 Set the edge control bits CMxEC e 4 Reset CMxIP1 ...

Page 16

Pulse Train Generators (Continued) The four 8-bit registers shown in each individual counter in the block diagram constitute a 16-bit prescaler and a 16-bit count register These registers are all read writable and may be accessed through the data memory ...

Page 17

Pulse Train Generators (Continued) The underflow of the counter register produces the signal UFL3 This signal stops the counter by resetting the counter start stop bit and sets the counter interrupt pending flag If the counter interrupt is enabled an ...

Page 18

Multiply Divide (Continued) CONTROL REGISTER BITS The Multiply Divide control register (MDCR) is located at address xx9D It has the following bit assignments MULT Start Multiplication Operation (1 e DIV Start Division Operation (1 DIVOVF Division Overflow (if the result ...

Page 19

Power Save Modes (Continued) As with the HALT mode the device can be returned to nor- mal operation with a reset or with a Multi-Input Wake up from the L Port Alternately the microcontroller resumes normal operation from the IDLE ...

Page 20

Multi-Input Wakeup (Continued) The Multi-Input Wake Up 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 ...

Page 21

UART The device contains a full-duplex software programmable UART The UART ( Figure 14 ) 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 ...

Page 22

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 23

UART (Continued) ERI This bit enables disables interrupt from the receiver section e ERI 0 Interrupt from the receiver is disabled e ERI 1 Interrupt from the receiver is enabled XTCLK This bit selects the clock source for the transmitter ...

Page 24

UART Operation (Continued) For any of the above framing formats the last Stop bit can be programmed 8th of a bit in length If two Stop bits are selected and the 7 8th bit is set (selected) ...

Page 25

Baud Clock Generation The clock inputs to the transmitter and receiver sections of the UART can be individually selected to come either from an external source at the CKX pin (port L pin L1) or from a source selected in ...

Page 26

Baud Clock Generation As shown in Table V a Prescaler Factor of 0 corresponds to NO CLOCK This condition is the UART power down mode where the UART clock is turned off for power saving pur- pose The user must ...

Page 27

Baud Clock Generation (Continued example considering Asynchronous Mode and a CKI clock of 4 608 MHz the prescaler factor selected 608 1 8432 2 5 The 2 5 entry is available in Table V The ...

Page 28

Interrupts The device supports a vectored interrupt scheme It sup- ports a total of fourteen interrupt sources Table VI lists all the possible device interrupt sources their arbitration rank- ings and the memory locations reserved for the interrupt vector for ...

Page 29

Interrupts (Continued) VIS and the vector table must be located in the same 256-byte block (0y00 to 0yFF) except if VIS is located at the last address of a block In this case the table must be in the next ...

Page 30

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 zeroes The opcode for software interrupt the program ...

Page 31

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 32

Memory Map All RAM ports and registers (except A and PC) are mapped into data memory address space ADDRESS S ADD REG 0000 to 006F 0070 to 007F xx80 to xx8F xx90 xx91 xx92 xx93 xx94 xx95 xx96 xx97 xx98 ...

Page 33

Memory Map (Continued) ADDRESS S ADD REG xxBB xxBC xxBD xxBE xxBF xxC0 xxC1 xxC2 xxC3 xxC4 xxC5 xxC6 xxC7 xxC8 xxC9 xxCA xxCB xxCC xxCD to xxCF xxD0 xxD1 xxD2 xxD3 xxD4 xxD5 xxD6 xxD7 xxD8 xxD9 xxDA xxDB ...

Page 34

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 35

INSTRUCTION SET ADD A MemI ADD ADC A Meml ADD with Carry SUBC A Meml Subtract with Carry AND A Meml Logical AND ANDSZ A lmm Logical AND lmmed Skip if Zero OR A Meml Logical OR XOR A Meml ...

Page 36

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 37

Bits 3 – http www national com ...

Page 38

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

Page 39

Development Support (Continued) IceMASTER DEBUG MODULE 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 of ...

Page 40

Development Support (Continued) COP8 ASSEMBLER LINKER SOFTWARE DEVELOPMENT TOOL KIT National Semiconductor offers a relocatable 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 41

Development Support (Continued)  Performs consistency checks against the architectural definitions of the target COP8 device  Generates program memory code  Supports linking of compiled object or COP8 assembled object formats  Global optimization of linked code  Symbolic ...

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 COP87L88RWV- critical component is any component of a life ...

Related keywords