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

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

Advertisement

CHAPTER 14 WATCH COUNTER
14.7

Sample Programs for Watch Counter

We provide sample programs that can be used to operate the watch counter.
Sample Programs for Watch Counter
For information about sample programs for the watch counter, refer to "
Setup Methods without Programs
How to enable/stop the watch counter
Use the interrupt request enable bit (WCSR:ISEL).
How to select the count clock
The count clock select bits (WCDR:CS1/CS0) are used to select the clock.
Interrupt-related register
The interrupt level is set in the interrupt level register shown in the following table.
Interrupt source
Watch counter
How to enable/disable/clear interrupts
Interrupt request enable flag, Interrupt request flag
The interrupt request enable bit (WCSR:ISEL) is used to enable interrupts.
When disabling interrupt request
When enabling interrupt request
The interrupt request flag (WCSR:WCFLG) is used to clear interrupt requests.
When clearing interrupt request
218
What to be controlled
When enabling watch counter
When stopping watch counter
Interrupt level setup register
Interrupt level register (ILR5)
What to be controlled
What to be controlled
Address: 0007E
H
Interrupt request enable bit (ISEL)
Interrupt request flag (WCFLG)
Sample Programs" in Preface.
Watch timer initialization bit (ISEL)
Set the bit to "1"
Set the bit to "0"
Interrupt vector
#20
Address: 0FFD2
Set the bit to "0"
Set the bit to "1"
Write "0"
H

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95170j series

Table of Contents