English
Language : 

COP8SGE5_14 Datasheet, PDF (33/82 Pages) Texas Instruments – COP8SG Family 8-Bit CMOS ROM Based and OTP Microcontrollers with 8k to 32k Memory, Two Comparators and USART
www.ti.com
COP8SGE5, COP8SGE7, COP8SGH5
COP8SGK5, COP8SGR5, COP8SGR7
SNOS516E – JANUARY 2000 – REVISED APRIL 2013
This toggle condition of the twelfth bit of the IDLE Timer T0 is latched into the T0PND pending flag.
The user has the option of being interrupted with a transition on the twelfth bit of the IDLE Timer T0. The
interrupt can be enabled or disabled via the T0EN control bit. Setting the T0EN flag enables the interrupt and
vice versa.
The user can enter the IDLE mode with the Timer T0 interrupt enabled. In this case, when the T0PND bit gets
set, the device will first execute the Timer T0 interrupt service routine and then return to the instruction following
the “Enter Idle Mode” instruction.
Alternatively, the user can enter the IDLE mode with the IDLE Timer T0 interrupt disabled. In this case, the
device will resume normal operation with the instruction immediately following the “Enter IDLE Mode” instruction.
NOTE
It is necessary to program two NOP instructions following both the set HALT mode and set
IDLE mode instructions. These NOP instructions are necessary to allow clock
resynchronization following the HALT or IDLE modes.
Figure 28. Wakeup from IDLE
MULTI-INPUT WAKEUP
The Multi-Input Wakeup feature is used to return (wakeup) the device from either the HALT or IDLE modes.
Alternately Multi-Input Wakeup/Interrupt feature may also be used to generate up to 8 edge selectable external
interrupts.
Figure 29 shows the Multi-Input Wakeup logic.
The Multi-Input Wakeup feature utilizes the L Port. The user selects which particular L port bit (or combination of
L Port bits) will cause the device to exit the HALT or IDLE modes. The selection is done through the register
WKEN. The register WKEN is an 8-bit read/write register, which contains a control bit for every L port bit. Setting
a particular WKEN bit enables a Wakeup from the associated L port pin.
The user can select whether the trigger condition on the selected L Port pin is going to be either a positive edge
(low to high transition) or a negative edge (high to low transition). This selection is made via the register
WKEDG, which is an 8-bit control register with a bit assigned to each L Port pin. Setting the control bit will select
the trigger condition to be a negative edge on that particular L Port pin. Resetting the bit selects the trigger
condition to be a positive edge. Changing an edge select entails several steps in order to avoid a Wakeup
condition as a result of the edge change. First, the associated WKEN bit should be reset, followed by the edge
select change in WKEDG. Next, the associated WKPND bit should be cleared, followed by the associated WKEN
bit being re-enabled.
Copyright © 2000–2013, Texas Instruments Incorporated
Submit Documentation Feedback
33
Product Folder Links: COP8SGE5 COP8SGE7 COP8SGH5 COP8SGK5 COP8SGR5 COP8SGR7