![Renesas rl78/g1g Скачать руководство пользователя страница 22](http://html1.mh-extra.com/html/renesas/rl78-g1g/rl78-g1g_user-manual_1440448022.webp)
RL78/G1G Sensorless Speed control of 120-degree conducting controlled permanent magnetic synchronous motor (Implementation)
R01AN3582EJ0100 Rev.1.00
Page 22 of 46
Jan 13, 2017
3.2
Function specifications of 120-degree conducting control software
Multiple control functions are used in this control program. However, functions which are not used in this system are
undescribed.
Table 3-7 List of Functions
“main.c”
File name
Function name
Process overview
main.c
main
Input: None
Output: None
- Hardware initialization function call
- User interface initialization function call
- Initialization function call of the variables used in the
main process
- Waiting for stability of the bus voltage function call
- Status transition and event execution function call
- Main process
User interface call
Watchdog timer clear function call
board_ui
Input: None
Output: None
- Motor status change
- Determination of rotational speed command value
software_init
Input: None
Output: None
Initialization of variables used in the main process
Table 3-8 List of Functions
“mtr_ctrl_mrssk.c”
File name
Function name
Process overview
mtr_ctrl_mrssk.c
R_MTR_ChargeCapacitor
Input: None
Output: None
Wait for stability of the bus voltage
get_vr1
Input: None
Output: (uint16) u2_ad_data / A/D conversion result
VR1 status acquisition
get_sw1
Input: None
Output: (uint8) u1_temp / SW1 level
SW1 status acquisition
get_sw2
Input: None
Output: (uint8) u1_temp / SW2 level
SW2 status acquisition
led1_on
Input: None
Output: None
Turning LED1 ON
led2_on
Input: None
Output: None
Turning LED2 ON
led1_off
Input: None
Output: None
Turning LED1 OFF
led2_off
Input: None
Output: None
Turning LED2 OFF