Спасибо! Так в этом же вопрос и состоит- что лучше. Симулировать параллельную шину на P1.16-P1.23 программно, или гонять SSP аппаратно. Принятые данные надо после небольшой обработки (собрать статистику) выслать в USB.
Проблем почти никаких нет после последенй ерраты ( изменение длины импульса SSP при высоки частотах). Осталось доработать под нее реализацию SSP в плисине и можно работать.
Код
SSP.1Initial data bits/clocks of the SSP transmission are shorter than subsequent pulses at higher frequencies
Introduction: The SSP is a Synchronous Serial Port (SSP) controller capable of operation on a SPI, 4-wire SSI or a Microwire bus. The SSP can operate at a maximum speed of 30MHz and it referred to as SPI1 in the device documentation.
Problem: At high SSP frequencies, it is found that the first four pulses are shorter than the subsequent pulses.
At 30MHz, the first pulse can be expected to be approximately 10ns shorter and the second pulse around 5ns shorter. The remaining two pulses are around 2ns shorter than subsequent pulses.
At 25MHz, the length of the first pulse would be around 7ns shorter. The subsequent three pulses are around 2ns shorter.
At 20MHz only the first pulse is affected and it is around 2ns shorter. All subsequent pulses are fine.
The deviation of the initial data bits/clocks will decrease as the SSP frequency decreases.