Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

qc2012's Content

There have been 2 items by qc2012 (Search limited from 20-March 23)


By content type

See this member's

Sort by                Order  

#42282 SPI Clock State Question

Posted by qc2012 on 27 December 2012 - 08:07 PM in Netduino Plus 2 (and Netduino Plus 1)

Mark,

 

You may want to try changing the clock frequency for the SPI interface.  I solved my problem by merely changing the clock frequency from 1000 KHz to 1250 KHz.  I found It worked at 4000 KHz down to about 1150 KHz.  E.g.:

 

SPI_CS_CONFIG = new SPI.Configuration(MP3_XCS_PIN, false, 0, 0, false, true, 1000, SPI.SPI_module.SPI1);  // fails 9 of 10 trials

 

SPI_CS_CONFIG = new SPI.Configuration(MP3_XCS_PIN, false, 0, 0, false, true, 1250, SPI.SPI_module.SPI1);  // works 10/10 trials

 

 

Hope this helps as a workaround,

 

Quentin




#41862 SPI Clock State Question

Posted by qc2012 on 19 December 2012 - 04:15 AM in Netduino Plus 2 (and Netduino Plus 1)

I'm also willing to test. In my case I'm running 4.2.1.2 firmware (which fixed my I2C problem) and observe that SPI is not working regardless of frequency. I took some photos of the SPI output on my logic analyzer (pin 6 is CS for the slave) for both Netduino Plus 2 and Netduino Plus. Hope this helps. Note that the NP was running @ 4 MHz and the NP2 @ 1 MHz. The NP2 doesn't make it as far in the initialization routine. Netduino Plus @ 5 uSec https://docs.google....aElmZzc0dHZxUzA Netduino Plus @ 2 uSec https://docs.google....NVFNNmMxS3drTm8 Netduino Plus @ 1 uSec https://docs.google....QWVXUk4xRC1vRkU Netduino Plus 2 @ 10 uSec (SPI may be running @ 1 MHz) https://docs.google....ZFpRYkYzRTJRSm8




home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.