cop842cj National Semiconductor Corporation, cop842cj Datasheet

no-image

cop842cj

Manufacturer Part Number
cop842cj
Description
8-bit Cmos Rom Based Microcontrollers With 1k Or 2k Memory, Comparator And Brown Out Detector
Manufacturer
National Semiconductor Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
cop842cj-AMO/N
Manufacturer:
NS/国半
Quantity:
20 000
© 2000 National Semiconductor Corporation
COP820CJ/COP840CJ Family
8-Bit CMOS ROM Based Microcontrollers with 1k or 2k
Memory, Comparator and Brown Out Detector
General Description
The COP820CJ/840CJ Family ROM based microcontrollers
are integrated COP8
memory, an Analog comparator and Brownout detection.
These single-chip CMOS devices are suited for lower-
functionality applications where power and voltage fluctua-
tions are a consideration. Pin and software compatible (no
Brownout; different Vcc range) 4k/32k OTP versions are
available (COP87LxxCJ/RJ Family) for pre-production, and
for use with a range of COP8 software and hardware devel-
opment tools.
Key Features
n Multi-Input Wake Up (on the 8-bit Port L)
n Brown out detector
n Analog comparator
n Modulator/timer (High speed PWM for IR transmission)
n 16-bit multi-function timer supporting
n 1024 or 2048 bytes of ROM
n 64 or 128 bytes of RAM
n Quiet design (low radiated emissions)
n Integrated capacitor for the R/C oscillator for COP840CJ
I/O Features
n Software selectable I/O options (TRI-STATE
n High current outputs (8 pins)
n Packages
TRI-STATE
COP8
iceMASTER
COP820CJ
COP822CJ
COP823CJ
COP840CJ
COP940CJ
COP842CJ
COP942CJ
— PWM mode
— External event counter mode
— Input capture mode
push-pull output, weak pull-up input, high impedance
input)
— 16 SO with 12 I/O pins for COP820CJ
— 20 DIP/SO with 16 I/O pins
— 28 DIP/SO with 24 I/O pins
Device
, MICROWIRE
®
®
is a registered trademark of National Semiconductor Corporation.
is a registered trademark of MetaLink Corporation.
Memory (bytes)
, MICROWIRE/PLUS
1k ROM
1k ROM
1k ROM
2k ROM
2k ROM
2k ROM
2k ROM
Base core devices with 1k or 2k
and WATCHDOG
RAM (bytes)
DS011208
128
128
128
128
64
54
64
are trademarks of National Semiconductor Corporation.
®
output,
I/O Pins
24
16
12
24
24
16
16
Family features include an 8-bit memory mapped architec-
ture, 10MHz CKI with 1us instruction cycle, one multi-
function 16-bit timer/counter, MICROWIRE/PLUS
I/O, one analog comparator, power saving HALT mode,
MIWU, on-chip R/C oscillator capacitor (COP840CJ), high
current outputs, software selectable I/O options, WATCH-
DOG
Reset, 2.5v-6.0v operation, and 16/20/28 pin packages.
In this datasheet, the term COP820CJ refers to packages in-
cluding the COP820CJ, COP822CJ, and COP823CJ; and
COP840CJ refers to COP840CJ, COP842CJ, COP940CJ,
and COP942CJ.
Devices included in this data sheet are:
n Schmitt trigger inputs on Port G
n MICROWIRE/PLUS serial I/O
CPU/Instruction Set Feature
n 1 µs instruction cycle time
n Three multi-source vectored interrupts servicing
n 8-bit Stack Pointer (SP) — stack in RAM
n Two 8-bit register indirect data memory pointers (B, X)
Fully Static CMOS
n Low current drain (typically
n Single supply operation: 2.5V to 6.0V
n Temperature ranges: −0˚C to +70˚C and −40˚C to +85˚C
Development Support
n Emulation and OTP devices
n Real time emulation and full program debug offered by
28 DIP/SOIC
20 DIP/SOIC
16 SOIC
28 DIP/SOIC
28 DIP/SOIC
20 DIP/SOIC
20 DIP/SOIC
Packages
MetaLink Development System
— External interrupt with selectable edge
— Timer interrupt
— Software interrupt
timer, modulator/timer, Brownout detector, Power on
Temperature
-40 to +85˚C
-40 to +85˚C
-40 to +85˚C
-40 to +85˚C
-0 to +70˚C
-40 to +85˚C
-0 to +70˚C
<
1 µA)
Low EMI
2.5V-4.5V, CJH = 4V-6V
2.5V-4.5V, CJH = 4V-6V
Comments
September 1999
www.national.com
serial

Related parts for cop842cj

cop842cj Summary of contents

Page 1

... DOG ™ timer, modulator/timer, Brownout detector, Power on Reset, 2.5v-6.0v operation, and 16/20/28 pin packages. In this datasheet, the term COP820CJ refers to packages in- cluding the COP820CJ, COP822CJ, and COP823CJ; and COP840CJ refers to COP840CJ, COP842CJ, COP940CJ, and COP942CJ. Devices included in this data sheet are: I/O Pins Packages 64 ...

