R01UH0092EJ0110 Rev.1.10
Page 358 of 807
Jul 31, 2012
M16C/64C Group
19. Three-Phase Motor Control Timer Function
19.3.3.1
INV13 Bit in the INVC1 Register
In three-phase mode 1, the INV13 bit can be used to detect whether the cycle of the carrier wave is
the first half or the last half. The INV13 bit is a flag which checks the state of timer A1 reload control
signals. The timer A1 reload control signal becomes 0 while timer A1 is stopped, and the value is
inverted at every start trigger signal for timers A1, A2, and A4. Thus, if the cycle of the carrier wave
starts at the first timer B2 underflow, the first half comes when the INV13 bit is 1, and the last half
comes when it is 0. Table 19.15 lists Relations of the INV13 Bit with Other Factors.
Table 19.15
Relations of the INV13 Bit with Other Factors
INV13 bit
1
0
Timer A1 reload control signal
One-shot pulse count value
TAi1 register value
TAi register value
Timer B2 underflow
At an odd number of times
At an even number of times
Carrier wave
First half
Last half
i = 1, 2, 4
Summary of Contents for M16C Series
Page 846: ...M16C 64C Group R01UH0092EJ0110...