Three-Phase/Port Output Switch Function - Renesas M16C/29 Series User Manual

Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M
1
6
C
2 /
9
G
o r
u
p

12.3.2 Three-phase/Port Output Switch Function

When the INVC03 bit in the INVC0 register set to 1 (Timer output enabled for three-phase motor control)
and setting the PFCi (i=0 to 5) in the PFCR register to 0 (I/O port), the three-phase PWM output pin (U, U,
__
___
V, V, W and W) functions as I/O port. Each bit of the PFCi bits (i=0 to 5) is applicable for each one of
three-phase PWM output pins. Figure 12.37 shows the example of three-phase/port output switch func-
tion. Figure 12.38 shows the PFCR register and the three-phase protect control register.
Timer B2
U phase
V Phase
W phase
Writing PFCR register
PFC0 bit: 1
PFC2 bit: 1
PFC4 bit: 0
Figure 12.37 Usage Example of Three-phse/Port Output Switch Function
R
e
. v
1
1 .
2
M
r a
3 .
, 0
2
0
0
7
R
E
J
0
9
B
0
1
0
1
0 -
1
1
2
Functions as port P7
page 138
f o
4
5
8
12. Timer (Three-phase Motor Control Timer Function)
4
Writing PFCR register
PFC0 bit: 1
PFC2 bit: 0
PFC4 bit: 1
Functions as port P7
2
__

Advertisement

Table of Contents
loading

Table of Contents