You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 41e24fb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: documentation/asciidoc/computers/raspberry-pi/gpio-on-raspberry-pi.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ Each pin is mapped to a specific function categorised into four primary types, s
82
82
83
83
NOTE: GPIO pins 0 and 1, sometimes named `GPIO 0 (ID_SD)` and `GPIO 1 (ID_SC)`, respectively, are reserved for special-purpose use. Physically, these pins correspond with pins 27 and 28 on a Raspberry Pi board.
84
84
85
-
=== GPIO pin inputs, outputs, and alternative functions
85
+
=== GPIO pin inputs, outputs, and communication protocols
86
86
87
87
GPIO pins can operate in two modes: <<inputs, inputs>> and <<outputs, outputs>>. Some GPIO pins can also control connected components using specific <<protocols, communication protocols>>, including *SPI*, *I2C*, *UART*, *PWM*, and *PCM*.
88
88
@@ -337,7 +337,7 @@ NOTE: Pad control settings, such as output drive strength and Schmitt-trigger fi
337
337
338
338
This section covers the underlying architecture and low-level configuration of the GPIO hardware.
339
339
340
-
=== GPIO permissions
340
+
==== GPIO permissions
341
341
342
342
To access GPIO ports, a user must be a member of the appropriate `gpio` group. The primary user account on a Raspberry Pi OS is a member of the `gpio` group by default. Other users of your Raspberry Pi must be added manually using the following command, replacing `<username>` with the actual username of the user:
343
343
@@ -346,7 +346,7 @@ To access GPIO ports, a user must be a member of the appropriate `gpio` group. T
346
346
$ sudo usermod -a -G gpio <username>
347
347
----
348
348
349
-
=== GPIO pads
349
+
==== GPIO pads
350
350
351
351
The external GPIO connections on the SoC are sometimes referred to as 'pads' in the https://pip.raspberrypi.com/documents/RP-008249-DS[BCM2835 peripherals datasheet]. In semiconductor terminology, pads are the chip's electrical connection points to the outside world.
352
352
@@ -360,7 +360,7 @@ The GPIO pads include configurable CMOS push-pull output drivers and input buffe
360
360
361
361
Following a power-on reset, GPIO pins are generally configured as inputs. The default pull states are also applied, which are detailed in the *Alternative Function Assignments* table in the https://pip.raspberrypi.com/documents/RP-008249-DS[BCM2835 peripherals datasheet]. Most GPIOs have a default pull applied.
362
362
363
-
=== Interrupts
363
+
==== Interrupts
364
364
365
365
Each GPIO pin configured as a general-purpose input can be configured as an interrupt source for the Arm processor. The following interrupt-generation modes are available:
0 commit comments