English
Language : 

M16C65 Datasheet, PDF (416/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
19. Three-Phase Motor Control Timer Function
19.3.1.7 Three-Phase PWM Output Pin Select
Pins U, U, V, V, W, and W output the three-phase PWM waveform when the PFCi bit (i = 0 to 5) in the
PFCR register is 1 (three-phase PWM output). When the PFCi bit is 0 (I/O port), these pins are used
as I/O ports (or other peripheral function I/O ports). Therefore, while some of the six pins output the
three-phase PWM waveform, the other pins can be used as I/O ports (or other peripheral function I/O
ports).
The PFCR register can be rewritten when the TPRC0 bit in the TPRC register is 1 (write to the PFCR
register enabled). The functions of the three-phase PWM waveform output pins are protected from
being rewritten due to an unexpected program operation. To prevent rewrite, follow these steps:
(1) Set the TPRC0 bit to 1.
(2) Rewrite the PFCR register.
(3) Set the TPRC0 bit to 0 (write to the PFCR register disabled).
Figure 19.4 shows Usage Example of Three-Phase Output and I/O Port Switch Function.
Timer B2
U-pin output
V-pin output
W-pin output
Functions as a port
Functions as a port
Write to the PFCR register
PFC0 bit = 1
PFC2 bit = 1
PFC4 bit = 0
Write to the PFCR register
PFC0 bit = 1
PFC2 bit = 0
PFC4 bit = 1
The above applies under the following conditions.
y The output data of the ports which share a pin with pins V and W respectively are both 0 (low-level).
y The direction bits of the ports which share a pin with pins V and W respectively are both 1 (output mode).
Figure 19.4 Usage Example of Three-Phase Output and I/O Port Switch Function
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 381 of 791