Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b78aec1

Browse files
authoredAug 23, 2024··
Update introduction-to-the-serial-peripheral-interface.md
previously it wrote "there are three mode of transmission". but it's FOUR as a result of combination of two different configurations of CPOL and two different configurations of CPHA.
1 parent 4ec8c1c commit b78aec1

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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.