From c5bb36f49a8032d91ad0820eb740d19fc48191b8 Mon Sep 17 00:00:00 2001 From: oslek Date: Wed, 22 Jan 2025 07:21:44 -0800 Subject: [PATCH] Update introduction-to-the-serial-peripheral-interface.md Changed "three" to "four" to correct the number of SPI modes (0-3) --- .../introduction-to-the-serial-peripheral-interface.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorials/generic/introduction-to-the-serial-peripheral-interface/introduction-to-the-serial-peripheral-interface.md b/content/tutorials/generic/introduction-to-the-serial-peripheral-interface/introduction-to-the-serial-peripheral-interface.md index 419e6d0e76..03548de6c6 100644 --- a/content/tutorials/generic/introduction-to-the-serial-peripheral-interface/introduction-to-the-serial-peripheral-interface.md +++ b/content/tutorials/generic/introduction-to-the-serial-peripheral-interface/introduction-to-the-serial-peripheral-interface.md @@ -51,7 +51,7 @@ With an SPI connection there is always one Controller device (usually a microcon | Slave Select pin (SS) | Chip Select Pin (CS) | -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. +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. 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.