Count Direction For 1X Two-Phase Encoder Timing Example; X Two-Phase Encoder Input Timing (Timer 5) - Panasonic MN10285K User Manual

Panax series microcomputer
Table of Contents

Advertisement

Panasonic Semiconductor Development Company
To service the interrupts:
Run the interrupt service routine. The routine must determine the interrupt group,
then clear the interrupt request flag.
Timer 5 can input a two-phase encoder signal. Timer 5 does not operate in STOP
mode, when B
is off. If you use an external clock, it must be synchronized to
OSC
B
.
OSC
Table 4-5 shows the count direction for the timing diagram in figure 4-46. In
down counting, when the binary counter reaches 0, it loops to the value in
TM5CA. An interrupt B occurs when the contents of TM5BC match those of
TM5CB.
Table 4-5 Count Direction for 1x Two-Phase Encoder Timing Example
TM5IA
TM5IB
TM5CA
TM5CB
0000
1FFF
1FFE
TM5BC
TM5IA
TM5IB
A
Interrupts
Figure 4-46 1x Two-Phase Encoder Input Timing (Timer 5)
116
Panasonic
16-Bit Timer Setup Examples
Up Counting
Down Counting
1
1FFF
1000
1FFD
1FFE
1FFF
0000
A
MN102H75K/F75K/85K/F85K LSI User Manual
Timers
1
0001
0FFF
1000
1001
B

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn102f75kMn102f85kMn102h75kMn102h85k

Table of Contents