Reference.SPISetClockDivider History

Hide minor edits - Show changes to markup

September 17, 2012, at 06:32 PM by Cristian -Vacuum- Maglie -
Changed lines 13-14 from:

If one of the Arduino Due's Slave Select (SS) pin is specified in the call to setClockDivider(), the clock setting is applied only to the device connected to the specified SS pin. More info on extended methods: Due Extended SPI usage

to:

If you specify one of the Arduino Due's Slave Select (SS) pin in the call to setClockDivider(), the clock setting is applied only to the device connected to the specified SS pin. More info on extended methods: Due Extended SPI usage

September 17, 2012, at 05:59 PM by Cristian -Vacuum- Maglie -
Changed lines 12-13 from:

If a slave select pin is specified in the call to setClockDivider(), the clock setting is applied only to the device connected to the specified SS pin.

to:

Extended method for Arduino Due
If one of the Arduino Due's Slave Select (SS) pin is specified in the call to setClockDivider(), the clock setting is applied only to the device connected to the specified SS pin. More info on extended methods: Due Extended SPI usage

Changed lines 47-49 from:

Example

to:

See also

September 16, 2012, at 06:26 PM by Cristian -Vacuum- Maglie -
Changed lines 12-13 from:

A slave select pin on the Due allows several devices to share the SPI connection. If a slave select pin is specified in the call to setClockDivider(), the clock setting is applied only to the device connected to the specified SS pin.

to:

If a slave select pin is specified in the call to setClockDivider(), the clock setting is applied only to the device connected to the specified SS pin.

September 11, 2012, at 10:15 PM by Scott Fitzgerald -
September 11, 2012, at 09:58 PM by Scott Fitzgerald -
Changed lines 12-13 from:

A slave select pin on the Due allows several devices to share the SPI connection. The Due SS pin connected to the slave select or chip select pin of an SPI device. If a slave select pin is specified in the call to setClockDivider(), the clock setting is applied only to the device connected to the specified slave select pin.

to:

A slave select pin on the Due allows several devices to share the SPI connection. If a slave select pin is specified in the call to setClockDivider(), the clock setting is applied only to the device connected to the specified SS pin.

September 11, 2012, at 08:12 PM by Scott Fitzgerald -
Changed lines 7-9 from:

Sets the SPI clock divider relative to the system clock. On the AVR based boards the dividers available are 2, 4, 8, 16, 32, 64 or 128. The default setting is SPI_CLOCK_DIV4, which sets the SPI clock to one-quarter the frequency of the system clock (4 Mhz for the boards at 16 MHz). On the Arduino Due the system clock can be divided with values from 1 to 255. The default value is 21 that sets the clock to 4 MHz according with the other boards.

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 setClockDivider(), the clock setting is applied only to the device connected to the specified slave select pin.

to:

Sets the SPI clock divider relative to the system clock. On AVR based boards, the dividers available are 2, 4, 8, 16, 32, 64 or 128. The default setting is SPI_CLOCK_DIV4, which sets the SPI clock to one-quarter the frequency of the system clock (4 Mhz for the boards at 16 MHz).

Arduino Due
On the Due, the system clock can be divided by values from 1 to 255. The default value is 21, which sets the clock to 4 MHz like other Arduino boards.

A slave select pin on the Due allows several devices to share the SPI connection. The Due SS pin connected to the slave select or chip select pin of an SPI device. If a slave select pin is specified in the call to setClockDivider(), the clock setting is applied only to the device connected to the specified slave select pin.

Deleted lines 42-43:
September 04, 2012, at 03:38 PM by Federico -
Changed line 9 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 setClockDivider(), the clock setting is assigned only to the selected device.

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 setClockDivider(), the clock setting is applied only to the device connected to the specified slave select pin.

September 03, 2012, at 04:19 PM by Federico -
Added line 9:

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 setClockDivider(), the clock setting is assigned only to the selected device.

August 31, 2012, at 12:11 PM by Federico -
Changed lines 20-21 from:
to:
Changed lines 30-31 from:
to:
Changed lines 33-34 from:
to:
August 31, 2012, at 11:36 AM by Federico -
Changed lines 7-8 from:

