English
Language : 

COP881C Datasheet, PDF (17/30 Pages) National Semiconductor (TI) – Microcontrollers
Control Registers
CNTRL REGISTER (ADDRESS X’00EE)
The Timer and MICROWIRE PLUS control register contains
the following bits
SL1 SL0 Select the MICROWIRE PLUS clock divide-by
IEDG
External interrupt edge polarity select
(0 e rising edge 1 e falling edge)
MSEL
Enable MICROWIRE PLUS functions SO and
SK
TRUN
Start Stop the Timer Counter (1 e run 0 e
stop)
TC3
Timer input edge polarity select (0 e rising
edge 1 e falling edge)
TC2
Selects the capture mode
TC1
Selects the timer mode
TC1 TC2 TC3 TRUN MSEL IEDG SL1 SL0
BIT 7
BIT 0
PSW REGISTER (ADDRESS X’00EF)
The PSW register contains the following select bits
GIE Global interrupt enable
ENI External interrupt enable
BUSY MICROWIRE PLUS busy shifting
IPND External interrupt pending
ENTI Timer interrupt enable
TPND Timer interrupt pending
C
Carry Flag
HC Half carry Flag
HC C TPND ENTI IPND BUSY ENI GIE
Bit 7
Bit 0
Addressing Modes
REGISTER INDIRECT
This is the ‘‘normal’’ mode of addressing The operand is
the memory addressed by the B register or X register
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 op-
erand
REGISTER INDIRECT
(AUTO INCREMENT AND DECREMENT)
This is a register indirect mode that automatically incre-
ments or decrements the B or X register after executing the
instruction
RELATIVE
This mode is used for the JP instruction the instruction field
is added to the program counter to get the new program
location JP has a range of from b31 to a32 to allow a one
byte relative jump (JP a 1 is implemented by a NOP instruc-
tion) There are no ‘pages’ when using JP all 15 bits of PC
are used
Memory Map
All RAM ports and registers (except A and PC) are mapped
into data memory address space
Address
Contents
00 to 6F On Chip RAM Bytes
70 to 7F Unused RAM Address Space (Reads as all Ones)
80 to BF Expansion Space for future use
C0 to CF Expansion Space for I O and Registers
D0 to DF On Chip I O and Registers
D0 Port L Data Register
D1 Port L Configuration Register
D2 Port L Input Pins (Read Only)
D3 Reserved for Port L
D4 Port G Data Register
D5 Port G Configuration Register
D6 Port G Input Pins (Read Only)
D7 Port I Input Pins (Read Only)
D8 Port C Data Register
D9 Port C Configuration Register
DA Port C Input Pins (Read Only)
DB Reserved for Port C
DC Port D Data Register
DD – DF Reserved for Port D
E0 to EF On Chip Functions and Registers
E0 – E7 Reserved for Future Parts
E8 Reserved
E9 MICROWIRE PLUS Shift Register
EA Timer Lower Byte
EB Timer Upper Byte
EC Timer Autoload Register Lower Byte
ED Timer Autoload Register Upper Byte
EE CNTRL Control Register
EF PSW Register
F0 to FF On Chip RAM Mapped as Registers
FC X Register
FD SP Register
FE B Register
Reading unused memory locations below 7FH will return all
ones Reading other unused memory locations will return
undefined data
17
http www national com