Setting Up A One-Shot Pulse Output Using Timer 5; Block Diagram Of One-Shot Pulse Output Using Timer 5; Panasonic - Panasonic MN10285K User Manual

Panax series microcomputer
Table of Contents

Advertisement

Timers
16-Bit Timer Setup Examples
MN102H75K/F75K/85K/F85K LSI User Manual

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.
P2
P6
TM5OA
P4
TM5IB
Timer 5
B
/4
OSC
up/down
TM5IB
Figure 4-47 Block Diagram of One-Shot Pulse Output Using Timer 5
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)
Bit:
7
6
5
4
P4
P4
P4
P4
MD7
MD6
MD5
MD4
Setting:
0
0
0
0
P2DIR (example)
Bit:
7
6
5
4
P4
P4
P4
P4
DIR7
DIR6
DIR5
DIR4
Setting:
0
0
0
0
117

Panasonic

CORE
ROM, RAM
Interrupts
Bus Controller
Timers 0-3
Serial I/Fs
Timers 4-5
A. Chip Level
TM5BC
TM5CA
TM5CAX
TM5CB
TM5CBX
B. Block Level
3
2
1
0
P4
P4
P4
P4
MD3
MD2
MD1
MD0
0
1
0
0
3
2
1
0
P4
P4
P4
P4
DIR3
DIR2
DIR1
DIR0
0
1
0
0
Panasonic Semiconductor Development Company
P3
P5
ADC
T
Q
R
TM5OA
Q
S
T
Q
x'00FFF8'
x'00FFE4'

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn102f75kMn102f85kMn102h75kMn102h85k

Table of Contents