Panasonic Semiconductor Development Company
4.11.7 Setting Up a 1x Two-Phase Encoder Input Using Timer 5
In this example, timer 5 inputs a 1x two-phase encoded signal that makes it count
up and down. An interrupt occurs when the counter reaches a preset value.
P2
P6
TM5IA
P4
TM5IB
Timer 5
up/down
TM5IA
TM5IB
Figure 4-43 Block Diagram of 1x Two-Phase Capture Input Using Timer 5
Figure 4-44 Configuration Example 1 of 1x Two-Phase Capture Input Using
As figure 4-45 shows, you can set different values for A and B interrupts.
(TM5LP must be 0.)
0
x'1000'
A interrupt
Figure 4-45 Configuration Example 2 of 1x Two-Phase Capture Input Using
114
Panasonic
16-Bit Timer Setup Examples
CORE
ROM, RAM
Interrupts
Bus Controller
Timers 0-3
Serial I/Fs
Timers 4-5
ADC
A. Chip Level
TM5BC
Interrupt B
TM5CA
T
R
S
TM5CB
T
B. Block Level
TM5BC contents
0
x'1000'
x'1FFF'
Interrupt
Timer 5
x'FF00'
B interrupt
Timer 5
MN102H75K/F75K/85K/F85K LSI User Manual
Timers
P3
P5
Q
Q
Q
x'FFFF'