Hi, using the SPI master function for programming an Arduino / ATMEGA328P, we would like to setup the SPI mode and Bitorder.
In the SPI Master component found no settings for this, and copying the C-code from a arduino.INO file does not work because of missing SPI.library....
Like to set these 2 parameters:
SPI.setDataMode(SPI_MODE3);// When SCK is high, send/receive data, when idle, set pin to HIGH
SPI.setBitOrder(MSBFIRST);// Transmission from MSB
How can we do that?
Regards, Luuk Aalders
set SPI-master DataMode and BitOrder
Moderator: Benj
-
- Posts: 16
- Joined: Mon Oct 29, 2007 12:17 pm
- Has thanked: 2 times
- Been thanked: 1 time
- Contact:
set SPI-master DataMode and BitOrder
kind regards,
Luuk Aalders
RS Technics BV
for electronics engineering and industrial controls
The Netherlands
www.rstechnics.nl
Luuk Aalders
RS Technics BV
for electronics engineering and industrial controls
The Netherlands
www.rstechnics.nl
-
- Posts: 16
- Joined: Mon Oct 29, 2007 12:17 pm
- Has thanked: 2 times
- Been thanked: 1 time
- Contact:
Re: set SPI-master DataMode and BitOrder
Many thanks LeighM,
with this knowledge now i can cross these settings to the corresponding SPI Modes!
with this knowledge now i can cross these settings to the corresponding SPI Modes!
kind regards,
Luuk Aalders
RS Technics BV
for electronics engineering and industrial controls
The Netherlands
www.rstechnics.nl
Luuk Aalders
RS Technics BV
for electronics engineering and industrial controls
The Netherlands
www.rstechnics.nl