
Flash
MCU(HMS39C7092)
General
Purpose
Timer
109
8.3.1
Free
Running
Mode
A
reset
of
the
counters
for
channels
0
-
5
leaves
them
all
in
the
free-running
mode.
When
a
corresponding
bit
in
the
TSR
is
set
to
1,
the
corresponding
timer
counter
operates
as
a
free-running
counter
and
begins
to
increment.
When
the
count
wraps
round
from
0xFFFF
to
0x0000,
the
overflow
flag
(OVFI)
in
the
timer
status
register
(TSR)
is
set
to
1.
If
the
OVFIE
bit
in
the
timerís
corresponding
interrupt
enable
register
(TIER)
is
set
to
1,
the
CPU
will
be
asked
for
an
interrupt.
After
the
TCNT
overflows,
counting
continues
from
0x0000.
Figure
8.2
shows
an
example
of
free-
running
counting.
Periodic
counter
operation
is
obtained
for
a
given
channelís
TCNT
by
selecting
compare
match
as
a
TCNT
clear
source.
(Set
the
GRA
or
GRB
for
period
setting
to
output
compare
register
and
select
counter
clear
upon
compare
match
using
the
CCLR1
and
CCLR0
bits
of
the
timer
control
register
(TCR).
After
setting,
the
TCNT
begins
incrementing
as
a
periodic
counter
when
the
corresponding
bit
of
TSTARTR
is
set
to
1.
When
the
count
matches
GRA
or
GRB,
the
MCIA/MCIB
bit
in
the
TSR
is
set
to
1
and
the
counter
is
automatically
cleared
to
0x0000.
If
the
MCIAE/MCIBE
bit
of
the
corresponding
TIER
is
set
to
1
at
this
point,
the
CPU
will
be
asked
for
an
interrupt.
After
the
compare
match,
TCNT
continues
counting
from
0x0000.
Figure
8.3
shows
an
example
of
periodic
counting.
Figure
8.2
Free-Running
Counter
Operation
Time
TCNT
value
0xFFFF
STR0-STR4
OVF
0x0000
Summary of Contents for HMS39C7092
Page 1: ...HMS39C7092 32Bit Embedded Flash MCU User s Manual Version 1 2...
Page 11: ...Flash MCU HMS39C7092 11...
Page 12: ...Flash MCU HMS39C7092 12...
Page 13: ...Flash MCU HMS39C7092 Introduction 13 Chapter 1 Introduction...
Page 27: ...Flash MCU HMS39C7092 ARM7TDMI Core 27 Chapter 2 ARM7TDMI Core...
Page 40: ...BUS Controller Flash MCU HMS39C7092 40...
Page 41: ...Flash MCU HMS39C7092 BUS Controller 41 Chapter 3 BUS Controller...
Page 59: ...Flash MCU HMS39C7092 MCU controller 59 Chapter 4 MCU Controller...
Page 67: ...Flash MCU HMS39C7092 Power Management Unit 67 Chapter 5 Power Management Unit...
Page 77: ...Flash MCU HMS39C7092 Interrupt controller 77 Chapter 6 The Interrupt Controller...
Page 85: ...Flash MCU HMS39C7092 Watchdog Timer 85 Chapter 7 Watchdog Timer...
Page 98: ...Watchdog Timer Flash MCU HMS39C7092 98...
Page 99: ...Flash MCU HMS39C7092 General Purpose Timer 99 Chapter 8 The General Purpose Timer...
Page 118: ...General Purpose Timer Flash MCU HMS39C7092 118...
Page 119: ...Flash MCU HMS39C7092 UART 119 Chapter 9 UART Universal Asynchronous Receiver Transmitter...
Page 137: ...Flash MCU HMS39C7092 GPIO 137 Chapter 10 GPIO General Purpose Input Output...
Page 142: ...GPIO Flash MCU HMS39C7092 142...
Page 143: ...Flash MCU HMS39C7092 On Chip SRAM 143 Chapter 11 On Chip SRAM...
Page 145: ...Flash MCU HMS39C7092 On chip Flash memory 145 Chapter 12 On chip Flash Memory...
Page 173: ...Flash MCU HMS39C7092 A D Converter 173 Chapter 13 A D Converter...
Page 185: ...Flash MCU HMS39C7092 Electrical Characteristics 185...
Page 186: ...Electrical Characteristics Flash MCU HMS39C7092 186 Chapter 14 Electrical Characteristics...
Page 195: ...Flash MCU HMS39C7092 Electrical Characteristics 195...
Page 196: ...Electrical Characteristics Flash MCU HMS39C7092 196...
Page 197: ...A 1 Flash MCU HMS39C7092 197 A 1 Package Dimension...