Skip to content

Instantly share code, notes, and snippets.

@bademux
Last active January 11, 2021 13:10
Show Gist options
  • Save bademux/79821b4e16a3fc60e6667689e656ae2b to your computer and use it in GitHub Desktop.
Save bademux/79821b4e16a3fc60e6667689e656ae2b to your computer and use it in GitHub Desktop.
Samsung HT-THQ20 diy
name FPC rpi 1
TMS (MLRCK) 11 LRCK P5-4
BCK 12 BCK P5-3
TSD0 (MSDIN0) 13 DOUT P5-6
Gnd 22 Gnd P5-7
D+5 10 +5 P5-1
name FPC rpi stm8 bluepill
CS 17 SPI_CE0 GPIO8 PA3
MOSI 18 SPI_MOSI GPIO10 PC6
SCK 19 SPI_SCLK GPIO11 PC5
MISO 20 SPI_MISO GPIO9 PC7
PS-RST (PDN) 16 GPIO25 PC3

From SMPS

name pin
+12 8
-12 9
D+5 10
GND 22
+3.3 24
GND 25

P-ON is located on PSU board. To enable PSU connect P-ON to P/S .

spi spec

PS9828B spidev mode=3:

  • clock idle state HI
  • CPOL=1 The clock polarity is 1, which indicates that the idle state of the clock signal is high
  • CPHA=1 The clock phase in this mode is 1, which indicates that the data is sampled on the falling edge

P5 pinout

P1 pinout

https://elinux.org/RPi_Low-level_peripherals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment