Fujitsu FR81S User Manual
CHAPTER 19: BASE TIMER
5. Operation
FUJITSU SEMICONDUCTOR LIMITED
CHAPTER
: BASE TIMER
FUJITSU SEMICONDUCTOR CONFIDENTIAL
85
Figure 5-25 Operation Flow
Start with CTEN bit of
BTxTMCR (CTEN=1)
BTxDTBF : Base timer x timer control register (BTxTMCR)
BTxSTC : Base timer x status control register (BTxSTC)
BTxDTBF: Base timer x data buffer register (BTxDTBF)
Measurement start edge detection
Measurement completion
Stop counting
edge detection
Select PWC mode
Select count clock
Select operation/
Va
rious
s
et
tings
Restart
Clear counter
Measurement start edge detection
Continuous measurement mode
Single measurement mode
Start counting
Start counting
Increment
Increment
Overflow caused
Change OVIR bit of
Overflow caused
Change OVIR bit of
Change EDIR bit of
Measurement completion
Change EDIR bit of
Stop counting
Transfer count value to BTxDTBF
Stop operation
BTxSTC to "1"
BTxSTC to "1"
BTxSTC to "1"
edge detection
BTxSTC to "1"
measurement modes
Clear interrupt request flag
Enable interrupts
MB91520 Series
MN705-00010-1v0-E
718