Cannot Validate Phase Locked Loop on F28069M Launchpad
古いコメントを表示
Hello everyone,
Currently Im testing my power electronics generated code. In order to assess it, Im breaking the model and testing part by part. Now Im testing the PLL, so in order to test it, I generate the code for the PLL embedded on a 30KHz ADC interrupt. Inside the interrupt, I process the PLL and send the data through UART and catch the data on another simulink model and display it on a scope.
The PLL model has been simulated on simulink with expected results, however once I generate the code and deploy into the MCU, it doesnt match the simulation. Im attaching the model for reference.
Any help will be appreciated.
Thanks,
Rolando
4 件のコメント
Joel Van Sickel
2020 年 6 月 16 日
Hello Rolando,
I can't easily see something wrong with the code, but here are a few things to consider.
1, are you sure the PLL is running at the rate you want it to run at?
2: if you are using the support package, you don't need to explicitly use the uart to capture data, you can connect simulink directly to the controller.
3: there will be noise on the ADC, could the noise explain what you are seeing.
4: can you take the data captured by the adc and stream it into your simulink model to see if you are getting the data that you thyink you are?
Regards,
Joel
Rolando Aguilera
2020 年 6 月 17 日
Hello Joel,
Thanks for the help, regarding your questions:
- Yes PLL is triggered at 30KHz, same as PWM frequency.
- Yes, I have tried External Mode, but the data seen on the scope is corrupted due to the high speed of the interrupt, hence using UART module.
- Im not reading any ADC channel instead, Im using a Look up table with a counter to simulate ideal ADC conditions after scaling
- I can try that, but If you see the model Im simulating it with a Look up table (in order to have ideal sine inputs)
One note is that the clarke transform performs well (I have sent the data through UART and the scope displays the correct waveform). Other thing that I have notice from debugging in CCS is that the arctan is not computed correctly and still figuring out why. If you have any additional suggestions, let me know.
Thanks,
Rolando
Rolando Aguilera
2020 年 6 月 17 日
Spoorti Pattanashetti
2024 年 5 月 23 日
it is showing errors that input and output ports not connected
can you please provide a complete simulink model
thank you.
回答 (0 件)
コミュニティ
その他の回答 パワー エレクトロニクス コミュニティ
カテゴリ
ヘルプ センター および File Exchange で Texas Instruments C2000 Processors についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!