RL78/G1G Sensorless Speed control of 120-degree conducting controlled permanent magnetic synchronous motor (Implementation)
R01AN3582EJ0100 Rev.1.00
Page 9 of 46
Jan 13, 2017
2.2.2 Peripheral functions
Table 2-3 is a list of peripheral functions used in this system.
Table 2-3 List of Peripheral Functions
Peripheral Function
Purpose
10bit A/D converter
- Rotational speed command value input
- Inverter bus voltage measurement
- Voltage of each phase U, V, and W measurement
Timer Array Unit (TAU)
- 1 [ms] interval timer
- Free-running timer for rotational speed measurement
Timer RD (TRD)
Complementary PWM output
Comparator0 (CMP0)
Overcurrent detection
(Note)
Comparator1 (CMP1)
Overcurrent detection
(Note)
Programmable Gain Amp (PGA)
Overcurrent detection
(Note)
External Interrupt (INTP0)
Overcurrent detection
(Note)
Note: INTP0 and “PGA+CMP0, CMP1” are used exclusive. (These are selectable by compile option.)
(1) 10-bit A/D converter
The rotational speed command value input, U phase voltage (Vu), V phase voltage (Vv), W phase voltage (Vw),
and inverter bus voltage (Vdc) are measured by using the ‘10-bit A/D converter’.
The operation mode is set as below.
The channel selection mode: the select-mode.
The conversion operation mode: the one-shot conversion mode.
And software trigger is used.
(2) Timer Array Unit (TAU)
a. 1 [ms] interval timer
The channel 0 of Timer Array Unit (TAU) is used as 1 millisecond interval timer.
b. Free-running timer for measuring speed
The channel 1 of Timer Array Unit (TAU) is used as free-running timer for speed measurement.
Note that interrupt is not used.
(3) Timer RD (TRD)
Three-phase PWM output of chopping at the first 60 degrees with dead time (complementary) or without dead time
(non-complementary) is performed using the Complementary PWM Mode. When detecting an overcurrent, the PWM
output ports are set to high impedance output using the pulse output forced cutoff function.
(4) Comparator0 (CMP0)
CMP0 is used to detect overcurrent with PGA (detect falling edge) (when selected).
(5) Comparator1 (CMP1)
CMP1 is used to detect overcurrent with PGA (detect rising edge) (when selected).