Reference.SPIBegin History

Hide minor edits - Show changes to output

September 04, 2013, at 10:29 AM by Federico -
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, and 52.
to:
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 54 (correspond to A0).
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: [[DueExtendedSPI | Due Extended SPI usage]]
Deleted lines 24-25:

Deleted line 26:
(:cell width=150px:) None
Deleted line 31:
Added lines 38-40:
* [[SPISetDataMode | SPI.setDataMode]]()
* [[SPISetBitOrder | SPI.setBitOrder]]()
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:
* [[DueExtendedSPI | Due Extended SPI usage]]
to:
* [[SPISetClockDivider | SPI.setClockDivider]]()
* [[DueExtendedSPI | Due Extended SPI usage]]\\
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 11, 2012, at 08:03 PM by Scott Fitzgerald -
Changed lines 7-11 from:
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 4 MHz. For the Due with Extended methods the default frequency is 500 KHz.

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:
Initializes the SPI bus by setting SCK, MOSI, and SS to outputs, pulling SCK and MOSI low, and SS high.

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

''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.
Changed lines 36-37 from:
* [[SPIEnd | end]]()
to:
* [[SPIEnd | SPI.end]]()
* [[DueExtendedSPI | Due Extended SPI usage]]
September 04, 2012, at 03:01 PM by Federico -
Changed lines 23-24 from:
(:cell width=400px:) None
(:cellnr width=400px:) slaveSelectPin
to:
(:cell width=150px:) None
(:cellnr width=150px:) slaveSelectPin:
(:cell width=240px:) slave device SS pin
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:
(:table border=0 cellpadding=5 cellspacing=0 width=50%:)
(:cell width=200px:) SPI.begin()
(:cellnr width=200px:) SPI.begin(slaveSelectPin)
to:
(:table border=0 cellpadding=5 cellspacing=0 width=80%:)
(:cell width=400px:) SPI.begin()
(:cellnr width=400px:) SPI.begin(slaveSelectPin)
Changed lines 20-22 from:
(:table border=0 cellpadding=5 cellspacing=0 width=50%:)
(:cell width=200px:) None
(:cellnr width=200px:) slaveSelectPin
to:
(:table border=0 cellpadding=5 cellspacing=0 width=80%:)
(:cell width=400px:) None
(:cellnr width=400px:) slaveSelectPin
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 [[Reference/DueExtendedSPI | Extended SPI mode]].
to:
(:table border=0 cellpadding=5 cellspacing=0 width=50%:)
(:cell width=200px:) SPI.begin()
(:cellnr width=200px:) SPI.begin(slaveSelectPin)
(:cell:) (''Arduino Due only'')
(:tableend:)


Added lines 20-27:
(:table border=0 cellpadding=5 cellspacing=0 width=50%:)
(:cell width=200px:) None
(:cellnr width=200px:) slaveSelectPin
(:cell:) (''Arduino Due only'')
(:tableend:)


!!!!Returns
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 [[Reference/DueExtendedSPI | 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:
* [[SPIEnd | end]]()
to:
* [[SPIEnd | end]]()
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
* [[SPIEnd | end]]()

Share