Lucent Technologies MN10285K Laptop User Manual


 
Timers
16-Bit Timer Setup Examples
MN102H75K/F75K/85K/F85K LSI User Manual Panasonic Semiconductor Development Company
117
Panasonic
4.11.8 Setting Up a One-Shot Pulse Output Using Timer 5
In this example, timer 5 outputs a one-shot pulse. The pulse width is two clock
cycles.
To set up the output port:
Set the P4MD2 bit of the port 4 output mode register (P4MD) to 1 (selecting the
TM5IOA pin) and set the P4DIR2 bit of the port 4 I/O control register (P4DIR)
to 1 (selecting output direction). This step selects the TM5OA pin (P42) as the
timer output port.
P4MD (example) x’00FFF8’
P2DIR (example) x’00FFE4’
A. Chip Level
B. Block Level
Figure 4-47 Block Diagram of One-Shot Pulse Output Using Timer 5
TM5OA
TM5IB
P3
P5
CORE
Interrupts
Timers 0-3
Timers 4-5
ROM, RAM
Bus Controller
Serial I/Fs
ADC
P2
P6
P4
up/down
TM5BC
Timer 5
TM5CA
TM5CB
B
OSC
/4
TM5IB
TQ
TQ
R
S
Q
TM5CAX
TM5CBX
TM5OA
Controller
Bit:76543210
P4
MD7
P4
MD6
P4
MD5
P4
MD4
P4
MD3
P4
MD2
P4
MD1
P4
MD0
Setting:00000100
Bit:76543210
P4
DIR7
P4
DIR6
P4
DIR5
P4
DIR4
P4
DIR3
P4
DIR2
P4
DIR1
P4
DIR0
Setting:00000100