COP8-PGMA-DS NSC [National Semiconductor], COP8-PGMA-DS Datasheet - Page 24

no-image

COP8-PGMA-DS

Manufacturer Part Number
COP8-PGMA-DS
Description
8-Bit One-Time Programmable (OTP) Microcontroller with UART and Three Multi-Function Timers
Manufacturer
NSC [National Semiconductor]
Datasheet
http
Comparators
CMPSL REGISTER (ADDRESS X’00B7)
The CMPSL register contains the following bits
CMP1EN
CMP1RD
CMP10E
CMP2EN
CMP2RD
CMP20E
Note that the two unused bits of CMPSL may be used as
software flags
Comparator outputs have the same spec as Ports L and G
except that the rise and fall times are symmetrical
Unused CMP20E CMP2RD CMP2EN CMP10E CMP1RD CMP1EN Unused
Bit 7
www national com
Enable comparator 1
Comparator 1 result (this is a read only bit
which will read as 0 if the comparator is not
enabled)
Selects pin I3 as comparator 1 output provided
that CMPIEN is set to enable the comparator
Enable comparator 2
Comparator 2 result (this is a read only bit
which will read as 0 if the comparator is not
enabled)
Selects pin I6 as comparator 2 output provided
that CMP2EN is set to enable the comparator
block except if VIS is located at the last address of a block In this case the table must be in the next block
y is a variable which represents the VIS block VIS and the vector table must be located in the same 256-byte
Arbitration
(1) Highest
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16) Lowest
(Continued)
Ranking
Software
Reserved
External
Timer T0
Timer T1
Timer T1
MICROWIRE PLUS
Reserved
UART
UART
Timer T2
Timer T2
Timer T3
Timer T3
Port L Wakeup
Default VIS
Source
Bit 0
24
Interrupts
The device supports a vectored interrupt scheme It sup-
ports a total of fourteen interrupt sources The following ta-
ble lists all the possible interrupt sources their arbitration
ranking and the memory locations reserved for the interrupt
vector for each source
Two bytes of program memory space are reserved for each
interrupt source All interrupt sources except the software
interrupt are maskable Each of the maskable interrupts
have an Enable bit and one or more Pending bit A maska-
ble interrupt is active if its associated enable and pending
bits are set If GIE
processor will be interrupted as soon as it is ready to start
executing an instruction except if the above conditions hap-
pen during the Software Trap service routine This excep-
tion is described in the Software Trap sub-section
The interruption process is accomplished with the INTR in-
struction (opcode 00) which is jammed inside the Instruc-
tion Register and replaces the opcode about to be execut-
ed The following steps are performed for every interrupt
1 The GIE (Global Interrupt Enable) bit is reset
2 The address of the instruction about to be executed is
3 The PC (Program Counter) branches to address 00FF
This procedure takes 7 t
INTR Instruction
G0
Underflow
T1A Underflow
T1B
BUSY Low
Receive
Transmit
T2A Underflow
T2B
T3A Underflow
T3B
Port L Edge
Reserved
Description
pushed into the stack
e
1 and an interrupt is active then the
Hi-Low Byte
0yFE– 0yFF
0yFC– 0yFD
0yFA– 0yFB
0yF8– 0yF9
0yF6– 0yF7
0yF4– 0yF5
0yF2 – 0yF3
0yF0– 0yF1
0yEE– 0yEF
0yEC– 0yED
0yEA– 0yEB
0yE8– 0yE9
0yE6– 0yE7
0yE4– 0yE5
0yE2– 0yE3
0yE0– 0yE1
c
Address
Vector
cycles to execute

Related parts for COP8-PGMA-DS