Re: [Flashforth-devel] I2C word are not implemented in AVR but in PIC
Brought to you by:
oh2aun
From: Peter J. <pe...@me...> - 2014-11-09 05:50:17
|
Now that the teaching term is drawing to an end, I've had a chance to finally build a set of words for I2C master mode on AVR and PIC24. They're slightly different to Mike's PIC18 i2c-base words, in that some return flags, so I've built a corresponding new set for PIC18 as well. They're all in Forth since there doesn't seem to be much need for speed with an I2C device. The i2c-detect word (adapted from amforth) runs on top of this base set, with no change for all chip architectures, as does the small application for reading a TC74 temperature sensor. If these are of use to people, they might be included in the FF distribution. I've tried to choose names that are similar to, but will not clash with, the original i2c words for the PIC18. Cheers, Peter J. On 04/03/14 02:16, Mikael Nordman wrote: > I have not used the Atmega I2C yet so I have not implemented any support > for that. > > A contribution is of course welcome. Either in Forth or assembly. > > BR Mike > > On 03/03/2014 10:39 AM, Peter Jacobs wrote: >> My guess is that Mike had done the PIC18 i2c words as a demonstration >> for the PIC18 assembler. Building corresponding AVR words with his >> recently-written AVR assembler would be a good exercise for someone >> like you or me. It's on my list of things to try but I haven't got to it. >> Peter J. >> >> >> On 03/03/14 17:54, rfr...@gm... wrote: >>> Hallo >>> I would like to know why the i2c words aren't implemented in the AVR >>> Version. >>> What should i do to implement them? Is there anything which can be >>> reloaded? >>> Mit freundlichem Gruss >>> >>> R.Freitag >>> > |