COP884CF National Semiconductor, COP884CF Datasheet

no-image

COP884CF

Manufacturer Part Number
COP884CF
Description
8-Bit CMOS ROM Based Microcontrollers with 4k Memory and A/D Converter
Manufacturer
National Semiconductor
Datasheet
C 1996 National Semiconductor Corporation
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
pin and software compatible to the mask ROM COP888GG
product family
Features
Y
Y
Y
Y
Additional Peripheral Features
Y
Y
Y
Y
Y
I O Features
Y
Y
Y
Block Diagram
TRI-STATE is a registered trademark of National Semiconductor Corporation
MICROWIRE PLUS
PC
iceMASTER
Full duplex UART
Three 16-bit timers each with two 16-bit registers
supporting
16 kbytes on-board OTP EPROM with security feature
512 bytes on-board RAM
Idle Timer
Multi-Input Wakeup (MIWU) with optional interrupts (8)
WATCHDOG
Two analog comparators
MICROWIRE PLUS
Memory mapped I O
Software selectable I O options (TRI-STATE
push-pull output weak pull-up input high impedance in-
put)
Schmitt trigger inputs on ports G and L
is a registered trademark of International Business Machines Corporation
Processor independent PWM mode
External event counter mode
Input capture mode
TM
TM
feature family using an 8-bit core architecture It is
is a trademark of MetaLink Corporation
TM
COP8
TM
and clock monitor logic
TM
and WATCHDOG
TM
serial I O
TL DD12532
TM
are trademarks of National Semiconductor Corporation
(Continued)
FIGURE 1 Block Diagram
output
Y
CPU Instruction Set Features
Y
Y
Y
Y
Y
Fully Static CMOS
Y
Y
Y
Development Support
Y
Y
Packages
1 s 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– 5 5V
Temperature ranges
Emulation device for the COP888GG and COP888HG
Real time emulation and full program debug offered by
MetaLink Development System
40 DIP with 36 I O pins
44 PLCC with 40 I O pins
External interrupt with selectable edge
Idle Timer T0
Three Timers (each with 2 interrupts)
MICROWIRE PLUS
Multi-Input Wakeup
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 DD 12532 – 1
www national com
August 1996

Related parts for COP884CF

COP884CF Summary of contents

Page 1

... Memory mapped Software selectable I O options (TRI-STATE Y push-pull output weak pull-up input high impedance in- put) Schmitt trigger inputs on ports G and L Y Block Diagram TRI-STATE is a registered trademark of National Semiconductor Corporation MICROWIRE PLUS TM COP8 TM and WATCHDOG TM are trademarks of National Semiconductor Corporation PC ...

Page 2

General Description (Continued fully static part fabricated using double-metal silicon gate microCMOS technology Features include an 8-bit memory mapped architecture MICROWIRE PLUS serial I O three 16-bit timer counters supporting three modes (Processor Independent PWM generation External ...

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 Electrical Characteristics Parameter Operating Voltage Power Supply Ripple (Note 1) ...

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

... MICROWIRE PLUS MICROWIRE PLUS is a serial synchronous communica- tions interface The MICROWIRE PLUS capability enables the device to interface with any of National Semiconductor’s MICROWIRE peripherals ( converters display driv- 2 ers E PROMs etc ) and with other microcontrollers which ...

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

... 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 ‘‘device’’ ...

Page 39

... DIAL-A-HELPER via a WorldWide Web Browser COP888HG ftp nscmicro nsc com COP888GG COP888HG National Semiconductor on the WorldWide Web See us on the WorldWide Web at http CUSTOMER RESPONSE CENTER Complete product information and technical support is avail- able from National’s customer response centers CANADA U S ...

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

... Floor Straight Block a Ocean Centre 5 Canton Rd 49 (0) 180-530 85 85 Tsimshatsui Kowloon a Tel 49 (0) 180-532 78 32 Hong Kong a 49 (0) 180-532 93 58 Tel (852) 2737-1600 a Tel 49 (0) 180-534 16 80 Fax (852) 2736-9960 a National Semiconductor Japan Ltd Tel 81-043-299-2308 Fax 81-043-299-2408 ...

Related keywords