Other Parts Discussed in Thread: CONTROLSUITE
Dear all,
currently in the frames of my student project I am working with F28335. We trying to create an active infeed converter to feed the energy in the power grid. Honestly I have very few experience in the programming of TI microcontrollers. The code which I have already created, is doing the following:
1. PWM module generates a SOC for ADC. ADC reads the values of currents and voltages in the power grid.
2. In the end of ADC conversation the microcontroller generates an interrupt.
3. In the interrupt I use the Clark transformation from "Solar library"
4 Futher, I have to implement PLL, since I need Theta for Pakr transformation. But I do not understand, how the SPLL_3ph_SRF_IQ_H_module works. Could somebody explain it more in detail, than in the documentation of Solar library.
Q: Is it normal that I am going to implement call PLL inside of main interrupt?
Q: What does mean this prase from Solar Libruary documentation: "the inverter ISR period value and the address of the pll object. Ensure that the ISR is running at a minimum frequency of 20KHz." If I undertood right, I have to call PLL function with the frequency higer than 20KHz but my PWM freqeunce is 4kHz and in the end of each interrupt I fill out PWM compare register for next PWM period. Moreover I'm reading the ADC values with frequency 4kHz as well. Should I organize PLL in the other interrupt, and call it with a higher frequency?
Q: Could somebody show me the code with implemented SPLL_3ph_SRF_IQ_H_. Unfortunatly in the project, provided by Mr. Choudhury "0083.ThreePhasePFC_Code.rar" I did'n fild PLL module.
I will be very grateful if somebody helps me.
Regards,
Illia