Hi guys,
Working with a TLC5917 LED Driver, which in the past I'd had working fine by using 5 dedicated pins from the T3.1 (SDI, SDO, CLK, LE and OE). However, I'm using literally every pin on the T3.1, with the exception of pin 33 and I still need to find 2 more pins somewhere. I'd like to avoid a port expander if possible.
So, now I'm turning to the idea of putting the 5917 on the SPI bus I'm already using to communicate to a TFT display amongst other things.
Of course, actually getting the 5917 to drive LEDs won't be an issue using SPI (as it's essentially a shift register), however, getting into special mode to read error status' and set current adjustment, might not be so simple (see pages 17-19 here: http://www.ti.com/lit/ds/symlink/tlc5917.pdf).
In short, I need to be able to be able to control the clock line, outside of the SPI functions so as to toggle OE and LE as required to get it into special mode. Am I free to just manipulate it with digitalWriteFast provided, of course, it's not already conducting an SPI transaction at the time?
Thanks in advance,
Cosford.
Working with a TLC5917 LED Driver, which in the past I'd had working fine by using 5 dedicated pins from the T3.1 (SDI, SDO, CLK, LE and OE). However, I'm using literally every pin on the T3.1, with the exception of pin 33 and I still need to find 2 more pins somewhere. I'd like to avoid a port expander if possible.
So, now I'm turning to the idea of putting the 5917 on the SPI bus I'm already using to communicate to a TFT display amongst other things.
Of course, actually getting the 5917 to drive LEDs won't be an issue using SPI (as it's essentially a shift register), however, getting into special mode to read error status' and set current adjustment, might not be so simple (see pages 17-19 here: http://www.ti.com/lit/ds/symlink/tlc5917.pdf).
In short, I need to be able to be able to control the clock line, outside of the SPI functions so as to toggle OE and LE as required to get it into special mode. Am I free to just manipulate it with digitalWriteFast provided, of course, it's not already conducting an SPI transaction at the time?
Thanks in advance,
Cosford.