×

It is that time again! SparkFun Electronics will be closed Friday, January 13th for our annual inventory day. Please keep in mind that any orders placed after 2PM (Mountain Time) on Thursday, January 12th will not ship or be prepared for local pickup until we open for normal operations on Monday, January 16th. In addition, tours will resume on Friday, January 20th. Thank you for your patience!

davidmuc

Member Since: June 27, 2011

Country: United States

Profile

Role

Research assistant at Technical University Munich

Programming Languages

VHDL,C/C++,Matlab

  • Hi, I can confirm that this workaround works!

  • Your are right, the delay helped but didn’t solve the problem… I am also stuck at the STC interrupt. What confuses me is that the STC interrupt comes about 20 ms too soon. It should come after 60ms but comes after ~40ms. I'dont know, it’s quite strange… I think there is a fundamental problem with the timing. I hope I have time to hook it up to the logic analyzer tomorrow at work.

  • Hi, I think i found the solution to the timing problem. Insert a “delay(1)” after the “spiTransfer(0xE0);” command. This takes the “bus turnaround time” into account (fig. 7 datasheet) and suddenly all long responses make sense.

No public wish lists :(