English
Language : 

COP688CL Datasheet, PDF (21/40 Pages) National Semiconductor (TI) – General Description
Multi-Input Wakeup (Continued)
be individually enabled or disabled The register WKEDG
specifies the trigger condition to be either a positive or a
negative edge Finally the register WKPND latches in the
pending trigger conditions
The GIE (Global Interrupt Enable) bit enables the interrupt
function
A control flag LPEN functions as a global interrupt enable
for Port L interrupts Setting the LPEN flag will enable inter-
rupts and vice versa A separate global pending flag is not
needed since the register WKPND is adequate
Since Port L is also used for waking the device out of the
HALT or IDLE modes the user can elect to exit the HALT or
IDLE modes either with or without the interrupt enabled If
he elects to disable the interrupt then the device will restart
execution from the instruction immediately following the in-
struction that placed the microcontroller in the HALT or
IDLE modes In the other case the device will first execute
the interrupt service routine and then revert to normal oper-
ation
The Wakeup signal will not start the chip running immediate-
ly since crystal oscillators or ceramic resonators have a fi-
nite start up time The IDLE Timer (T0) generates a fixed
delay to ensure that the oscillator has indeed stabilized be-
fore allowing the device to execute instructions In this case
upon detecting a valid Wakeup signal only the oscillator
circuitry and the IDLE Timer T0 are enabled The IDLE Tim-
er is loaded with a value of 256 and is clocked from the tc
instruction cycle clock The tc clock is derived by dividing
down the oscillator clock by a factor of 10 A Schmitt trigger
following the CKI on-chip inverter ensures that the IDLE tim-
er is clocked only when the oscillator has a sufficiently large
amplitude to meet the Schmitt trigger specifications This
Schmitt trigger is not part of the oscillator closed loop The
startup timeout from the IDLE timer enables the clock sig-
nals to be routed to the rest of the chip If the RC clock
option is used the fixed delay is under software control A
control flag CLKDLY in the G7 configuration bit allows the
clock start up delay to be optionally inserted Setting
CLKDLY flag high will cause clock start up delay to be in-
serted and resetting it will exclude the clock start up delay
The CLKDLY flag is cleared during reset so the clock start
up delay is not present following reset with the RC clock
options
Interrupts
The device supports a vectored interrupt scheme It sup-
ports a total of ten interrupt sources The following table
lists all the possible interrupt sources their arbitration rank-
ing and the memory locations reserved for the interrupt vec-
tor 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 a Pending bit A maskable interrupt
is active if its associated enable and pending bits are set If
GIE e 1 and an interrupt is active then the processor will
be interrupted as soon as it is ready to start executing an
instruction except if the above conditions happen during the
Software Trap service routine This exception 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-
Arbitration
Ranking
(1) Highest
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10) Lowest
Source
Software
Reserved
External
Timer T0
Timer T1
Timer T1
MICROWIRE PLUS
Reserved
Reserved
Reserved
Timer T2
Timer T2
Reserved
Reserved
Port L Wakeup
Default
y is VIS page y i 0
Description
INTR Instruction
for Future Use
Pin G0 Edge
Underflow
T1A Underflow
T1B
BUSY Goes Low
for Future Use
for UART
for UART
T2A Underflow
T2B
for Future Use
for Future Use
Port L Edge
VIS Instr Execution
without Any Interrupts
Vector
Address
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
21
http www national com