Sets the SPI clock divider relative to the system clock. The dividers available are 2, 4, 8, 16, 32, 64, or 128. The default setting is SPI_CLOCK_DIV4, which sets the SPI clock to one-quarter the frequency of the system clock.

to:

Sets the SPI clock divider relative to the system clock. On the AVR based boards the dividers available are 2, 4, 8, 16, 32, 64 or 128. The default setting is SPI_CLOCK_DIV4, which sets the SPI clock to one-quarter the frequency of the system clock (4 Mhz for the boards at 16 MHz). On the Arduino Due the system clock can be divided with values from 1 to 255. The default value is 21 that sets the clock to 4 MHz according with the other boards.

Changed lines 11-12 from:

SPI.setClockDivider(divider)

to:
Changed lines 18-19 from:

divider:

  • SPI_CLOCK_DIV2
to:
Changed line 27 from:
  • SPI_CLOCK_DIV64 or
to:
  • SPI_CLOCK_DIV64
Changed lines 29-39 from:
to:
Changed lines 43-44 from:

Example

to:

Example

August 15, 2010, at 03:47 PM by Tom Igoe -
Changed lines 14-15 from:

divider: SPI_CLOCK_DIV2, SPI_CLOCK_DIV4, SPI_CLOCK_DIV8, SPI_CLOCK_DIV16, SPI_CLOCK_DIV32, SPI_CLOCK_DIV64, or SPI_CLOCK_DIV128

to:

divider:

  • SPI_CLOCK_DIV2
  • SPI_CLOCK_DIV4
  • SPI_CLOCK_DIV8
  • SPI_CLOCK_DIV16
  • SPI_CLOCK_DIV32
  • SPI_CLOCK_DIV64 or
  • SPI_CLOCK_DIV128
August 10, 2010, at 04:23 AM by David A. Mellis -
Changed lines 7-8 from:

Sets the SPI clock divider relative to the system clock. The default is SPI_CLOCK_DIV4, which sets the SPI clock to one-quarter the frequency of the system clock.

to:

Sets the SPI clock divider relative to the system clock. The dividers available are 2, 4, 8, 16, 32, 64, or 128. The default setting is SPI_CLOCK_DIV4, which sets the SPI clock to one-quarter the frequency of the system clock.

August 10, 2010, at 04:22 AM by David A. Mellis -
Changed lines 14-15 from:

divider: SPI_CLOCK_DIV2, SPI_CLOCK_DIV4, SPI_CLOCK_DIV8, SPI_CLOCK_DIV16, SPI_CLOCK_DIV32, SPI_CLOCK_DIV64, SPI_CLOCK_DIV128,

to:

divider: SPI_CLOCK_DIV2, SPI_CLOCK_DIV4, SPI_CLOCK_DIV8, SPI_CLOCK_DIV16, SPI_CLOCK_DIV32, SPI_CLOCK_DIV64, or SPI_CLOCK_DIV128

August 10, 2010, at 04:22 AM by David A. Mellis -
Changed lines 3-4 from:

setDataMode()

to:

setClockDivider()

Changed lines 7-8 from:

Sets the SPI data mode: that is, clock polarity and phase. See the Wikipedia article on SPI for details.

to:

Sets the SPI clock divider relative to the system clock. The default is SPI_CLOCK_DIV4, which sets the SPI clock to one-quarter the frequency of the system clock.

Changed lines 11-12 from:

SPI.setDataMode(mode)

to:

SPI.setClockDivider(divider)

Changed lines 14-15 from:

mode: SPI_MODE0, SPI_MODE1, SPI_MODE2, or SPI_MODE3

to:

divider: SPI_CLOCK_DIV2, SPI_CLOCK_DIV4, SPI_CLOCK_DIV8, SPI_CLOCK_DIV16, SPI_CLOCK_DIV32, SPI_CLOCK_DIV64, SPI_CLOCK_DIV128,

Deleted lines 20-21:

See also

August 10, 2010, at 04:16 AM by David A. Mellis -
Added lines 1-22:

SPI

setDataMode()

Description

Sets the SPI data mode: that is, clock polarity and phase. See the Wikipedia article on SPI for details.

Syntax

SPI.setDataMode(mode)

Parameters

mode: SPI_MODE0, SPI_MODE1, SPI_MODE2, or SPI_MODE3

Returns

None

Example

See also

Share