Datasheet
78K0/Kx2-L CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51
R01UH0028EJ0400 Rev.4.00 324
Sep 27, 2010
(3) Port alternate switch control register (MUXSEL) (78K0/KA2-L (25-pin) only)
MUXSEL of 78K0/KA2-L (25-pin products) assigns TOH1, TI51, TI000, and INTP0 pins. By default, INTP0 and TI000
are assigned to P00, while TI51 and TOH1 have no assignment setting.
This register can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears MUXSEL to 00H.
Figure 7-11. Format of Port Alternate Switch Control Register (MUXSEL)
Address: FF39H After reset: 00H R/W
Symbol 7 6 5 4 3 2 1 0
MUXSEL 0 INTP0SEL0 0 TM00SEL0 TM5SEL1 TM5SEL0 TMHSEL1 TMHSEL0
TM5SEL1 TM5SEL0 8-bit timer 51 input (TI51) pin function assignment
0 0 No TI51 function assignment.
0 1 Assign TI51 to the P34 pin as the alternate function.
1 0 Assign TI51 to the P00 pin as the alternate function.
1 1 Setting prohibited
(4) Port mode registers 0, 1, 3 (PM0, PM1, PM3)
These registers set port 0, 1, and 3 input/output in 1-bit units.
PM0, PM1, and PM3 can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets these registers to FFH.
• 78K0/KY2-L, 78K0/KA2-L (20-pin products)
When using the P30/TI51/TOH1/INTP1 pin for timer input, set PM30 to 1.
The output latches of P30 at this time may
be 0 or 1.
• 78K0/KA2-L (25-pin products)
When using the P34/TI51/TOH1/INTP4 pin for timer input, set PM34 to 1.
The output latches of P34 at this time may
be 0 or 1.
When using the P00/TI51/TOH1/INTP0/TI000 pin for timer input, set PM00 to 1.
The output latches of P00 at this
time may be 0 or 1.
• 78K0/KB2-L, 78K0/KC2-L
When using the P17/TO50/TI50 and P33/TO51/TI51/INTP4 pins for timer output, clear PM17 and PM33 and the
output latches of P17 and P33 to 0.
When using the P17/TO50/TI50 and P33/TO51/TI51/INTP4 pins for timer input, set PM17 and PM33 to 1.
The output
latches of P17 and P33 at this time may be 0 or 1.
<R>
<R>