openwch / ch32v003

CH32V003 is an ultra-cheap RISC-V MCU with 2KB SRAM, 16KB flash, and up to 18 GPIOs that sells for under $0.10
365 stars 55 forks source link

SOP16 has broken SPI implementation (no PC5/SCK broken-out pin) #40

Closed gili-yankovitch closed 2 weeks ago

gili-yankovitch commented 4 months ago

I am looking at the SOP16 variation of the ch32v003. It says everywhere that it supports SPI. Although I see both the MISO and MOSI lines, the SCK pin is not broken out in this package (PC5). Has anyone used this package / know what's up with that and how one can use SPI without SCK? Both in the smaller as well as the larger datasheet it seems it is not configurable to a different port. Help appreciated! image image

trimarco232 commented 3 months ago

you are unfortunately right , no SCK = no SPI it is a shame , but it is advertised so you have to do SPI manually , or chose another MCU the only thing one could do with MOSI pin is to generate one wire command signal , like WS2811 (but not sure as never tried it) noSPI