Panasonic F77G User Manual page 296

Microcomputer mn101c series
Table of Contents

Advertisement

Chapter 7 16-bit Timer
In the initial state after releasing the reset, the generation of trigger by the external interrupt
signal is disabled. Set the T7ICEN flag of the TM7MD2 register to "1" to enable the trigger
generation.
Capture Operation that the writing to program is selected as a Trigger (Timer 7)
A capture trigger can be generated by writing an arbitrary value to the input capture register (TM7IC),
and at the same timing, the value of the binary counter can be stored to the input capture register.
Count
clock
TMnEN
flag
Compare
register
Binary
counter
System
clock
Capture trigger
(Synchronous to
writing signal)
Capture
register
A capture trigger is generated at the writing signal to the input capture register. The writing signal is
generated at the last cycle of the writing instruction. At this timing, the value of the binary counter is
stored to the input capture register. That value is decided by the value of the binary counter at the
falling edge of the capture trigger. The other timing is same to the timer operation.
The writing to the input capture register to generate a capture trigger should be done with a 8-
bit access instruction to the TM7ICL register or the TM7ICH register.
At this time, data is not actually written to the TM7IC register.
On hardware, there is no flag to disable the capture operation with the writing operation to the
software as a trigger. Capture operation is enabled, regardless of the T7ICEN flag of the
TM7MD2 register.
VII - 36
16-bit Timer Capture
N
0000 0001
0111 0112
0000
Figure 7-9-2
with a Writing Signal to Program as a Trigger (Timer 7)
N
0113 0114
5555 5556
0114
Capture Count Timing
5557 5558
N-1
N
5558

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Panaxseries mn101c77cPanaxseries mn101f77g

Table of Contents