Operation Of Interval Timer Function (One-Shot Mode) - Fujitsu 8FX Hardware Manual

8-bit microcontroller new 8fx family
Table of Contents

Advertisement

CHAPTER 11 8/16-BIT COMPOSITE TIMER
11.6 Operation of Interval Timer Function
(One-shot Mode)
11.6
Operation of Interval Timer Function
(One-shot Mode)
This section describes the operation of the interval timer function (one-shot
mode) of the 8/16-bit composite timer.

■ Operation of Interval Timer Function (One-shot Mode)

To use the interval timer function (one-shot mode), do the settings shown in Figure 11.6-1.
Figure 11.6-1 Settings of Interval Timer Function (One-shot Mode)
Tn0CR0/Tn1CR0
Tn0CR1/Tn1CR1
TMCRn
Tn0DR/Tn1DR
As for the interval timer function (one-shot mode), enabling timer operation (Tn0CR1/
Tn1CR1:STA = 1) causes the counter to start counting from "0x00" at the rising edge of a
selected count clock signal. When the counter value matches the value of the 8/16-bit
composite timer data register (Tn0DR/Tn1DR), the timer output (TMCRn:TO0/TO1) is
inverted, the interrupt flag (Tn0CR1/Tn1CR1:IF) is set to "1", the timer operation enable bit
(Tn0CR1/Tn1CR1:STA) is set to "0", and the counter stops counting.
The value of the 8/16-bit composite timer data register (Tn0DR/Tn1DR) is transferred to the
temporary storage latch (comparison data storage latch) in the comparator when the counter
starts counting. Do not write "0x00" to the 8/16-bit composite timer data register.
Figure 11.6-2 shows the operation of the interval timer function in 8-bit operation.
144
bit7
bit6
bit5
IFE
C2
C1
STA
HO
IE
1
TO1
TO0
TIS
×
Sets interval time (counter compare value)
❍: Used bit
×: Unused bit
1: Set to "1"
0: Set to "0"
FUJITSU SEMICONDUCTOR LIMITED
MB95630H Series
bit4
bit3
bit2
C0
F3
F2
0
0
IR
BF
IF
×
×
MOD
FE11
FE10
bit1
bit0
F1
F0
0
0
SO
OE
FE01
FE00
MN702-00009-2v0-E

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95630h series

Table of Contents