Hi,
I want to implement PR control for three phase and single phase grid connected inverter.
So is there any example code or guide line to implement this??
Thanks and regards,
Himanshu
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I want to implement PR control for three phase and single phase grid connected inverter.
So is there any example code or guide line to implement this??
Thanks and regards,
Himanshu
You can use the 2p2z structure itself,
C:\ti\controlSUITE\libs\app_libs\SFRA\v1_10_00_00\Doc
Look at the documentation above, instead of the PI or 2p2z controller use the analog form of PR and substitute the values using tustin transform.
And you will get the coefficients for the 2p2z module which is available in solar library
PS: We will have a very flexible module available for the same in October'15 , however because of policy I cannot share the code through the forum.
1. Which device are you using ?
2. What is you metric of measuring 8usec ? i.e. GPIO toggle ?
3. Have you made sure you are running the CPU at the right speed?
Himanshu,
For most control application this library is good.
One more thing you can do to improve the performance further is link in the library into RAM memory, you can do this by the following directive in the cmd file for the ramfuncs..
ramfuncs : LOAD = FLASHD,
RUN = RAMLS0LS1LS2LS3LS4,
LOAD_START(_RamfuncsLoadStart),
LOAD_SIZE(_RamfuncsLoadSize),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart),
RUN_SIZE(_RamfuncsRunSize),
RUN_END(_RamfuncsRunEnd),
PAGE = 0, ALIGN(4)
{
--library=SFRA_F_Lib.lib<SFRA_F_INJECT.obj>
--library=SFRA_F_Lib.lib<SFRA_F_COLLECT.obj>
--library=Solar_Lib_Float.lib
--library=rts2800_fpu32_fast_supplement.lib<sqrt_f32.obj>
--library=rts2800_fpu32_fast_supplement.lib<atan2_f32.obj>
}
Himanshu,
F2811 is a fixed point processor, you need to use IQmath lib for best performance on fixed point processor.
C:\ti\controlSUITE\libs\math\IQmath
ALIGN(4), you may not have to worry about this alignment is needed when running some specific assembly instructions that we use in our DSP Lib. You can ignore the directive for most use cases. It basically forces the instructions to be stored starting at 4 word boundary. Refer to the compiler guide for details