Hi,
I'm new to the Teensy hardware and I am hoping it will help solve my problem.
I am trying to read some serial data from an FPGA. The data is not truly SPI. It is clocked at 1uS and was designed to load 4 serial to parallel chips. The clock line is normally low and puts out 32 1uS 50% duty cycle pulses. A third wire sends a load signal after the 32 bits are sent on the data line.
I programmed a 328p at 16MHz to read in the data using an SPI interrupt. In the ISR I read the first byte and waited for the SPIF flag to read bytes 2,3 and four.
Unfortunately, it totally misses all 32 bits about 1 out of 20 transmissions. After spending hours on this I decided I need a new approach.
I looked over the data sheet for the Teensy 3.2 and the SPI hardware looks much more capable. It has a 32 bit shift register.
Any ideas?
Regards,
John
I'm new to the Teensy hardware and I am hoping it will help solve my problem.
I am trying to read some serial data from an FPGA. The data is not truly SPI. It is clocked at 1uS and was designed to load 4 serial to parallel chips. The clock line is normally low and puts out 32 1uS 50% duty cycle pulses. A third wire sends a load signal after the 32 bits are sent on the data line.
I programmed a 328p at 16MHz to read in the data using an SPI interrupt. In the ISR I read the first byte and waited for the SPIF flag to read bytes 2,3 and four.
Unfortunately, it totally misses all 32 bits about 1 out of 20 transmissions. After spending hours on this I decided I need a new approach.
I looked over the data sheet for the Teensy 3.2 and the SPI hardware looks much more capable. It has a 32 bit shift register.
Any ideas?
Regards,
John