Page 2

Block Diagram Connection Diagrams DS011208-3 Top View Order Number COPCJ820-XXX/N or COPCJ820-XXX/M, Order Number COPCJ840-XXX/N or COPCJ840-XXX/M, Order Number COPCJ940-XXX/N or COPCJ940-XXX/M See NS Package Number N28B or M28B www.national.com 2k ROM and 128 Bytes RAM for COP840CJ FIGURE 1. ...

Page 3

Connection Diagrams (Continued) COP820CJ/COP840CJ Pin Assignment Port Pin Typ. L0 I/O L1 I/O L2 I/O L3 I/O L4 I/O L5 I/O L6 I/O L7 I/O G0 I/O G1 I/O G2 I/O G3 I/O G4 I ...

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 DC Electrical Characteristics −0˚ 70˚C for COP94x and ...

Page 5

DC Electrical Characteristics −0˚ 70˚C for COP94x and −40˚C A Parameter Output Current Levels D Outputs: Source V V Sink V V L4–L7 Output Sink V All Others Source (Weak Pull-up Mode Source (Push-pull Mode) V ...

Page 6

AC Electrical Characteristics −40˚C T +85˚C unless otherwise specified A Parameter Instruction Cycle Time (tc) Crystal/Resonator R/C Oscillator V Rise Time when Using Brown CC Out Frequency at Brown Out Reset CKI Frequency For Modular Output CKI Clock Duty Cycle ...

Page 7

Comparator DC and AC Characteristics 4V V 6V, −40˚ 85˚C (Note Parameters Input Offset Voltage Input Common Mode Voltage Range Voltage Gain DC Supply Current (when enabled) Response Time Note 7: For comparator output current ...

Page 8

Typical Performance Characteristics for COP820CJ Ports L4–L7 Sink Current DS011208-38 Brown Out Voltage vs Temperature DS011208-41 Typical Performance Characteristics for COP840CJ Port D Sink current DS011208-42 www.national.com Port D Source Current DS011208-39 Halt Current with Brown Out Disabled DS011208-43 8 ...

Page 9

Typical Performance Characteristics for COP840CJ Halt Current with Comparator Enabled DS011208-45 Port D Source Current DS011208-48 Brown Out Voltage vs Temperature DS011208-50 Ports L/G Push-Pull Source Current DS011208-46 Port D Sink Current DS011208-49 9 (Continued) Ports L/G Push-Pull Sink Current ...

Page 10

Pin Description V and GND are the power supply pins. CC CKI is the clock input. This can come from an external source, a R/C generated oscillator or a crystal (in conjunc- tion with CKO). See Oscillator description. RESET is ...

Page 11

Memory (Continued) mapped as “registers”, these can be loaded immediately, decremented and tested. Three specific registers and SP are mapped into this space, the other registers are avail- able for general usage. Any bit of data memory can ...

Page 12

Reset (Continued) BROWN OUT RESET The on-board Brown Out protection circuit resets the device when the operating voltage ( lower than the Brown CC Out voltage. The device is held in reset when V low the Brown Out ...

Page 13

Reset (Continued) TABLE 2. R/C Oscillator Configuration (Part-To-Part Variation (pF) 3.3 82 5.6 100 6.8 100 R/C OSCILLATOR (COP840CJ) For COP840CJ, selecting the R/C oscillator option makes a R/C oscillator when connecting a resistor from the ...

Page 14

Reset (Continued) input (SI), serial data output (SO) and serial shift clock (SK). Figure 6 shows the block diagram of the MICROWIRE/PLUS interface. FIGURE 6. MICROWIRE/PLUS Block Diagram The shift clock can be selected from either an internal source or ...

Page 15

Reset (Continued) The user must set the BUSY flag immediately upon entering the Slave mode. This will ensure that all data bits sent by the Master will be shifted properly. After eight clock pulses the BUSY flag will be cleared ...

Page 16

Timer/Counter (Continued) MODE 3. TIMER WITH CAPTURE REGISTER Timer T1 can be used to precisely measure external fre- quencies or events in this mode of operation. The timer T1 counts down at the instruction cycle rate. Upon the occur- rence ...

Page 17

WATCHDOG (Continued) MODE 2: TIMER In this mode, the prescaler/counter is used as a timer by keeping the WDREN (WATCHDOG reset enable) bit at 0. The counter underflow sets the WDUDF (underflow) bit and the underflow does not reset the ...

Page 18

WATCHDOG (Continued) Modulator/Timer The Modulator/Timer contains an 8-bit counter and an 8-bit autoreload register (MODRL address 0CF Hex). The Modulator/Timer has two modes of operation, selected by the control bit MC3. The Modulator/Timer Control bits MC1, MC2 and MC3 reside ...

Page 19

Modulator/Timer (Continued) b. Variable Duty Cycle: When MC3 = 0 and MC2 = 1, a variable duty cycle PWM sig- nal is generated on the L7 output pin. The counter is clocked by tC. In this mode the 16-bit timer ...

Page 20

Modulator/Timer (Continued) Comparator The device has one differential comparator. Ports L0–L2 are used for the comparator. The output of the comparator is brought out to a pin. Port L has the following assignments: L0 Comparator output L1 Comparator negative input ...

Page 21

Multi-Input Wake Up The Multi-Input Wakeup feature is used to return (wakeup) the device from the HALT mode. Figure 16 shows the Multi-Input Wakeup logic. This feature utilizes the L Port. The user selects which particular L port bit or ...

Page 22

Multi-Input Wake Up (Continued) pending flags have to be cleared by the user. Setting the GIE bit high inside the interrupt subroutine allows nested interrupts. The software interrupt does not reset the GIE bit. This means that the controller can ...

Page 23

Control Registers CNTRL1 REGISTER (ADDRESS 00EE) TC3 TC2 TC1 TRUN MSEL IEDG Bit 7 The Timer and MICROWIRE control register contains the fol- lowing bits: TC3 Timer T1 Mode Control Bit TC2 Timer T1 Mode Control Bit TC1 Timer T1 ...

Page 24

Memory Map All RAM, ports and registers (except A and PC) are mapped into data memory address space. Address Contents On-chip RAM bytes (48 bytes) (820CJ On-chip RAM bytes (112 bytes) (840CJ ...

Page 25

Instruction Set REGISTER AND SYMBOL DEFINITIONS Registers A 8-bit Accumulator register B 8-bit Address register X 8-bit Address register SP 8-bit Stack pointer register PC 15-bit Program counter register PU upper 7 bits lower 8 bits of ...

Page 26

Instruction Set (Continued) INSTRUCTION SET (Continued) JMP Jump absolute JP Jump relative short JSRL Jump subroutine long JSR Jump subroutine JID Jump indirect RET Return from subroutine RETSK Return and Skip RETI Return from Interrupt INTR Generate an interrupt NOP ...

Page 27

Instruction Set (Continued) 3–0 Bits 27 www.national.com ...

Page 28

Instruction Execution Time Most instructions are single byte (with immediate addressing mode instruction taking two bytes). Most single instructions take one cycle time to execute. Skipped instructions require x number of cycles to be skipped, where x equals the number ...

Page 29

Mask Options The mask programmable options are listed below. The op- tions are programmed at the same time as the ROM pattern to provide the user with hardware flexibility to a variety of os- cillation and packaging configuration. OPTION 1: ...

Page 30

Development Tools Support (Continued) • COP8C: Moderately priced C Cross-Compiler and Code Development System from Byte Craft (no code limit). In- cludes BCLIDE (Byte Craft Limited Integrated Develop- ment Environment) for Win32, editor, optimizing C Cross- Compiler, macro cross assembler, ...

Page 31

Development Tools Support TOOLS ORDERING NUMBERS FOR THE COP820CJ/COP840CJ FAMILY DEVICES Vendor Tools National COP8-NSEVAL COP8-NSEVAL COP8-NSASM COP8-NSASM COP8-MLSIM COP8-MLSIM COP8-NSDEV COP8-NSDEV COP8-EPU Not available for this device COP8-DM Contact MetaLink Development COP87L20/40CJxx Devices COP87L22/42CJxx OTP COP8SA-PGMA Programming Adapters COP8-PGMA-44QFP ...

Page 32

Development Tools Support WHERE TO GET TOOLS Tools are ordered directly from the following vendors. Please go to the vendor’s web site for current listings of distributors. Vendor Home Office Aisys U.S.A.: Santa Clara, CA 1-408-327-8820 fax: 1-408-327-8830 Byte Craft ...

Page 33

... Physical Dimensions inches (millimeters) unless otherwise noted Order Number COPCJ822-XXX/WM, COP842CJ-XXX/M, or COP942CJ-XXX/M 16-Lead Molded Package S.O. (M) Order Number COPCJ823-XXX/WM NS Package Number M16B 20-Lead Surface Mount Package (M) NS Package Number M20B 33 www.national.com ...

Page 34

... Physical Dimensions Order Number COPCJ820-XXX/WM, COP840CJ-XXX/M, or COP940CJ-XXX/M Order Number COPCJ822-XXX/N, COP842CJ-XXX/N, or COP942CJ-XXX/N www.national.com inches (millimeters) unless otherwise noted (Continued) 28-Lead Molded Package S.O. (M) NS Package Number M28B 20-Lead Molded Dual-In-Line Package (N) NS Package Number N20A 34 ...

Page 35

... NATIONAL’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL COUNSEL OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein: 1. Life support devices or systems are devices or systems which, (a) are intended for surgical implant ...

Related keywords