Renesas RA6T2 Application Note page 44

Sensorless vector control for permanent magnetic synchronous motor - 1shunt current detection
Hide thumbs Also See for RA6T2:
Table of Contents

Advertisement

Sensorless vector control for permanent magnetic
synchronous motor - 1shunt current detection
Table 3-8 List of Functions Executed in Current Control Period Interrupt (2/4)
File name
rm_motor_driver.c
rm_motor_current.c
R01AN6840EJ0100 Rev.1.00
May 23, 2023
Function name
rm_motor_driver_1shunt_modulation
Input : (motor_driver_instance_ctrl_t *) p_ctrl / The pointer to the motor
driver module instance
Output :None
rm_motor_driver_mod_run
Input : (motor_driver_instance_ctrl_t *) p_ctrl / Pointer to Motor Driver
instance
(const float *) p_f4_v_in / Pointer to the 3-phase input voltage
(float *) p_f4_duty_out / Where to store the 3-phase output duty cycle
Output :None
rm_motor_driver_set_uvw_duty
Input : (motor_driver_instance_ctrl_t *) p_ctrl / Pointer to Motor Driver
instance
(float) f_duty_u / The duty cycle of Phase-U
(float) f_duty_v / The duty cycle of Phase-V
(float) f_duty_w / The duty cycle of Phase-W
Output : fsp_err_t / Execution result
RM_MOTOR_DRIVER_CurrentGet
Input : (motor_driver_ctrl_t * const) p_ctrl / Pointer to control structure
(motor_driver_current_get_t * const) p_current_get / Pointer to get
data structure
Output : fsp_err_t / Execution result
rm_motor_current_cyclic
Input : (motor_driver_callback_args_t *) p_args
/ Callback argument
Output :None
RM_MOTOR_CURRENT_ParameterSet
Input : (motor_current_ctrl_t * const) p_ctrl / Pointer to control structure
(motor_current_input_t const * const) p_st_input / Pointer to input data
structure
Output : fsp_err_t / Execution result
RM_MOTOR_CURRENT_CurrentSet
Input : (motor_current_ctrl_t * const) p_ctrl / Pointer to control structure
(motor_current_input_current_t const * const) p_st_current / Pointer to
input current structure
(motor_current_input_voltage_t const * const) p_st_voltage / Pointer to
input voltage structure
Output : fsp_err_t / Execution result
RM_MOTOR_CURRENT_CurrentGet
Input : (motor_current_ctrl_t * const) p_ctrl / Pointer to control structure
(float * const) p_id / Pointer to get d-axis current
(float * const) p_iq / Pointer to get q-axis current
Output : fsp_err_t / Execution result
motor_current_transform_uvw_dq_abs
Input : (const float) f_angle / rotor angle
(const float *) f_uvw / the pointer to the UVW-phase array in [U,V,W]
format
(float *) f_dq / where to store the [d,q] formated array on dq
coordinates
Output :None
For Renesas Flexible Motor Control Series
Process overview
Perform PWM
modulation (included
duty pattern judgement)
Calculates duty cycle
from input 3-phase
voltage (bipolar)
PWM duty setting
Get calculated phase
Current, Vdc & Va_max
data
Current control cycle
operation
Set (Input) Parameter
Data.
Set d/q-axis Current &
Voltage Data.
Get d/q-axis Current.
Coordinate transform
UVW to dq (absolute
transform)
Page 44 of 73

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ra6t3Ra4t1

Table of Contents