Some question about the MPC5643L Reference manual and driver for the MPC5643L dual motor control program

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Some question about the MPC5643L Reference manual and driver for the MPC5643L dual motor control program

437 Views
danieldu
Contributor II

Some question about the MPC5643L Reference manual and driver for the MPC5643L dual motor control program

一、About CTR0 RegisterPage154 of SPC5643L RM):

1SPC5643L_CTR0.jpg

How to understand the OFFSHIFT in this register? What's the meaning of setting up the two bit?

二、About the setting of ADC transiton time

1)In the configuration of the driver of the MPC5643L NXP dual motor control program, does the ADC sampling cycle pass Register MCR->ADCLKSEL to set up?

 2)The ADCLKSEL bit reference manual reads as follows:

SPC5643L_ADCLKSEL.jpg

Problem 1: if this bit is set to 1, then the AD clock frequency is equal to the motor's control clock frequency. The question is, is the motor clock frequency the PWM cycle?

Question two: is the AD CLK frequency mentioned above the ADC sampling cycle?

 三、The function void FOC_Fast_ISR(void

Void FOC Fast_ISR (void), that is, IRQ_206, that is, the interrupt trigger for ADC, the question: is the frequency triggered by this interrupt the ADC sampling cycle? If not, how do you set it up?

0 Kudos
Reply
0 Replies