en:pfw:i2c
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:pfw:i2c [2023-09-04 18:14] – ↷ Seite von pfw:i2c nach en:pfw:i2c verschoben uho | en:pfw:i2c [2025-12-19 21:56] (current) – [Generic Forth example] willem | ||
|---|---|---|---|
| Line 172: | Line 172: | ||
| 80 constant SDA \ I2C data line | 80 constant SDA \ I2C data line | ||
| SCL SDA or constant IO \ I2C bus lines | SCL SDA or constant IO \ I2C bus lines | ||
| + | |||
| + | variable NACK? | ||
| : WAIT ( -- ) \ Delay of 5 µsec. must be trimmed! | : WAIT ( -- ) \ Delay of 5 µsec. must be trimmed! | ||
| Line 194: | Line 196: | ||
| sda p1out *bis sda p1dir *bic wait | sda p1out *bis sda p1dir *bic wait | ||
| scl p1out *bis scl p1dir *bic wait | scl p1out *bis scl p1dir *bic wait | ||
| - | sda p1in bit* nack? ! ; | + | sda p1in bit* nack? ! ; |
| : BUS! ( byte -- ) | : BUS! ( byte -- ) | ||
| Line 292: | Line 294: | ||
| Have a look at the sub directories for implementations for different systems. | Have a look at the sub directories for implementations for different systems. | ||
| - | * [[pfw: | + | * [[en:pfw: |
| - | * [[pfw: | + | * [[en:pfw: |
| * [[https:// | * [[https:// | ||
| - | * [[pfw: | + | * [[en:pfw: |
en/pfw/i2c.1693844097.txt.gz · Last modified: 2023-09-04 18:14 by uho