[Flashforth-devel] Problem with I2C on ATMEGA328P
Brought to you by:
oh2aun
From: Mark W. <mar...@gm...> - 2017-05-10 17:05:37
|
Hello, The routine i2c.wait in i2c-base-avr.txt hangs the machine. : i2c.wait ( -- ) \ Wait for operation to complete \ When TWI operations are done, the hardware sets \ the TWINT interrupt flag, which we will poll. begin TWCR c@ mTWINT and until ; I'm trying to use the i2c.detect program in the FlashForth guide (PDF) to detect my i2c devices. I can see them just fine if I use a C++ program so I know the hardware is wired correctly. Regards Mark Wills |