Reference.SPIBegin History

Show minor edits - Show changes to markup

September 04, 2013, at 09:15 AM by Scott Fitzgerald -
Changed lines 14-15 from:

The only pins that can be configured to be managed by SPI interface are the Arduino Due's Slave Select pins: 4, 10, 52 and 78.

to:

The only pins that can be configured to be managed by SPI interface are the Arduino Due's Slave Select pins: 4, 10, and 52.

September 17, 2012, at 06:31 PM by Cristian -Vacuum- Maglie -
Changed lines 9-11 from:

Arduino Due only
SPI.begin() can take an optional argument, configuring the pin to be managed as an additional SS pin by the SPI interface. When configuring a new SS pin, the frequency reverts to the default of 500 KHz. This can be changed with SPI.setClockDivider().

to:

Extended method for Arduino Due
If you specify one of the Arduino Due's Slave Select (SS) pin in the call to SPI.begin(), the pin is configured to be directly managed by the SPI interface.

Note that once the pin is configured, you can't use it anymore as a general I/O, unless you call the SPI.end() method on the same pin.

The only pins that can be configured to be managed by SPI interface are the Arduino Due's Slave Select pins: 4, 10, 52 and 78.

More info on extended methods: Due Extended SPI usage

Deleted lines 24-25:
Deleted line 26:
Deleted line 31:
Added lines 38-40:
September 11, 2012, at 09:57 PM by Scott Fitzgerald -
Deleted lines 8-9:

The default SCK frequency on almost all Arduino boards is 4 MHz. The Due is the exception, with a default frequency of 500 KHz.

Changed lines 10-11 from:

SPI.begin() can take an optional argument, configuring the pin to be managed as an additional SS pin by the SPI interface.

to:

SPI.begin() can take an optional argument, configuring the pin to be managed as an additional SS pin by the SPI interface. When configuring a new SS pin, the frequency reverts to the default of 500 KHz. This can be changed with SPI.setClockDivider().

Changed lines 35-36 from:
to:
September 11, 2012, at 08:05 PM by Scott Fitzgerald -
Changed lines 9-10 from:

The default SCK frequency is set to 4 MHz. For the Due with extended methods the default frequency is 500 KHz.

to:

The default SCK frequency on almost all Arduino boards is 4 MHz. The Due is the exception, with a default frequency of 500 KHz.

September 11, 2012, at 08:04 PM by Scott Fitzgerald -
Changed line 11 from:

Arduino Due only

to:

Arduino Due only\\

September 04, 2012, at 03:01 PM by Federico -
Changed lines 23-24 from:
to:
September 04, 2012, at 02:55 PM by Federico -
Changed lines 10-11 from:

A slave select pin allows several devices to share the SPI connection. It is connected to the slave select or chip select pin of an SPI device. If a slave select pin is specified in the call to end(), the SPI communication with the specified device is going to be closed.

to:

A slave select pin allows several devices to share the SPI connection. It is connected to the slave select or chip select pin of an SPI device. If a slave select pin is specified in the call to begin(), the pin is configured to be managed by the SPI interface.

September 03, 2012, at 03:57 PM by Federico -
Changed lines 10-11 from:

A slave select pin allows several devices to share the SPI connection. It is connected to the slave select or chip select pin of an SPI device. If a slave select pin is specified in the call to begin(), the pin is configured to be managed by the SPI interface.

to:

A slave select pin allows several devices to share the SPI connection. It is connected to the slave select or chip select pin of an SPI device. If a slave select pin is specified in the call to end(), the SPI communication with the specified device is going to be closed.

September 03, 2012, at 03:53 PM by Federico -
Added lines 10-11:

A slave select pin allows several devices to share the SPI connection. It is connected to the slave select or chip select pin of an SPI device. If a slave select pin is specified in the call to begin(), the pin is configured to be managed by the SPI interface.

August 31, 2012, at 12:14 PM by Federico -
Changed lines 11-13 from:
to:
Changed lines 20-22 from:
to:
August 30, 2012, at 04:06 PM by Federico -
Changed lines 8-9 from:

Default SCK frequency is setted to 4 MHz. For the Due the default frequency is 500 KHz.

to:

Default SCK frequency is setted to 4 MHz. For the Due with Extended methods the default frequency is 500 KHz.

August 30, 2012, at 04:05 PM by Federico -
Changed lines 8-9 from:

Default SCK frequency is setted to 500 kHz.

to:

Default SCK frequency is setted to 4 MHz. For the Due the default frequency is 500 KHz.

August 30, 2012, at 04:02 PM by Federico -
Changed lines 11-19 from:

SPI.begin()

Arduino Due only:

SPI.begin(SS_pin)

In the extended mode you can specify which device to initialize by adding the Slave Select pin number on which the device is physically connected. For further information, please read the page of the Extended SPI mode.

to:
Added lines 20-27:
Deleted lines 29-35:

Arduino Due only:

SS_pin: is the pin number on which the slave SPI device is connected. The only available pins for this mode are digital pins: 4, 10, 52.

Returns

None

August 30, 2012, at 01:14 PM by Federico -
Changed lines 7-8 from:

Initializes the SPI bus, setting SCK, MOSI, and SS to outputs, pulling SCK and MOSI low and SS high.

to:

Initializes the SPI bus, setting SCK, MOSI, and SS to outputs, pulling SCK and MOSI low and SS high. Default SCK frequency is setted to 500 kHz.

Added lines 14-19:

Arduino Due only:

SPI.begin(SS_pin)

In the extended mode you can specify which device to initialize by adding the Slave Select pin number on which the device is physically connected. For further information, please read the page of the Extended SPI mode.

Added lines 23-26:

Arduino Due only:

SS_pin: is the pin number on which the slave SPI device is connected. The only available pins for this mode are digital pins: 4, 10, 52.

Changed lines 31-32 from:
to:
August 10, 2010, at 04:07 AM by David A. Mellis -
Added lines 1-21:

SPI

begin()

Description

Initializes the SPI bus, setting SCK, MOSI, and SS to outputs, pulling SCK and MOSI low and SS high.

Syntax

SPI.begin()

Parameters

None

Returns

None

See also

Share