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.

sample code

Other Parts Discussed in Thread: TPS92662-Q1

Dear TI,

I also interested on a sample code for a turn signal application.

Do you can help me ? 

Best Regards,

  • Hello Benjamin,

      What device are you using in your design?  You referenced the TPS92662, is your design using this same device?

    Regards,

    ~Leonard 

  • Hello Leonard,

    yes I use the TPS92662-Q1 and I want to control it with a arduino.

    Regards,

    Benjamin

  • Benjamin,

    We do not have sample code for an Arduino.  If you reference the datasheet, you can find the necessary registers and commands to create any animated application.  In general, you could quickly code this by looking at the command frame section and building the proper data packet.  The registers of interest for a sequential turn signal would be the PWMTICK register (where you can set the animation frequency to turn signal level...maybe 1.5Hz) and the PHASEx and WIDTHx registers will control the relative turn on and turn off of the LED during the animation period. If you code it this way, there are relatively few lines of code.

    One other comment....If you are simply looking to demonstrate a sequential turn, you could request an EVM from our ti.com web portal (it's a gated part, so you simply need to click the request button and follow the directions).  The EVM has a demo button for sequential turn.

    -JP

  • Hello,

    I would just need a short example in which only one Led is switch on over a serial interface.

    Cause for some reason my MM just do nothing if I try to set the registers.