| Electronic Components Datasheet Search |
|
UPD78C18 Datasheet(PDF) 68 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD78C18 Datasheet(HTML) 68 Page - NEC |
|
68 / 110 page ![]() 68 µPD78C17,78C18 4.3 SOFTWARE STOP MODE When the STOP instruction is executed, the software STOP mode is set unless the interrupt request flag for an unmasked external interrupt is set. In the software STOP mode, all clocks stop. When this mode is set, program execution stops and the contents of all registers and internal RAM are retained (the timer upcounter is cleared to 00H). Only the NMI and RESET signals used to release the software STOP mode are valid, and all other functions stop. The statuses of the µPD78C17 and 78C18 output pins in the software STOP mode are the same as for the HALT mode, as shown in Table 4-1. Cautions 1. Internal interrupts should be masked before executing the STOP instruction to prevent errors due to an internal interrupt during the oscillation stabilization time at release of the software STOP mode. 2. The TIMER1 match signal is used as the signal to start CPU operation to secure an oscillation stabilization period after the software STOP mode has been released by setting the non- maskable interrupt request flag. Thus, it is necessary to set a count value in TIMER REG which takes account of the oscillation stabilization time, and to set the timer mode register to the timer operating state, before executing the STOP instruction. 4.4 SOFTWARE STOP MODE RELEASE (1) Release by RESET signal When the RESET signal changes from the high to low level in the software STOP mode, the software STOP mode is released and clock oscillation starts as soon as the reset state is set. When the RESET signal is driven high after oscillation has stabilized, the CPU starts program execution at address 0. When the RESET signal changes from the high to low level, clock oscillation starts but it takes time for oscillation to stabilize. The RESET signal low-level width must therefore be longer than the oscillation stabiliza- tion time. When the RESET signal is input, the RAM contents are retained but the contents of other registers are undefined. Fig. 4-4 Software STOP Mode Release Timing (RESET Input) CPU Operation OSC RESET STOP Address 0 Instruction Execution If the software STOP mode is released by the RESET signal, program execution starts at address 0 as in the case of a normal power-on reset. The SB (Standby) flag can be used to identify the program execution mode. The SB flag is set (1) when the VDD pin rises from the specified low level or below to the specified high level or above, and is reset (0) by executing a skip instruction. Thus, by testing the SB flag using a skip instruction in the program executed after RESET input, a set SB flag indicates a power-on start, and a reset SB flag indicates a start due to release of the software STOP mode. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |