spi rate
Ken267
Posts: 4
Im currently using one cog to perform spi transfer but the speed is too slow (this is written in assemble). Is it possible to use more then one cog to increase the speed?
Comments
Post the code and let us see what makes it slow..
What rate are you after...
Have you got the clk speed set to 80MZ xtal 1 + pll 16 xin freq 5MHZ that sort of stuff.
Maybe your setup defaults to 12 MHZ ...? you can go possible 7 times quicker... (80MHZ)
cheers ron mel oz
If you have the time, my next couple of posts (my blog) are explaining what SPI performance I'm seeing in a project I'm working on and what I'm having to do to address these performance issues.· This "may" be of some help to you.
See: http://propcandev.blogspot.com/
Regards,
Stephen, KZ0Q
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
I also shall eagerly wait for that!
The standard way to fast output serial data is
which gives you a througput of 8 bit/650 ns = 12 MBit/sec at n0minally 20 MBPS
Input is the bottleneck and somewhat slower with one COG only
Edit: As I typed this in a hurry... it had obviously to be #32 in the first shift, not #33. Still thinking in terms of "shifting out the carry "
Post Edited (deSilva) : 1/10/2008 10:25:49 PM GMT