cop842cj National Semiconductor Corporation, cop842cj Datasheet - Page 11

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
Memory
mapped as “registers”, these can be loaded immediately,
decremented and tested. Three specific registers: X, B, and
SP are mapped into this space, the other registers are avail-
able for general usage.
Any bit of data memory can be directly set, reset or tested.
All I/O and registers (except A and PC) are memory mapped;
therefore, I/O bits and register bits can be directly and indi-
vidually set, reset and tested, except the write once only bit
(WDREN, WATCHDOG Reset Enable), and the unused and
read only bits in CNTRL2 and WDREG registers.
Note: RAM contents are undefined upon power-up.
Reset
EXTERNAL RESET
The RESET input pin when pulled low initializes the
micro-controller. The user must insure that the RESET pin is
held low until V
the clock is stabilized. An R/C circuit with a delay 5x greater
than the power supply rise time is recommended ( Figure 4 ).
The device immediately goes into reset state when the RE-
SET input goes low. When the RESET pin goes high the de-
vice comes out of reset state synchronously. The device will
be running within two instruction cycles of the RESET pin go-
ing high. The following actions occur upon reset:
The device comes out of the HALT mode when the RESET
pin is pulled low. In this case, the user has to ensure that the
RESET signal is low long enough to allow the oscillator to re-
start. An internal 256 t
with the two pin crystal oscillator. When the device comes
out of the HALT mode through Multi-Input Wakeup, this de-
lay allows the oscillator to stabilize.
The following additional actions occur after the device
comes out of the HALT mode through the RESET pin.
Port L
Port G
Port D
PC
RAM Contents
B, X, SP
PSW, CNTRL1,
CNTRL2
and WDREG Reg.
Multi-Input Wakeup
Reg.
WKEDG, WKEN
WKPND
Data and Configuration
Registers for L & G
WATCHDOG Timer
(Continued)
CC
is within the specified voltage range and
c
delay is normally used in conjunction
TRI-STATE
TRI-STATE
HIGH
CLEARED
RANDOM with Power-On-
Reset
UNAFFECTED with external
Reset (power already applied)
Same as RAM
CLEARED
CLEARED
UNKNOWN
CLEARED
Prescaler/Counter each
loaded with FF
11
If a two pin crystal/resonator oscillator is being used:
If the external or RC Clock option is being used:
The external RESET takes priority over the Brown Out Re-
set.
Note: If the RESET pin is pulled low while Brown Out occurs (Brown Out cir-
RC
WATCHDOG RESET
With WATCHDOG enabled, the WATCHDOG logic resets
the device if the user program does not service the WATCH-
DOG timer within the selected service window. The WATCH-
DOG reset does not disable the WATCHDOG. Upon
WATCHDOG reset, the WATCHDOG Prescaler and Counter
are each initialized with FF Hex.
The following actions occur upon WATCHDOG reset that are
different from external reset.
WDREN WATCHDOG Reset Enable bit
WDUDFWATCHDOG Underflow bitUNCHANGED
Additional initialization actions that occur as a result of
WATCHDOG reset are as follows:
RAM Contents
Timer T1 and A Contents
WATCHDOG Timer Prescaler/Counter
RAM Contents
Timer T1 and A Contents
WATCHDOG Timer Prescaler/Counter
Port L
Port G
Port D
PC
RAM Contents
B, X, SP
PSW, CNTRL1 and
CNTRL2 (except WDUDF
Bit) Registers
Multi-Input Wakeup
Registers
WKEDG, WKEN
WKPND
Data and Configuration
Registers for L & G
WATCHDOG Timer
>
cuit has detected Brown Out condition), the external reset will not oc-
cur until the Brown Out condition is removed. External reset has prior-
ity only if V
5 x Power Supply Rise Time
FIGURE 4. Recommended Reset Circuit
CC
is greater than the Brown Out voltage.
TRI-STATE
TRI-STATE
HIGH
CLEARED
UNCHANGED/RANDOM
UNCHANGED
CLEARED
CLEARED
UNKNOWN
CLEARED
Prescalar/Counter
each loaded with FF
DS011208-51
UNCHANGED
UNKNOWN
ALTERED
UNCHANGED
UNCHANGED
ALTERED
UNCHANGED
www.national.com

Related parts for cop842cj