cop87l42rj National Semiconductor Corporation, cop87l42rj Datasheet - Page 18

no-image

cop87l42rj

Manufacturer Part Number
cop87l42rj
Description
8-bit Cmos Otp Microcontrollers With 4k Or 32k Memory And Comparator
Manufacturer
National Semiconductor Corporation
Datasheet
www.national.com
Control Registers
CNTRL2 REGISTER (ADDRESS 00CC)
MC3 MC2 MC1 CMPEN CMPRD CMPOE WDUDF
MC3
MC2
MC1
CMPEN Comparator Enable Bit
CMPRD Comparator Read Bit
CMPOE Comparator Output Enable Bit
WDUDF WATCHDOG Timer Underflow Bit (Read Only)
Resvd
WDREG REGISTER (ADDRESS 00CD)
WDREN WATCHDOG Reset Enable Bit (Write Once Only)
Memory Map
All RAM, ports and registers (except A and PC) are mapped
into data memory address space.
R/W
Bit 7
Bit 7
00 to 2F
(820CJ)
00 to 6F
(840CJ)
30 to 7F
(820CJ)
70 to 7F
(840CJ)
80 to BF
C0 to C7
C8
C9
CA
CB
CC
CD
CE
CF
D0
D1
D2
D3
D4
D5
D6
D7
D8 to DB
DC
DD to DF
Address
R/W
Modulator/Timer Control Bit
Modulator/Timer Control Bit
Modulator/Timer Control Bit
This bit is reserved and must be zero
R/W
On-chip RAM bytes (48 bytes)
On-chip RAM bytes (112 bytes)
Unused RAM Address Space (Reads as All
Ones)
Unused RAM Address Space (Reads as All
Ones)
Expansion Space for On-Chip EERAM
(Reads Undefined Data)
Reserved
MIWU Edge Select Register (Reg:WKEDG)
MIWU Enable Register (Reg:WKEN)
MIWU Pending Register (Reg:WKPND)
Reserved
Control2 Register (CNTRL2)
WATCHDOG Register (WDREG)
WATCHDOG Counter (WDCNT)
Modulator Reload (MODRL)
Port L Data Register
Port L Configuration Register
Port L Input Pins (Read Only)
Reserved for Port L
Port G Data Register
Port G Configuration Register
Port G Input Pins (Read Only)
Port I Input Pins (Read Only)
Reserved for Port C
Port D Data Register
Reserved for Port D
UNUSED
R/W
R/O
(Continued)
Contents
R/W
R/O
WDREN
Resvd
Bit 0
Bit 0
18
Reading other unused memory locations will return unde-
fined data.
Addressing Modes
There are ten addressing modes, six for operand addressing
and four for transfer of control.
OPERAND ADDRESSING MODES
REGISTER INDIRECT
This is the “normal” addressing mode for the chip. The oper-
and is the data memory addressed by the B or X pointer.
REGISTER INDIRECT WITH AUTO POST INCREMENT
OR DECREMENT
This addressing mode is used with the LD and X instruc-
tions. The operand is the data memory addressed by the B
or X pointer. This is a register indirect mode that automati-
cally post increments or post decrements the B or X pointer
after executing the instruction.
DIRECT
The instruction contains an 8-bit address field that directly
points to the data memory for the operand.
IMMEDIATE
The instruction contains an 8-bit immediate field as the oper-
and.
SHORT IMMEDIATE
This addressing mode issued with the LD B, # instruction,
where the immediate # is less than 16. The instruction con-
tains a 4-bit immediate field as the operand.
INDIRECT
This addressing mode is used with the LAID instruction. The
contents of the accumulator are used as a partial address
(lower 8 bits of PC) for accessing a data operand from the
program memory.
TRANSFER OF CONTROL ADDRESSING MODES
RELATIVE
This mode is used for the JP instruction with the instruction
field being added to the program counter to produce the next
instruction address. JP has a range from −31 to +32 to allow
a one byte relative jump (JP + 1 is implemented by a NOP in-
struction). There are no “blocks” or “pages” when using JP
since all 15 bits of the PC are used.
ABSOLUTE
E0 to EF
E0 to E7
E8
E9
EA
EB
EC
ED
EE
EF
F0 to FF
FC
FD
FE
Address
On-Chip Functions and Registers
Reserved for Future Parts
Reserved
MICROWIRE Shift Register
Timer Lower Byte
Timer Upper Byte
Timer1 Autoreload Register Lower Byte
Timer1 Autoreload Register Upper Byte
CNTRL1 Control Register
PSW Register
On-Chip RAM Mapped as Registers
X Register
SP Register
B Register
Contents

Related parts for cop87l42rj