Search found 3 matches

by ghare
Thu Jul 31, 2014 7:52 am
Forum: EtherDue
Topic: SPI Help
Replies: 4
Views: 6018

Re: SPI Help

Angus, Tried putting a manual digitalWrite in various places with no luck. However I have solved the problem in a really UGLY way. I have created a 'throw-away' variable and do an additional SPI transfer before I assert my TC chip select line low. Seems to clear the corrupt data and I get my 2 bytes...
by ghare
Thu Jul 31, 2014 5:54 am
Forum: EtherDue
Topic: SPI Help
Replies: 4
Views: 6018

Re: SPI Help

Angus, I am already using 1.5.6-r2. Here is the SD code (just the standard example) However, I did note that if I transposed the SD and SPI header includes, the code breaks. i.e. card doesn't initialise. /*   SD card datalogger  This example shows how to log data from three analog sensors  to an SD ...
by ghare
Wed Jul 30, 2014 9:27 am
Forum: EtherDue
Topic: SPI Help
Replies: 4
Views: 6018

SPI Help

Hi, I am trying to use my EtherDue with an SPI thermocouple (MAX31855) which is read only, using SCK, MISO and Pin 53 as _CS. On it's own, this works great! I am trying to write the data from the thermocouple to a microSD. The microSD uses Pin 4 as _CS. Again, on it's own this works great, I can rea...