R01UH0092EJ0110 Rev.1.10
Page 342 of 807
Jul 31, 2012
M16C/64C Group
19. Three-Phase Motor Control Timer Function
19.2.10 Port Function Control Register (PFCR)
This register is enabled only when the INV03 bit in the INVC0 register is set to 1 (three-phase motor
control timer output enabled). Set the TPRC0 bit in the TPRC register to 1 (write enabled) before
rewriting this register.
19.2.11 Three-Phase Protect Control Register (TPRC)
Once the TPRC0 bit is set to 1 (write enabled) by a program, the set value 1 is retained. To change the
register protected by this bit, follow these steps:
(1) Set the TPRC0 bit to 1.
(2) Set a value to the PFCR register.
(3) Set the TPRC0 bit to 0 (write disabled).
b7 b6 b5 b4
b1
b2
b3
Symbol
PFCR
Address
0318h
Reset Value
0011 1111b
b0
Function
Bit Symbol
Bit Name
RW
—
(b7-b6)
RW
—
PFC3
Port P8_1 output function
select bit
Port Function Control Register
PFC1
RW
0: I/O port P8_0
1: Three-phase PWM output (U-phase
output)
Port P8_0 output function
select bit
PFC0
RW
0: I/O port P7_3
1: Three-phase PWM output (V-phase
output)
Port P7_3 output function
select bit
No register bits. If necessary, set to 0. The read value is 0.
RW
PFC2
0: I/O port P7_2
1: Three-phase PWM output (V-phase
output)
Port P7_2 output function
select bit
0: I/O port P8_1
1: Three-phase PWM output (U-phase
output)
RW
PFC5
0: I/O port P7_5
1: Three-phase PWM output (W-phase
output)
Port P7_5 output function
select bit
RW
PFC4
0: I/O port P7_4
1: Three-phase PWM output (W-phase
output)
Port P7_4 output function
select bit
b7 b6 b5 b4
b1
b2
b3
Symbol
TPRC
Address
01DAh
Reset Value
00h
b0
Function
Bit Symbol
Bit Name
RW
—
—
(b7-b1)
Three-Phase Protect Control Register
Enable write to the PFCR register
0: Write disabled
1: Write enabled
Three-phase protect control
bit
TPRC0
RW
No register bits. If necessary, set to 0. The read value is 0.
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...