TPIC6x595 interface code that uses the SPI peripheral. It something like 10x faster.