Thread: [Flashforth-devel] I2C word are not implemented in AVR but in PIC
Brought to you by:
oh2aun
From: <rfr...@gm...> - 2014-03-03 07:54:44
|
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hallo</div> <div> </div> <div>I would like to know why the i2c words aren't implemented in the AVR Version.</div> <div> </div> <div>What should i do to implement them? Is there anything which can be reloaded?<br/> </div> <div class="signature">Mit freundlichem Gruss<br/> <br/> R.Freitag<br/> <br/> [x ] Köln<br/> [ ] Stuttgart<br/> [ ] Vilsbiburg<br/> [ ] Finkenwerder<br/> [ ] Berlin<br/> [ ] Überlingen<br/> [ ] Ingolstadt<br/> [ ] Frankfurt<br/> [] Radolfzell</div></div></body></html> |
From: Peter J. <pe...@me...> - 2014-03-03 08:39:40
|
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 > > [x ] Köln > [ ] Stuttgart > [ ] Vilsbiburg > [ ] Finkenwerder > [ ] Berlin > [ ] Überlingen > [ ] Ingolstadt > [ ] Frankfurt > [] Radolfzell |
From: Mikael N. <mik...@pp...> - 2014-03-03 16:17:06
|
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 >> |
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 >>> > |
From: <mik...@fl...> - 2014-11-10 17:02:12
|
Thanks Peter. I will include them in the distribution. Mike On 09.11.2014 07:32, Peter Jacobs wrote: > 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. > > |