2009-09-10 03:03 AM
SPI data problem
2011-05-17 04:23 AM
When I send data from the SPI port, the data is sometimes received ok and sometimes shifted by 1 bit left.
The received data is read by a loopback SPI port or Beagle PC analyzer. For example: when I send 0x50,0x51,0x52,0x53 I receive something like: 0x50,0xA2,0xA4,0xA6 So it seems that 1 bit is missing. Any ideas where the missing bit went?2011-05-17 04:23 AM
The SPI port that sends the data is configured as ''master''.
2011-05-17 04:23 AM
Are you sure your receiver is triggering on the right clock edge? SPI can be set up to receive data on rising or falling edge. And does your receiver match clock idle (normally hi, or normally low)? Do you run the signal through any buffers or inverters?
Jack Peacock