Raspberry Pi Pinout

GPIO 18 (PCM Clock)

Alt0Alt1Alt2Alt3Alt4Alt5
PCM CLKSMI SD10DPI D14I2CSL SDA / MOSISPI1 CE0PWM0
  • Physical/Board pin 12
  • GPIO/BCM pin 18
  • Wiring Pi pin 1

GPIO 18 is used by PCM to provide a clock signal to an external audio device such as a DAC chip.

The PWM0 output of GPIO 18 is particularly useful, in combination with some fast, direct memory access trickery, for driving devices with very specific timings. The WS2812 LEDs on the Unicorn HAT are a good example of this in action.