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.

Basic Questions regarding Tiva and TM4C1294XL Connected Launchpad

Hi,

I have been using MSP430 for some time now and migrating to Tiva Series. I am using TM4c1294XL connected Launchpad for the same.

I have a few basic questions rearding the same.

  • How should I configure the ADC to sample and convert multiple channels? Is there a sample code for multiple channel conversion?
  • How to decide the load register value for timers?
  • How to use interrupts from GPIOs? Do all ports have interrupt facility unlike MSP430F438A which had only interrupt functions for Ports 1 and 2?
  • Is there a Modbus RTU over RS485 sample code available for TIVA?
  • Are there sample codes available in C for TIVA like MSP4305438A?

  • Hello Tanmay,

    There are example codes in the TivaWare. You can download and install TivaWare from TI website.

    The peripheral specific examples (though based out of TM4C123) would be in the following path if you install TivaWare in C:

    C:\ti\TivaWare_C_Series-2.1.0.12573\examples\peripherals

    All GPIO ports have interrupt capability. Please note that on Tiva devices a GPIO Port is a bunch of 8 pins. Port P and Q have per pin interrupt capability.

    We do not have a MODBus Example, but surely with the open standard there would be some on the forum (search...)

    Regards
    Amit
  • Hi. I have a doubt in Pwm generation. How exactly is the value for the period calculated to be put in the Timer Load Register? Can u give me an example. Suppose I want a period of 1s with a duty cycle of 50%
  • Hello Tanmay,

    I am sure that 1s may not be possible w/o changing the System Clock to a low frequency. But for the sake of an example the Period would be from rising edge to rising edge of the PWM Pulse which would be PWM Period (in sec) * System Frequency
    (in MHz) / PWMDIV (see PWMCC). The Compare value will amount to the Duty Cycle. DC=PWMPeriod (in count) * DC/100.

    Regards
    Amit
  • Tanmay Gadekar said:
    Is there a Modbus RTU over RS485 sample code available for TIVA?

     Still on MSP430 I wrote it, I don't know about example of that kind, so I browse that cpu to see what offer.

    Tanmay Gadekar said:
    Are there sample codes available in C for TIVA like MSP4305438A?

     This is a version of MSP series 54xx, what are you seeking for? Has some example you need? So again you have to port it but processor have different structure and sometimes rewrite from scratch is the best way.

    Tanmay Gadekar said:
    • How should I configure the ADC to sample and convert multiple channels? Is there a sample code for multiple channel conversion?
    • How to decide the load register value for timers?
    • How to use interrupts from GPIOs? Do all ports have interrupt facility unlike MSP430F438A which had only interrupt functions for Ports 1 and 2?

     Install TIVAWare and read all examples that came from then read sparse information in this forum, sorry too many basic question dispersed too much data.

  • hi Tanmay,

    Check this out if your starting with the launchpad:
    For the TM4C1294: http://processors.wiki.ti.com/index.php/Tiva_C_Series_TM4C1294_LaunchPad
    http://processors.wiki.ti.com/index.php/Creating_IoT_Solutions_with_the_TM4C1294XL_Connected_LaunchPad_Workshop?DCMP=tivac-launchpad&HQS=ConnectedLaunchPadWorkshop

    For the TM4C123: http://processors.wiki.ti.com/index.php/Getting_Started_with_the_TIVA%E2%84%A2_C_Series_TM4C123G_LaunchPad
    https://sites.google.com/site/luiselectronicprojects/tutorials/tiva-tutorials

    You can check TM4C123 examples for the TM4C1294, of course in some cases there are differences but for the most part it's a good idea to start with the basics
  • Luis Afonso said:
    For the TM4C1294: http://processors.wiki.ti.com/index.php/Tiva_C_Series_TM4C1294_LaunchPad
    http://processors.wiki.ti.com/index.php/Creating_IoT_Solutions_with_the_TM4C1294XL_Connected_LaunchPad_Workshop?DCMP=tivac-launchpad&HQS=ConnectedLaunchPadWorkshop

     Hi Luis, just a stylish hint for clarity:

     Adjust all link on single line and use link too this way (if you like or forget and use your preferred style instead):

    TM4C1294:

    http://processors.wiki.ti.com/index.php/Tiva_C_Series_TM4C1294_LaunchPad


    Creating_IoT_Solutions_with_the_TM4C1294XL_Connected_LaunchPad_Workshop

    TM4C123:

    Getting_Started_with_the_TIVA_C_Series_TM4C123G_LaunchPad

    tiva-tutorials