User Tools

Site Tools


en:pfw:i2c

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:pfw:i2c [2023-09-04 18:14] – ↷ Seite von pfw:i2c nach en:pfw:i2c verschoben uhoen: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:i2c_msp430|MSP430]], bitbang & hardware specific I2C implementations for MSP430 +  * [[en:pfw:i2c_msp430|MSP430]], bitbang & hardware specific I2C implementations for MSP430 
-  * [[pfw:i2c_gd32vf|GD32VF103]], bitbang & hardware specific I2C implementations for the Risc-V+  * [[en:pfw:i2c_gd32vf|GD32VF103]], bitbang & hardware specific I2C implementations for the Risc-V
   * [[https://github.com/project-forth-works/project-forth-works/tree/main/Communication-Protocols/I2C/Raspberry3B%2B|Raspberry3B+]], bitbang & hardware specific I2C implementation for BCM2835   * [[https://github.com/project-forth-works/project-forth-works/tree/main/Communication-Protocols/I2C/Raspberry3B%2B|Raspberry3B+]], bitbang & hardware specific I2C implementation for BCM2835
-  * [[pfw:i2c_device-drivers|Generic device drivers]], for EEPROM, OLED, LCD, Clocks, etc.+  * [[en:pfw:i2c_device-drivers|Generic device drivers]], for EEPROM, OLED, LCD, Clocks, etc.
  
en/pfw/i2c.1693844097.txt.gz · Last modified: 2023-09-04 18:14 by uho