Re: [Amforth] Getting I2C to work on Uno

2013-10-25 Thread Erich Waelde
Hello all, On 10/25/2013 08:11 PM, Matthias Trute wrote: > (some examples are only recently posted here). Extending the assembler > sources is only for the brave ones among us. Even though I belong to the brave ones (I have added rs485 support and a few related things in assembly [1]) I have in

Re: [Amforth] Getting I2C to work on Uno

2013-10-25 Thread Michael Picco
Thank you, Matthias. I think this will be quite helpful! Regards, Michael On 10/25/2013 11:11 AM, Matthias Trute wrote: > Hi Michael, > > >> These are the *definitions* of the constants for later use. The > >> WANT_TWI option includes the file device.inc at compile time and > > Where, exactly

Re: [Amforth] Getting I2C to work on Uno

2013-10-25 Thread Matthias Trute
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Michael, >> These are the *definitions* of the constants for later use. The >> WANT_TWI option includes the file device.inc at compile time and > Where, exactly, is the WANT_TWI option supposed to be set? In the > project file? I just updated t

Re: [Amforth] Getting I2C to work on Uno

2013-10-24 Thread Michael Picco
On 10/24/2013 11:12 AM, Matthias Trute wrote: > Michael, > > > Looking at the core/devices/atmega328p directory (for the Uno) I > > see three 'device.*' files and the atmega328p.frt file, which all > > have the notation "generated automatically, do not edit". In each > > of those I note reference

Re: [Amforth] Getting I2C to work on Uno

2013-10-24 Thread Matthias Trute
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, > Looking at the core/devices/atmega328p directory (for the Uno) I > see three 'device.*' files and the atmega328p.frt file, which all > have the notation "generated automatically, do not edit". In each > of those I note references to the T

Re: [Amforth] Getting I2C to work on Uno

2013-10-24 Thread Michael Picco
Hi Matthias, Looking at the core/devices/atmega328p directory (for the Uno) I see three 'device.*' files and the atmega328p.frt file, which all have the notation "generated automatically, do not edit". In each of those I note references to the TW* declarations desired for my Uno. If I shouldn'

Re: [Amforth] Getting I2C to work on Uno

2013-10-24 Thread Matthias Trute
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Michael, > Other than inserting the line ".set WANT_TWI = 1" into the main > project file, is there something else that needs to be done to get > the I2C capability? I use the amforth-shell for such tasks, it substitutes (if properly installed) th

[Amforth] Getting I2C to work on Uno

2013-10-24 Thread Michael Picco
Other than inserting the line ".set WANT_TWI = 1" into the main project file, is there something else that needs to be done to get the I2C capability? I insert that line, compile and flash the Uno, but when I look for the declarations of TWBR, etc., I don't find them. Perhaps there's a specific l