Skip to content

Instantly share code, notes, and snippets.

View uwu64's full-sized avatar

Tim S. uwu64

  • 08:20 (UTC -07:00)
View GitHub Profile
@TG9541
TG9541 / I2CSTM8.md
Last active March 8, 2024 02:32
STM8 I2C device experiments

The STM8 I2C Peripheral

The STM8 family I2C comes in two variants: one with basic features for 100 or 400 kHz "I2C master and slave" in STM8S RM0016 and STM8L RM0013 devices (e.g. STM8S103F3 and STM8L101F3), the other in STM8L RM0031 devices (e.g. STM8L051F3) offers more features (e.g. two slave addresses, DMA, SMB 2.0 and PMBus modes). The experiments with STM8 eForth here target the basic features common to both variants.

In my first tests I used @eelkhorn's code. It turned out that "polling" is needed for I2C pe