Other Parts Discussed in Thread: CONTROLSUITE
Tool/software: Code Composer Studio
In the SolarExplorer project from ControlSuite I want to move SineAnalyzer ans SPLL to CLA. I got two issues.
1) I configure the CLA but when I want to read the data, that is output voltage feedback of the inverter from the ADC it is presented in a weird way.
When I read data from ADC as Uint16, as it is declared in the program I get the correctly sinusoidal wave:
When I try to log it as the float32, and that is what is necessary from the SineAnalyzerCLA I get the weird sinusoidal, that after a couple of samples is shifted and looks like it is mirrored of the average value?
I log the values, by saving them in matrix and save from the memory to .dat and then plot it with excel. I hope the metodology is correct.
2) Another problem I have with the SPLL with CLA. Can I as the input of the SPLL block put the raw ADC data from output voltage feedback? I try also to normalized it but it doesn;t help. The porblem is that I have some weird values sometimes in theta like 2.1e+38 or the same values in the u_Q or u_D component, depend on what values of b0 and b1 I write. ( I use: b0=166.7972 and b1=-166.4431 or b0=222.4750 and b1=-221.8455, from SPLL_coef excel for 40kHz interrupt and respectivly 0.04ms or 0.03ms settling ratio)