192
CHAPTER 10 PWC (Pulse Width Count: Pulse Width Measurement)
10.4
Operation Explanation
PWC has the measurement input pin, 8-bit input division, and so on. PWC has also the
pulse width count function. Three types of count clocks can be selected. The following
describes the basic functions/operations of the pulse width count.
●
Pulse width measurement function
Enable to measure the time/cycle between any events of input pulse by the counter.
After starting, counting will not be performed until the defined measurement start edge is inputted. Start
incremental counting after the counter which detects a start edge is cleared to "0000
H
". Stop the counting
when a stop edge is detected. The value counted in this period is stored in the register as the pulse width.
Generate an interrupt requests when the measurement ends and an overflow occurs.
Operates as follows depending on the measurement mode after the measurement end.
•In single measurement mode: Stop operation.
•In continuous measurement mode: After transferred a counter value to the buffer register, stop the
counting until the measurement start edge is inputted again.
Figure 10.4-1 Pulse Width Measurement Operation
(Single Measurement Mode / "H" Width Measurement)
Figure 10.4-2 Pulse Width Measurement Operation
(Continuous Measurement Mode / "H" Width Measurement)
Time
FFFF
H
0000
H
Co
u
nt v
a
l
u
e
S
t
a
rt
me
asu
rement
Co
u
nt
s
top
PWC inp
u
t
me
asu
red p
u
l
s
e
Co
u
nt cle
a
r
Co
u
nt
s
t
a
rt
(
S
olid line i
s
co
u
nt v
a
l
u
e)
EDIR fl
a
g
s
et (me
asu
rement end)
Time
Co
u
nt
s
top
Overflow
OVIR fl
a
g
s
et
Co
u
nt
s
t
a
rt
Co
u
nt cle
a
r
EDIR fl
a
g
s
et
(
S
olid line i
s
co
u
nt v
a
l
u
e)
FFFF
H
0000
H
Co
u
nt v
a
l
u
e
S
t
a
rt
me
asu
rement
Co
u
nt
s
top
PWC inp
u
t
me
asu
red p
u
l
s
e
Co
u
nt cle
a
r
Co
u
nt
s
t
a
rt
EDIR fl
a
g
s
et (me
asu
rement end)
Tr
a
n
s
fer d
a
t
a
to PWCR
Tr
a
n
s
fer d
a
t
a
to PWCR
Summary of Contents for FR60Lite
Page 3: ......
Page 5: ......
Page 115: ...100 CHAPTER 3 CPU AND CONTROL UNITS ...
Page 127: ...112 CHAPTER 4 I O PORTS ...
Page 143: ...128 CHAPTER 5 INTERRUPT CONTROLLER ...
Page 155: ...140 CHAPTER 6 EXTERNAL INTERRUPT AND NMI CONTROLLER ...
Page 197: ...182 CHAPTER 9 PPG Programmable Pulse Generator ...
Page 337: ...322 CHAPTER 13 UART ...
Page 417: ...402 CHAPTER 16 DMAC DMA Controller ...
Page 445: ...430 CHAPTER 17 FLASH MEMORY ...
Page 451: ...436 CHAPTER 18 SERIAL PROGRAMMING CONNECTION ...
Page 493: ...478 APPENDIX F Precautions on Handling ...
Page 494: ...479 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 507: ...492 INDEX ...
Page 509: ......