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/TMS320F28027: Guide me through how to use piccolo micro controller I'm very new to this

Part Number: TMS320F28027
Other Parts Discussed in Thread: BOOSTXL-BUCKCONV, CONTROLSUITE

Tool/software: Code Composer Studio

Hi,

       I'm very new to the use of a TI Piccolo microcontroller, I'm using it to drive one of the Mosfet which is used in a converter circuit of a battery charging. I'm struggling to find a way to do this, I have downloaded code composer studio as I'm new to this facing difficult to use it. Also, I don't know how to program this microcontroller to drive the MOSFET's through PWM  and measure the various current and voltage value across a converter circuit through ADC pin. Any reference link and guide will be very helpful for me,

Thanks.

  • Nikhil,

    To learn about the F28027 device, you might want to start by running the lab exercises in the F28027 one-day workshop:

    processors.wiki.ti.com/.../C2000_Archived_Workshops

    Run the Piccolo One-Day Workshop Installer to set up the workshop files. This workshop was developed with an obsolete kit (controlSTICK) and you are most likely using the F28027 LaunchPad. Additionally, this workshop was developed with CCSv4. However, using a newer version of CCS will work but the lab directions may need to be slightly modified.

    In the workshop an LED is toggled as a visual indicator. The LED is connected to a different GPIO pin on the LaunchPad (compared to the controlSTICK). You will need to make a minor modification to the code to have the LED blink. To use GPIO1 to blink the LED, please make the following changes to the Lab 3 and 4 files:

    In Gpio.c modify the following two lines at the bottom of the file (note GPA for group A, so change ...GPB... to ...GPA...):

    //--- Selected pin configurations
    GpioCtrlRegs.GPADIR.bit.GPIO1 = 1;
    GpioDataRegs.GPASET.bit.GPIO1 = 1;

    Next, in DefaultIsr_3_4 modify the following code lines in the ADC_INT1 ISR at line 168 :

    static volatile Uint16 GPIO1_count = 0; // Counter for pin toggle

    And the following code lines starting at line 193 (again note ...GPA... and not ...GPB...):

    if(GPIO1_count++ > 25000) // Toggle slowly to see the LED blink
    {
    GpioDataRegs.GPATOGGLE.bit.GPIO1 = 1; // Toggle the pin
    GPIO1_count = 0; // Reset the counter
    }

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken
  • Thank you for replying it helped me to get start with this MC, can you guide me throught to How to program to drive mosfets of buck and boost in converter circuit at 200Khz also How can I program to measure input current, output current, input voltage, output voltage of the converter circuit through diffeereent ADC pins?
  • Nikhil,

    This is a good starting point

    www.ti.com/.../BOOSTXL-BUCKCONV

    Also on the same page Ken pointed to you , we have a 1 day workshop material that steps you through some of the aspects you are looking at.

    processors.wiki.ti.com/.../C2000_Archived_Workshops
  • Also, if you are starting to learn and there is no business reason to use F28027 ,

    I will recommend using the latest F2804x or F2807x type of platform to learn. The archived workshop does not use this new device, so you should use that one only for the F2803x/2x training.

    You can refer to the BOOSTXL-BUCKCONV to understand digital power code on the new devices such as F2807x and F28069 etc.
  • Help me with the code, where can I foun dthe code for this?
  • 1 day workshop material that steps you through some of the aspects you are looking at.

    processors.wiki.ti.com/.../C2000_Archived_Workshops

    download all the zips, one of them is the lab files, other is solution files, there are all "code" that you need for the workshop.

    BOOSTXL-BUCKCONV

    is in controlSUITE
    C:\ti\controlSUITE\development_kits\BOOSTXL_BUCKCONV\v1_01_00_00
    you will need to download that from ti website

    just search..
  • Nikhil,

    I understand i have provided an appropriate answer to your question and have not heard back for more than 2 weeks.

    I will have to close this thread, please post any further questions on a new thread.

    if you strongly feel the above did not help, please clarify.

    -Manish