107
CHAPTER 6 16-BIT TIMER 0 TM0
Preliminary User’s Manual U14581EJ3V0UM00
(3) Prescaler mode register (PRM0)
This register is used to set TM0 count clock and valid edge of TI00 to TI02 input.
PRM0 is set with an 8-bit memory manipulation instruction.
RESET input clears PRM0 to 00H.
Figure 6-4. Prescaler Mode Register (PRM0) Format
Address: FF70H After Reset: 00H R/W
Symbol
7
6
5
4
3
2
1
0
PRM0
ES21
ES20
ES11
ES10
ES01
ES00
PRM01
PRM00
ESn1
ESn0
TI0n Valid Edge Selection
0
0
Falling edge
0
1
Rising edge
1
0
Setting prohibited
1
1
Both falling and rising edges
PRM01
PRM00
Count Clock Selection
0
0
f
X
/2
3
0
1
f
X
/2
4
1
0
f
X
/2
5
1
1
f
X
/2
6
Caution
Timer operation must be stopped before setting PRM0.
Remarks 1. f
X
: Main system clock oscillation frequency.
2. n = 0 to 2
(4) Port mode register 4 (PM4)
This register sets port 4 to the input or output mode in 1-bit units.
To use the P40/TI00 to P42/TI02 pins as timer input pins, set PM40 to PM42 to 1. PM4 is set with a 1-bit or
8-bit memory manipulation instruction.
RESET input sets PM4 to FFH.
Figure 6-5. Port Mode Register 4 (PM4) Format
Address: FF24H After Reset: FFH R/W
Symbol
7
6
5
4
3
2
1
0
PM4
1
1
1
PM44
PM43
PM42
PM41
PM40
PM4n
P4n Pin I/O Mode Selection (n = 0 to 4)
0
Output mode (output buffer on)
1
Input mode (output buffer off)
Summary of Contents for mPD780851
Page 2: ...2 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 8: ...8 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 12: ...12 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 26: ...26 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 46: ...46 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 74: ...74 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 90: ...90 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 100: ...100 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 136: ...136 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 142: ...142 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 186: ...186 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 222: ...222 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 230: ...230 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 240: ...240 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 262: ...262 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 296: ...296 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 304: ...304 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 314: ...314 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...