Sample Programs For Watch Prescaler - Fujitsu F2MC-8FX Hardware Manual

F2mc-8fx 8-bit microcontroller
Hide thumbs Also See for F2MC-8FX:
Table of Contents

Advertisement

13.7

Sample Programs for Watch Prescaler

We provide sample programs that can be used to operate the watch prescaler.
Sample Programs for Watch Prescaler
For information about sample programs for the watch prescaler, refer to "
Setup Methods without Sample Program
How to initialize the watch prescaler
The watch timer initialization bit (WPCR:WCLR) is used.
How to select the interval time
The watch interrupt interval time select bits (WPCR:WTC1/WTC0) are used to select the interval time.
Interrupt-related register
The interrupt level register shown in the following table is used to select the interrupt level.
Interrupt source
Watch prescaler
How to enable/disable/clear interrupts
Interrupt request enable flag, Interrupt request flag
The interrupt request enable bit (WPCR:WTIE) is used to enable interrupts.
The watch interrupt request flag (WPCR:WTIF) is used to clear interrupt requests.
What to be controlled
When initializing watch prescaler
What to be controlled
When disabling interrupt requests
When enabling interrupt requests
What to be controlled
When clearing interrupt requests
Watch timer initialization bit (WCLR)
Interrupt level setup register
Interrupt level register (ILR5)
Address: 0007E
H
Interrupt request enable bit (WTIE)
Watch interrupt request flag (WTIF)
CHAPTER 13 WATCH PRESCALER
Sample programs" in Preface.
Set the bit to "1"
Interrupt vector
Address: 0FFD2
Set the bit to "0"
Set the bit to "1"
Write "0"
#20
H
203

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95170j series

Table of Contents