Async SPI on GO!
#1
Posted 03 September 2012 - 02:54 PM
Windows Phone Development MVP
President Software Logistics, LLC
Tampa, FL
#2
Posted 03 September 2012 - 05:46 PM
#3
Posted 03 September 2012 - 05:56 PM
#4
Posted 03 September 2012 - 08:03 PM
The method I used was to put the STM8S into a 'wait for interrupts' mode, waiting for SPI NSS to be asserted, and then retrieved / sent the bytes in a loop using the SPI registers.
Hmmm...sounds interesting, perhaps we can chat about it sometime . It sounds like when the SPI commo is happening, not much else can happen as well?
Guess I'm not so much looking for "real-time" as "real-fast" or even "non-blocking". Just seems sort of a bummer putting the fast processor on hold while the SPI peripheral is doing it's thing.
Very anxious to see the 1.5 stuff...hope it isn't too difficult to retro-fit, I can see the finish line of stable flight with my quad and wanna stay focused!
-twb
Windows Phone Development MVP
President Software Logistics, LLC
Tampa, FL
#5
Posted 03 September 2012 - 08:22 PM
With GoBus 1.5, we've moved all the communication over to standard profiles. You can still use SPI as before but it will be a "virtual SPI bus" that's wrapped up in frames. Or you can move to "Stream" if what you really want is async messages.Very anxious to see the 1.5 stuff...hope it isn't too difficult to retro-fit, I can see the finish line of stable flight with my quad and wanna stay focused!
One of the things that this allows us to do is send all the frames in the background. So you can simply write data and move on with your code. Over time we'll be moving it all to DMA (both the underlying SPI transport and the hardware CRC) so performance is really going to scream
Chris
#6
Posted 03 September 2012 - 08:27 PM
Over time we'll be moving it all to DMA (both the underlying SPI transport and the hardware CRC) so performance is really going to scream
For those of us already using DMA with SPI, I am very concerned about the transition path. One thing that I would like to see preserved is 100% backward compatibility with today's synchronous SPI, available side-by-side with GoBus 1.5 asynchronous methods.
-Fabien.
- Gutworks likes this
#7
Posted 03 September 2012 - 08:39 PM
There are no plans today to discontinue support for synchronous SPI and custom SPI messaging. GoBus 1.0 devices will continue to live alongside GoBus 1.5 devices when plugged into Netduino Go.Hi Chris,
For those of us already using DMA with SPI, I am very concerned about the transition path. One thing that I would like to see preserved is 100% backward compatibility with today's synchronous SPI, available side-by-side with GoBus 1.5 asynchronous methods.
-Fabien.
That said, the new methods will provide for much better overall performance. It's a bit like moving from cooperative multitasking to preemptive multitasking...
We're also adding some features to GoBus which will result in more sales for GoBus 1.5+ modules. We'll be happy to work with you to evaluate GoBus 1.5 for your existing modules. I'd be really surprised if the benefits didn't far outweigh any possible downsides.
Chris
- Arron Chapman likes this
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users