Go Down

Topic: No SPI in 1.5.5 ? (Read 865 times) previous topic - next topic

VolDel

Feb 20, 2014, 05:01 pm Last Edit: Feb 20, 2014, 05:08 pm by VolDel Reason: 1
Hi all!
I´m quite new to Arduinos. Initially I played around with the UNO to get a feeling how it works. Than I ran into some shortage with regards to programming memory and decided to get a DUE with more power. I downloaded the ARDUINO 1.5.5r2 and tried to start with some sample applications. I failed when I came across SPI. The library doesn´t seem to exist under version 1.5.5r2.
Most probably the biggest problem is sitting in front of this PC, but I´m really stuck at the moment.
Anyone, who might help me?
Thanks a lot in advance!

Palliser

Hello VolDel,

Each Arduino IDE 1.5.x has SPI library with a couple of examples.

Quote
File->example->SPI->BarometricPressureSensor
                                 DigitalPotControl


Files location:
Quote
...\arduino-1.5.5-r2-windows\arduino-1.5.5-r2\hardware\arduino\sam\libraries\SPI


Indeed, Due SPI library has an Extended functionality that exploits the SAM3X8E core allowing features like:
- Automatic handling of the device slave selection.
- Automatic handling of different device configurations.

More information here:
http://arduino.cc/en/Reference/DueExtendedSPI#.UwYvuvldWSo

Look at Graynomad Due pinout diagram for details on the SPI connection.
http://forum.arduino.cc/index.php?topic=132130.0

You can play with or modify them according to your needs.
By the way, what SPI device you need to connect to DUE? LCD? SD reader?

Regards, Palliser

VolDel

Hi Palliser!
Thank you for pointing me to the right direction! As I suspected: the biggest problem was in front of the PC! If I would have read the library reference more carefully, I should have seen the remark with regards to the DUE.
My main subject is getting the DUE into the Ethernet by means of an existing shield. I´m aware, that I need to utilize a level shifter between the shield and the DUE.
My starting point this time was a gadget I´m owning already for some months: the ConnectEVE - an LCD/touchscreen with FTDI´s FT800 controller. That needs two much memory for reasonable use with the UNO but with the DUE it offers interesting options.
Again thanks a lot!

Palliser

Hi VolDel,
Arduino DUE has a buit-in Ethernet controller (EMAC). I've started a post of a library development but using a third-party DUE board given the degree of access to the Ethernet pins in the original DUE. So far, I have a raw library (ported from Atmel) with a simple web-server sketch that runs OK. I hope to resume the post soon and move on with an oriented Arduino Ethernet library and a couple of sample sketches. If you are interested, here the link (look a my reply #92).

http://forum.arduino.cc/index.php?topic=142908.90

Regards, Palliser

dlloyd

Hello VolDel,
There's a new product I've been reading about at FTDI called FT843+ADAM. The ADAM (Arduino Display Adaptor Module) is compatible with the Due, it uses the SPI bus along with 4 digitals and includes a micro SD drive. How they implement the SPI bus with FT843 display/SD reader/digital might provide useful information.

http://www.4dsystems.com.au/productpages/4Display-Shield-FT843/downloads/4Display-Shield-FT843-ADAM_datasheet_R_0_4.pdf

http://www.ftdichip.com/


Go Up