Hide minor edits - Show changes to markup
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
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
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
(:cell width=200px:) divider: (:cell width=190px:)
(:cell width=150px:) divider: (:cell width=240px:)
(:cellnr width=200px:) slaveSelectPin: (:cell width=190px:) slave device SS pin
(:cellnr width=150px:) slaveSelectPin: (:cell width=240px:) slave device SS pin
(:cellnr width=200px:) divider: (:cell width=190px:) a number from 1 to 255
(:cellnr width=150px:) divider: (:cell width=240px:) a number from 1 to 255
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.
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.
SPI.setClockDivider(divider)
(:table border=0 cellpadding=5 cellspacing=0 width=80%:) (:cell width=400px:) SPI.setClockDivider(divider) (:cellnr width=400px:) SPI.setClockDivider(slaveSelectPin, divider) (:cell:) (Arduino Due only) (:tableend:)
divider:
(:table border=0 cellpadding=5 cellspacing=0 width=80%:) (:cell width=200px:) divider: (:cell width=190px:)
(:cell:) (On AVR boards) (:cellnr width=200px:) slaveSelectPin: (:cell width=190px:) slave device SS pin (:cell:)(Arduino Due only) (:cellnr width=200px:) divider: (:cell width=190px:) a number from 1 to 255 (:cell:) (Arduino Due only) (:tableend:)
divider: SPI_CLOCK_DIV2, SPI_CLOCK_DIV4, SPI_CLOCK_DIV8, SPI_CLOCK_DIV16, SPI_CLOCK_DIV32, SPI_CLOCK_DIV64, or SPI_CLOCK_DIV128
divider:
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.
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.
divider: SPI_CLOCK_DIV2, SPI_CLOCK_DIV4, SPI_CLOCK_DIV8, SPI_CLOCK_DIV16, SPI_CLOCK_DIV32, SPI_CLOCK_DIV64, SPI_CLOCK_DIV128,
divider: SPI_CLOCK_DIV2, SPI_CLOCK_DIV4, SPI_CLOCK_DIV8, SPI_CLOCK_DIV16, SPI_CLOCK_DIV32, SPI_CLOCK_DIV64, or SPI_CLOCK_DIV128
Sets the SPI data mode: that is, clock polarity and phase. See the Wikipedia article on SPI for details.
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.
SPI.setDataMode(mode)
SPI.setClockDivider(divider)
mode: SPI_MODE0, SPI_MODE1, SPI_MODE2, or SPI_MODE3
divider: SPI_CLOCK_DIV2, SPI_CLOCK_DIV4, SPI_CLOCK_DIV8, SPI_CLOCK_DIV16, SPI_CLOCK_DIV32, SPI_CLOCK_DIV64, SPI_CLOCK_DIV128,
Sets the SPI data mode: that is, clock polarity and phase. See the Wikipedia article on SPI for details.
SPI.setDataMode(mode)
mode: SPI_MODE0, SPI_MODE1, SPI_MODE2, or SPI_MODE3
None