Lucent Technologies MN10285K Laptop User Manual


 
Timers
16-Bit Timer Setup Examples
Panasonic Semiconductor Development Company MN102H75K/F75K/85K/F85K LSI User Manual
114
Panasonic
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.
As figure 4-45 shows, you can set different values for A and B interrupts.
(TM5LP must be 0.)
A. Chip Level
B. Block Level
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
Timer 5
Figure 4-45 Configuration Example 2 of 1x Two-Phase Capture Input Using
Timer 5
TM5IA
TM5IB
P3
P5
CORE
Interrupts
Timers 0-3
Timers 4-5
ROM, RAM
Bus Controller
Serial I/Fs
ADC
P2
P6
P4
up/down
Interrupt B
TM5BC
Timer 5
TM5CA
TM5CB
TM5IA
TM5IB
TQ
TQ
R
S
Q
Controller
TM5BC contents
x'1000'
Interrupt
0 x'1FFF'
x'1000'
A interrupt
0 x'FFFF'x'FF00'
B interrupt