NEC PD750008 Manuale Utente

Pagina di 342
103
CHAPTER 5  PERIPHERAL HARDWARE FUNCTIONS
······
Module 1:
SET1
SEL
SET1
MBE
MB15
BTM.3
Processing completes 
within 5.46 ms.
······
Module 2:
SET1
SEL
SET1
MBE
MB15
BTM.3
Processing completes 
within 5.46 ms.
···
5.3.6   Other Functions
The basic interval timer/watchdog  has the following functions regardless of whether it operates as a basic
interval timer or watchdog timer:
<1> Selecting and counting the wait time after the standby mode is released
<2> Reading the count
(1) Selecting and counting the wait time after the STOP mode is released
To allow the system clock to stabilize after releasing the STOP mode, a wait function is available which
stops the operation of the CPU until the basic interval timer (BT) overflows.
The wait time after generation of a RESET signal is fixed as specified by a mask option.  On the other
hand, a wait time can be selected by setting BTM when releasing the STOP mode with an interrupt
occurrence.  In this case, the wait times are the same as the interval times shown in Figure 5-24.  BTM
must be set before the STOP mode is set.  (For details, see Chapter 7.)
Example
Set  the wait time 5.46 ms (at 6.00 MHz) in releasing the  STOP mode with an interrupt.
SET1
MBE
SEL
MB15
MOV
A, #1101B
MOV
BTM, A
; Set wait time
STOP
; Set STOP mode
NOP