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.

CCS/TMS320F28027F: Boost PFC

Part Number: TMS320F28027F


Tool/software: Code Composer Studio

Hi,I am working with TMS320F28027F  for developing Interleaved Boost power factor correction circuit (IPFC) .I saw the control suite program for the Interleaved Boost Power factor Correction circuit.But most of it is in Assembly.I want to write my code in complete C language.So I made an attempt .The system frequency is 60 MHz. To run my code completely in C,it took 850 cycles.So (850/60=14 micro seconds) it is taking  14 us to run the code.But my switching frequency is 130 KHz (7.69 us). What should i do ?

I need to add 3 phase Buck converter code in the same code.

suggest me .

Thanks and regards

G.Siva Kumar.

  • It's going to be difficult to implement the control on F28027. It's likely you could improve the C performance by enabling the compiler optimizer. To do this, change the "--opt_level" setting in project options under "C2000 Compiler -> Optimization". However the hand coded assembly routines consume about 400 cycles so you will be taking about 87% of CPU bandwidth even if you achieve that.

    If you cannot compromise the sampling rate or control, I recommend moving to a more powerful device. The F28035 may help you as some of the control burden could be off-loaded to the CLA. Otherwise, you'll need a faster device such as F28069.

    Regards,

    Richard
  • Thank you Richard,
    Nice information.