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.

PGA460: PGA460 source code

Part Number: PGA460
Other Parts Discussed in Thread: ENERGIA,

Dear;

  PGA460 Software Development Guide() provide some initialization function like Serial.begin(baud),Serial1.begin(baud). And also some  UART tansceiver function such as Serial1.write(),Serial1.available(),Serial1.read(), and some print function like  Serial.println,Serial.print().

The customer hope we could provide the source code of this function in convenience for his study. If we have?

Best regards

Kailyn

  • Hi Kailyn,
    The source code TI provides is specific to the functionality of the PGA460 device. The example code and PGA460 function library can be downloaded from the PGA460 Tools & Software page (www.ti.com/.../toolssoftware) as PGA460 Energia Library and Code Example (www.ti.com/.../slac741).

    The functions of the Serial.x and Serial1.x libraries are built-in to the Energia IDE. Details on these functions can be found on the Energia website (http://energia.nu/) or in the reference folder of the Energia IDE downloadable (C:\ti\energia-1.6.10E18\reference\www.energia.nu). The actual code is found in the Energia IDE downloadable at: C:\ti\energia-1.6.10E18\hardware\energia\msp430\cores\msp430
  • Hello Akeem,

    I notice that there is a new version of Energia library ((Version 1.0.4) (Rev. D)) available from 07 Nov 2017. There is a problem with *.zip file, it cannot be unpacked. Can you check is there any problem with the file or it is just me :)

    Another question, I need to adapt Energia code for different microcontroller. Is there any other code examples beside Energia?

    Regards, Zivorad
  • Hi Zivorad,
    I have requested our web content team to re-upload the PGA460 Energia code and library package as version 1.0.5, which will now also include a triangulation example. This version of the zip should be live on TI.com by Friday.
  • Hi Zivorad,

    At this time, Energia is the only platform for which example code has been developed. However, the Energia code can be imported in Code Composer Studio (CCS) for a low-level debug/breakdown of the C-Programming equivalent that runs in the background. I recommend importing the PGA460 Energia projects into CCS to enable and view the C-program code for re purpose on a different micro controller.

    Are you seeking a specific code/language example?
  • Hi Akeem,

    Thank you for your support. The Energia code is excellent, I successfully adopt it for my microcontroller, but I spent some time to "clean" unnecessary code for TCI in order to get code more readable. I guess it is better to support all what chip can offer and than you can delete "extra" code that fits your application. My opinion is if you have simple code that use only UART and can be easy applied for different types of microcontroller, it will be more effective in chip promotion. Also, I have to add, the BOOSTXL-PGA460 EVK is mandatory tool in order to get right configuration. I tried with my own test board, but with EVK is so much easier and faster. Good job!
    Just a note, it will be useful to add functions/examples in Energia of how to set 180kHz to 480kHz ultrasonic sensor.
  • Hi Zivorad,

    Thanks for the feedback. I definitely plan on adding a function to update the coefficients for the high-frequency transducer range.

    You do have a point about the availability of all the communication modes (UART, TCI, OWU) making a mess of the library functions. The initial intention was to make all comm modes available when running any of the Energia sketches, but I now realize that customer typically know which comm mode they will be using prior to evaluating the Energia sketches. To clean-up the code, I will most likely split each comm mode configuration into a separate library files (PGA460_USSC_UART, PGA460_USSC_TCI, and PGA460_USSC_OWU) . The user would then import one of three PGA460 libraries based on the required comm mode.