Fast output of a data stream via GPIOs or SPI with 2MHz
Hello everyone,
I currently have a problem where I am not sure about the implementation. I have to control a driver module, which has a serial interface.
The problem is that it needs a LATCH line in addition to clock and data line. So far so good. But I have to set the LATCH line to high at certain points so that the driver recognizes it as a data stream or command stream.
With a SPI I realized it, but only in so far that I set the clock of the SPI to an external interrupt, count the clocks and then set the LATCH to High/Low accordingly (only works with 180MHz clock and 1MHz SPI clock, but I want a faster SPI clock. Alternatively I clocked it by hand, so set Clock, Data and LATCH for my whole data stream by hand.
Now the question: Is there a nice way to do this as efficiently as possible?
