rigomm
Joined: 17 Mar 2010 Posts: 13
|
|
Posted: Thu May 27, 2010 6:11 am |
|
|
Hi Wayne_
Yes, I´m using Hardware SPI routines. The code I posted above is not the code I´m writing now that I want to save the data in raw mode. As you well appointed, I´m saving the data as a 16 bit number together with a sequential number to ensure the storage is done correctly.
I tried to implement your pseudocode but it didn´t work, I had troubles with interruptions. I want to use interruptions to take the samples as accurately as possible. It does not mean your pseudocode is wrong, I think my implementation was not so good. Now I´m trying again but saving data after the array is full. Decreasing the sampling rate. For now decrease the sampling rate is ok for me, I need to have working this as soon as possible, so may be it will be not as I imagined but at least I want it saving data correctly. :-)
Thank you for the pseudo-code and thanks to ckielstra for his valuable comments. |
|