Other Functions - NEC PD750004 User Manual

4 bit single-chip microcomputer
Table of Contents

Advertisement

Module 1:
Module 2:

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
SEL
MOV
MOV
STOP
NOP
SET1
MBE
SEL
MB15
SET1
BTM.3
SET1
MBE
SEL
MB15
SET1
BTM.3
MBE
MB15
A, #1101B
BTM, A
; Set wait time
; Set STOP mode
CHAPTER 5 PERIPHERAL HARDWARE FUNCTIONS
Processing completes
within 5.46 ms.
Processing completes
within 5.46 ms.
103

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd750006Pd750008Pd75p0016

Table of Contents