Hello community!
First post :)
I am working on a project that will use the f28335 dsp. I am using it for 3 months now. I started learning the programming part by reading the pdf files and started doing some experiments writing code using Code composer studio 3.3. That went well, ADCs, ePWMs worked well, everything was OK, followed some examples (thanks TI for that) and read some posts in this forum.
After some tests in simulink I found out that the code generated by matlab was pretty much the same I used before and due to the complexity of the project and my expertise in simulink it was decided to use simulink to make the code for us. Till here everything works GREAT! (very happy user :)
To the problem:
When i use certain blocks from simulink (to be precise: simpowersystems - discrete mean value) the program runs fine until theblock stops working. Everything works great but that block gives "continuous" zero output after some time. To test just that I made a smal program in simulink that used the mean value of the ADC output signal to control a ePWM compare (A) value in order to change the duty cycle of the pwm signal. If you want to test it: transformed the output signal of the ADC unit to double precision -> Discrete Mean value -> uint16 -> CMPA of ePWM unit. epwm was set to count up to 4095, so no need to adjust the output level of ADC. This setup runs ok for about 3 minutes, then stops working without any change. To be sure that it was the Discreet Mean Value block i connected the adc output to another block (change the phase shift of 2 other ePWM units) and they dont stop working.
Also, i checked for control
bits change but (not that experienced user) didn’t noticed anything in the ADC
or ePWM control registers. More... If i reset the unit from CCS everything runs ok again for a period of time.
Is this normal? Am i doing anything wrong? Did i miss some control?
I am about to try this without simulation mode (the error occurs even if i dont refresh the CCS variables) but i'm still learning (starting tbh) how to flash program the dsp :)
Thank you very much for your time and I hope you can help me figuring out what is happening.