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

Member Since 14 Sep 2012
Offline Last Active Mar 03 2013 01:53 AM
-----

#42282 SPI Clock State Question

Posted by qc2012 on 27 December 2012 - 08:07 PM

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




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.