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.

I am new to MC from Texas instruments, I want to know how to program it , How many pins , how to enable it , how to control a BLDC

Other Parts Discussed in Thread: TMS320F2812, LAUNCHXL-F28069M, DRV8301, BOOSTXL-DRV8301, MOTORWARE, CONTROLSUITE

Can someone give me a description of the Pins in the TMS320F2812 MC, how to enable it , how to disable it , what are the input pins , what are the output pins , how to write a program for BLDC. I have been going through wiki but so much of data that it makes me confused. I sent a mail to TI customer support and they said they do not help students.

Thanks 

Sudhansu

  • Sudhansu,

                Have you looked at the device datasheet? Read the User Guides? Run the example code from DSP28xx header files? Looked at the excellent training material on the TI website? You need to do all this and then come asking for help in specific areas that you are unable to understand. Your questions are way too open-ended/general in nature. The forum is meant to help with very specific questions that are either not addressed or are unclear in our documentation.

  • Hi Sudhansu,

    A few thoughts:

    1. For a person new to C2000, I might recommend starting your journey with a F2803x or F2806x device.  These are a bit newer devices and both have more software/documentation that is readily available to help you drive a BLDC motor.
    2. We offer several development gets that may allow you to quickly get started evaluating the C2000 series of devices.
      1. a low-voltage BLDC motor (<50V), I might recommend starting with a hardware setup like the following:
        F28069M launchPAD (LAUNCHXL-F28069M) + a DRV8301 boosterPACK (BOOSTXL-DRV8301)
        Software is available within motorWARE for running this kit
      2. For a high-voltage BLDC (>50V, <400V) I might recommend the TMDSHVMTRPFCKIT
        Software is available within controlSUITE for running this kit.  Everything is open-source.
    3. The following workshops may help you learn about the device itself.
      http://processors.wiki.ti.com/index.php/C2000_Archived_Workshops
    4. Specific documentation for each device family can be found on each device's TI webpage.
    5. Basic projects for most devices, such as 'how to blink an LED', can be found inside controlSUITE.


    Thank you,
    Brett

  • Hi Hareesh J,

                            Thanks for the response, I have the data sheet , do we have a training video on how to write the C code , how to enable a pin and , where to connect the BLDC motor, well I want to do it on Simulator and have a BLDC from the University.  Please watch the video from 1:56 min till the next 8 mins, you will understand what I meant to say, We are not in India and I requested on the behalf of many students.

      

  • Sudhansu,

                I understand assimilating all that information could be very overwhelming. I am a bit in the dark about exactly what your objective is here. Is running a BLDC motor all that you want to do? If so, the path suggested by Brett would be helpful. On the other hand, if you want to understand Microcontroller architecture and Embedded systems programming, culminating in controlling a BLDC motor, you may have to take a longer (and harder) path. It all depends on how much time and energy you are willing to invest and what your end goal is. Is this for a final-year college project? Or a joint-project with some industry? Which university do you attend? It is possible your university may already have TI hardware in the labs..

  • I want to understand the MC architecture and able to program it , I am doing MS in Aerodynamics and Robotics(particularly designing aerial robots like predator) at Poznan University Of Technology and I have to program a single legged hopping robot. I have the MC in the lab dedicated to me but I have to do everything from scratch. I do not know how to program it , I have been going through the articles suggested to me since a month and read it couple of times , I just need TI videos to explain how to program it , then I am sure on myself that I can do it myself if I get some training videos. This is the only problem which is faced by many students here , so non took up the challenge and since ATMEL book is available they have taken the project, I even got the Yeshwant Kanitkar book couriered from India but did not help. Yes the project is for my Master Thesis.
  • sudhansu tripathy said:
    I want to understand the MC architecture and able to program it

    This can very well be understood by referring the device datasheet. 

    sudhansu tripathy said:
    I have the MC in the lab dedicated to me but I have to do everything from scratch.

    Which I guess is the F2812 kit that you'd mentioned above right? If so to get started with the kit you can go through these example files: Download and unzip

    You can also go through the F2812 workshop material:

    Again this is a very old device and the support of latest CCS version is unavailable though you can import the projects using the "Import Legacy Projects" tab under CCS.

    sudhansu tripathy said:
    I do not know how to program it , I have been going through the articles suggested to me since a month and read it couple of times , I just need TI videos to explain how to program it , then I am sure on myself that I can do it myself if I get some training videos.

    Its been a month you're still on this! Anyways... for the videos check here:

    sudhansu tripathy said:
    I even got the Yeshwant Kanitkar book couriered from India but did not help.

    Hehe... YK's book is Average for beginners and Good for Intermediate audience. The specific book that I would suggest so that you've an idea of what Microcontrollers are all about and the coding aspect would be: "The 8051 Microcontroller And Embedded Systems Using Assembly And C" by Muhammad Ali Mazidi

    All the very best!

    Regards,

    Gautam

  • Thanks Gautam , 

                                Before posting my question I already had downloaded the study materials that you suggested and its been a month working on it. The YK book I got it because I thought its a general book common to all MC, the book you suggested is 8085 so its not needed here. Thanks for you time, I will try to find my way.

  • sudhansu tripathy said:
    Before posting my question I already had downloaded the study materials that you suggested and its been a month working on it.

    That's 90% of the material for your controller and rest 10% would be E2E. I'm surprised that 90% of the material didn't help you kickstart your project.

    sudhansu tripathy said:
    the book you suggested is 8085 so its not needed here.

    Its not for 8085, its for 8051 which is the basic microcontroller every Embedded Engineer needs to know. If you're thorough with this uC/book.... you can work with any uC you wish to work on!

    sudhansu tripathy said:
    Thanks for you time, I will try to find my way.

    Do let us know if you get stuck while implementing anything.

  • Sudhansu,

    Again, if you are interested in learning more about gettng started with the C2000 devices and CCS, then try running the lab exerices in the workshops.  The materials can be found at:

    http://processors.wiki.ti.com/index.php/C2000_32-bit_Real-Time_MCU_Training

    You can also view various videos on our Training & Support tab:

    http://www.ti.com/lsds/ti/microcontroller/32-bit_c2000/support.page

    And as already pointed out, you should review Getting Started on our Wiki:

    http://processors.wiki.ti.com/index.php/Category:C2000

    I hope this helps.

    - Ken

  • Hi Ken,

                Thank you for your time.  Do you have TMS320F2812 configuration  so that I can use it with PROTEUS.  I am not able to complete

    C2000 One-Day Workshop Module 05: Reset, Interrupts and Syst  as I do not know how to configure the simulator. I am trying to put default  variant as generic c28xx device but not working and getting error as lab2.out could not open.

    Thanks 

    Sudhansu

  • Sudhansu,

    I think you are referring to Module 5 from the Multi-Day Workshop and not the One-Day Workshop.  In any case, please note that this is an older workshop that was built using an earlier version of CCS with .pjt files.  If you are running the labs in a new version of CCS you will need to either import them as legacy CCS projects or build them from scratch.  Which revision of the workshop materials (e.g. 4.21 or 5.2) and which version of CCS are you using?

    - Ken

  • I downloaded the CCS3 and CCS5 , Can someone help me in understanding how to use the simulator, I need to use TMS320F2812 , Can I get a file for the same MC to use it in Proteus , for me time is running out , I have to program a single legged hopping robot. Can I talk to someone on skype , my ID is sudhasum1. I have gone through your training videos from I- 9 , did help me a bit.
  • Sudhansu,

    Newer versions of CCS do not have a simulator, and the older versions that had a simulator were used only to simulate the core and not the peripherals.  CCS is used to develop code, debug it, and program the C2000 device.  I am not familiar with Proteus, but I guess it is EDA software.  It looks like there is a little confusion here – do you want to learn how to develop code and program the F2812, or do you want to layout a PCB?  If your interests are learning more about the device and CCS, then the workshop materials should help you.  We are more than willing to help you learn about our products, but you will need to contact the company that developed Proteus for questions about their products.

    - Ken

  • Thanks Ken,
    I am more interested in programming TMS320F2812 and I am trying with the ccs3 and 5 with the simulator. " I want to learn how to develop code and program F2812. We have a F2812 board in our lab , but understanding how to program the MC is a challenge for me now. Any tutorial how to program explaining the GPIO pins, UART pins , how to enable the pin , how to send communication data through the UART using the SCIA or SCIB pins is a challenge for me now. I have the c28x multi day workshop pdf which explain the communication but I am finding it difficult to understand. Any training video on how to write the code for the pins would definitely make life easier for students who are starting to learn.
  • Sudhansu,

    Your task would become much easier if you use a newer device and a later version of CCS. Likewise, using a newer revision of the workshop would help too.  In our earlier communication you did not tell me which revision of the F2812 workshop you are using (4.21 or 5.2).  This makes a difference since the later revision workshop used DSP/BIOS.  You also did not tell me what F2812 board you are using.  Can you connect to the board with CCS?

    Again, we no longer support the simulator in CCS, and as explained earlier it only simulated the core so it would probably not help you. From your questions it sounds like you are trying to jump in without learning about the device.  To give you an example of how you would program a GPIO pin, see the Gpio.c file in a later lab exercise.  Notice how the structure that is used to set the MUX for the PWM1A peripheral function.  You will need to become familiar with the Peripheral Register Header Files to effectively program the device.  Another resource you can reference is the C2000 teaching ROM, which can be found on http://e2e.ti.com/group/universityprogram/educators/w/wiki/2037.teaching-roms

    - Ken

  • Sudhansu,

    To start with, you are referencing two different workshops.  The first link is my C2000 workshop, and it is complete with all lab files.  The second link for the other workshop you must have found on the Web (note it is not a TI web page).  I quickly looked at this workshop and it looks like it came from a very old Teaching CD-ROM workshop.  You can find the materials for that workshop at:

    https://e2e.ti.com/group/universityprogram/educators/w/wiki/2038.c2000-teaching-rom

    Please note that you are using a very old device and very old workshop materials that uses very old tools.  I strongly suggest you consider a newer device.

    - Ken

  • Hi Ken ,
    I am getting error message in LAB 2 ,
    "Lab2.c", line 92: error: struct "DEV_EMU_REGS" has no field "M0RAMDFT"
    "Lab2.c", line 93: error: struct "DEV_EMU_REGS" has no field "M1RAMDFT"
    "Lab2.c", line 94: error: struct "DEV_EMU_REGS" has no field "L0RAMDFT"
    "Lab2.c", line 95: error: struct "DEV_EMU_REGS" has no field "L1RAMDFT"
    "Lab2.c", line 96: error: struct "DEV_EMU_REGS" has no field "H0RAMDFT"

    I have checked the solutions file and everything seems to be ok, I checked the DSP281x_ GlobalVariableDefs file where the structure is written and not able to understand what to check
    volatile struct DEV_EMU_REGS DevEmuRegs;

    //----------------------------------------
    #ifdef __cplusplus
    #pragma DATA_SECTION("CsmRegsFile")
    #else
    #pragma DATA_SECTION(CsmRegs,"CsmRegsFile");
    #endif
  • Sudhansu,

    The F2812 multi-day workshop Lab 2 has two parts - Lab 2a and Lab 2b.  Neither part uses the peripheral register header files, so why do you have DSP281x_GlobalVariablesDefs.c in the project?

    - Ken 

  • Hi,

        I have few doubts.

    1) What is the purpose of a Data register (Data Regs).

    2.Why 14 is used in the for loop?

    3) Why 7 is used in the if statement ?

    4) My codesense is not working on CCS3.3 even though I checked in the help file how to activate it . I have even added the codesense.c file and still not working

    LAB2

    while(1)
    {
    for(i=0;i<14;i++){
    if(i<7) GpioDataRegs.GPBDAT.all = LED[i];
    else GpioDataRegs.GPBDAT.all = LED[14-i];

  • Sudhansu,

    Again, you are using an extremely old device and workshop materials that is from a third-party.  We strongly suggest moving to a newer device and a more current version of CCS (i.e. CCSv6).  For more information on the structures please see the Peripheral Register Header Files module 3 in a current workshop.

    - Ken

  • Hello Schachter,
    I also have a question why CCS5.3 has not F28xx Cycle Accurate Simulator or F2812 Device Simulator?It has F283x Cycle Accurate Simulato.I am using the CCS5.3 to program,and I want to debug my F2812 projects without a Development board.How can I do this?It has confused me a week!!!
    Thank you.
  • Sudhansu,

    As discussed on my earlier post:

    "Newer versions of CCS do not have a simulator, and the older versions that had a simulator were used only to simulate the core and not the peripherals." 

    Again, consider purchasing a low-cost development board and using a newer version of CCS.

    - Ken

  • Sudhansu,

    Thanks for your help!
    I understand what you say.I am a beginner,and I have purchased a development board.I want to master the skills of debuging first,and then I will try linking the board to debug.

    So,If the CCS has a simulator for my F2812,it is OK.Someone tells me F283x Cycle Accurate Simulator of CCS5.3 can be used for debuging my F2812 projects,is that right?

    Thank you angain!
  • Ken Schachter,

    I made a serious mistake of your name!I am very sorry about it!! How careless I am!Sorry Ken,sorry!
  • Ken Schachter,

    I made a serious mistake of your name!I am very sorry about it!! How careless I am!Sorry Ken,sorry!
  • Sudhansu,

    This does not make much sense.  If you have a target board, then use it.  You gain nothing using a simulator instead of the target board.

    - Ken

  • Ken Schachter,

    Thank you!
    I wil use my target board with your suggestions.

    -Lzwying