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.

TMS320LF2406A: Access to example code

Part Number: TMS320LF2406A
Other Parts Discussed in Thread: C2000WARE

Hi team,

Could you kindly help to tell where could find legacy example code for F2406? I have a customer working  on a legacy project on F2406, and needs a example project to start.

Regards,

Brian

  • Hi Brian,

    You probably already know this device is pretty old and we can't provide detailed support for it now. There's a notice to this effect on the product page:
    http://www.ti.com/product/TMS320LF2406A

    It was released almost 25 years ago, and software was deployed very differently then to the way it is now. There was no equivalent to the device support examples in C2000Ware. For general example code, the only thing I can do is to point you towards the 3-day training workshop materials for this platform, which you can find on this page:
    https://training.ti.com/c2000-lf240x-microcontroller-workshop

    There are zip files containing the labs and solutions near the bottom of the page. I hope this helps.

    Regards,

    Richard

  • Hi Richard,

    Thanks for the reply.

    I downloaded the zip you provided but noticed all the projects are about data processing but no use case with peripherals.

    Does F2406 support C code to operate registers? Could you provided .c and .h file for peripherals? This is a quite urgent case for customer. Please feel free to involve in other resources. Thanks!

    Regards,

    Brian

  • Hi Brian,

    That is not correct.  Modules 11 & 12 deal with the ADC and Event Manager.  The lab code associated with each shows how to configure the peripherals by reading & writing to the registers in assembly. 

    As I explained, software was written very differently for this class of device.  There is no direct equivalent to the C peripheral header files or DriverLib we currently have for modern devices.  Therefore there are no C files needed for peripheral register access. 

    The register addresses in C are in the file "LF2407_c.h", and you can find examples of how to use them in the file "led_c2.c".

    Regards,

    Richard