Skip to content

Commit c5bb36f

Browse files
authored
Update introduction-to-the-serial-peripheral-interface.md
Changed "three" to "four" to correct the number of SPI modes (0-3)
1 parent 03ee66b commit c5bb36f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/tutorials/generic/introduction-to-the-serial-peripheral-interface/introduction-to-the-serial-peripheral-interface.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ With an SPI connection there is always one Controller device (usually a microcon
5151
| Slave Select pin (SS) | Chip Select Pin (CS) |
5252

5353

54-
The difficult part about SPI is that the standard is loose and each device implements it a little differently. This means you have to pay special attention to the datasheet when writing your interface code. Generally speaking there are three modes of transmission numbered 0 - 3. These modes control whether data is shifted in and out on the rising or falling edge of the data clock signal, and whether the clock is idle when high or low.
54+
The difficult part about SPI is that the standard is loose and each device implements it a little differently. This means you have to pay special attention to the datasheet when writing your interface code. Generally speaking there are four modes of transmission numbered 0 - 3. These modes control whether data is shifted in and out on the rising or falling edge of the data clock signal, and whether the clock is idle when high or low.
5555

5656
All SPI settings are determined by the Arduino SPI Control Register (SPCR). A register is just a byte of microcontroller memory that can be read from or written to. Registers generally serve three purposes, control, data and status.
5757

0 commit comments

Comments
 (0)