TCA6507EVM: LED blinking using One-Shot mode?

Part Number: TCA6507EVM

Tool/software:

Hello,

On the EVM kit I'm trying to blink P4, P5, and P6 pins twice. These are wired to D3-5 per the schematic for evm. The register states in Table 8 don't have a way to use One-shot mode with LED's blinking. What's the best way I can implement this? 

Thanks.

  • PCS,

    Is your main goal to blink the pins P4/P5/P6 twice? If so, why not use the SELECT2/1/0 registers to turn ON and OFF the LEDs? You would be interested in the first 4 states. 

    Regards,

    Tyler

  • Tyler, 

    Yes I want to blink those pins twice. I know I can also use the LED fully on option and switch between that and off to achieve it. 

    I'm trying to see if there's a better way to do it and understand the One Shot mode.

    From the datasheet, you can set the max intensity and the cycle segment shown in Table 5 and Fig 20 to run. Is there an example values that I can test? It may be that the numbers I'm using aren't giving me a good input on the behavior of that mode.

    Thanks.

  • Hello PCS,

    Our Apps team is currently out due to the winter holidays. Please expect some delays. Thank you for your understanding.

    Regards,

    Josh

  • PCS,

    What is your current code doing? What values are you writing to each register? 

    Regards,

    Tyler

  • Tyler,

    I tried these two ways:

    1. The LED on with max intensity value of PWM1 option (where the intensity is set to 0xF0 i.e. 100%): 

    Set SELECT2/1/0 to 0x00, 0x70, 0x70

    Set MAX_INTENSITY to 0xF0

    Set SELECT2/1/0 to 0x00, 0x00, 0x00

    Set SELECT2/1/0 to 0x00, 0x70, 0x70

    Set SELECT2/1/0 to 0x00, 0x00, 0x00

    This creates the LED's to blink twice and it's really quick.

    2. LED blinking with intensity characteristics of BANK1 (PWM1):

    Set SELECT2/1/0 to 0x70, 0x70, 0x70

    Set fade on/fully on/fade off/first fully off/second fully off to 0xC0, 0xF0, 0xC0, 0xC0, 0xF0

    Set SELECT2/1/0 to 0x00, 0x00, 0x00

    Here the LED's blink twice but I'm able to control how long.

    Both of these work. Looking at the registers states I don't think there's a simpler way to achieve this behavior. I think option 2 is better since I can control the timing of the LED on and off. 

    Thanks for the help.