Show Posts
Pages: [1]
1  Products / Arduino Due / Arduino due + SPI setClockDivider() function on: January 30, 2013, 08:39:14 am
Hello,

Firstly, I use an unofficial ethernet shield (with W5200 chip) with the new arduino due.

I modified the W5100 library for the W5200 chip and all the exemple sketches run very well.

The W5200 chip support a SPI clock at 80 Mhz and refering to the SAM3X8E datasheet (page 29), the arduino due 32bits ARM uC support a Max of 65 Mhz clock SPI.

Ok, now my question :

In the   "void W5100Class::init(void)"     function located in the "W5100.cpp"

When I set the SPI clock divider at the number 1 using "SPI.setClockDivider(1)" (to use the full 65 Mhz SPI clock speed), it is impossible to use the ethernet shield (not responding ??)

But if I comment my code (no call to SPI.setClockDivider at all) or if I set the clock divider at 2, all run well.

Why can I not set the clock divider at 1? And by default, when no call to SPI.setClockDivider() is called, at which speed is the SPI clock?

Any hint for me?

Thank you,

Fabien D.
2  Products / Arduino Due / Re: Arduino DUE and SPI 9 bits on: January 28, 2013, 03:24:53 am

The SPI peripheral in the SAM3X can do 9 bit transfers, but this is not supported by the SPI library. It would be very easy to add though.



Exactly, in the SAM3X datasheet, on page 679, you can read :

– 8- to 16-bit Programmable Data Length Per Chip Select

My question was on the implementation of this functionality in the new arduino framework.
In the documentation, nothing is said about this but perhaps the doc isen't up to date...

I will see to add it myself.

Thank you.
3  Products / Arduino Due / Arduino DUE and SPI 9 bits on: January 25, 2013, 05:23:43 am
Hello,

I want use the functionality of the arduino DUE to send 9 bits SPI data.

I havn't found anything in your SPI documentation about the SPI data length..

Any hint for me?

Thanks and regards,

Fabien D.
4  Development / Suggestions for the Arduino Project / Re: Integrate avrdude 5.11 to the dev framework on: April 10, 2012, 05:02:55 am
Why don't update the avrdude version in your original package ?

Just use the latest version and you will get avrdude 5.11 !

Wow, I installed the last version on my laptop two day ago and the avrdude version was 5.4....

I just downloaded the latest version a few minutes ago and the version is the 5.11, I think I am going crazy....

Sorry,

Fabien D.
5  Development / Suggestions for the Arduino Project / Integrate avrdude 5.11 to the dev framework on: April 10, 2012, 02:12:12 am
Hi,

I am using the arduino dev framework with an external ISP programer (avrusb500 from tuxgraphics).

With the 5.4 version of avrdude installed with the arduino framework, an error occurs when sending the compiled code to the atmega.

I updated the version to 5.11 and all work fine.

Why don't update the avrdude version in your original package ?

Thanks

Fabien D.
Pages: [1]