Searching \ for '[PIC] I2C routines for the 16f84a microcontroller' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/i2cs.htm?key=i2c
Search entire site for: 'I2C routines for the 16f84a microcontroller'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] I2C routines for the 16f84a microcontroller'
2006\04\20@094906 by Jonathan Herr

picon face
I would like to know where I can find routines for the Pic16F84A microprocessor, since I am considering some projects that deal with I2C memoryt chips.  Any help would be appreciated, though I kinda like to stay away from C-like languages (i'm not the best yet when it comes to that language.)

Sincerely,
Jonathan Herr (dracosilv)

2006\04\20@100609 by Maarten Hofman

face picon face
Rochester, 20 April 2006.

First of all, if at all possible, avoid using the 16F84A. I believe the
16F88 has I2C built in (though using built-in I2C isn't necessarily simpler
than bit-banging I2C, it certainly is faster once the program is done, as
you can process other things while bytes are received/sent).

However, if you do want to use it, I'm sure the piclist.com website contains
various implementations of I2C. And if that is not enough, you could go to
my website, http://jen.mosha.net/PIC/ which, under "Drake 2" as a link to
base.asm. This base.asm contains all sorts of functions, some of which start
with I2C or EROM. I know that this is for the 16F628A, but the 16F628A is
very similar to the 16F84A, and porting the code should give no problems. A
more recent version of these files is available on sourceforge as
http://sourceforge.net/projects/drake-devkit which also contains the Drake 3
code, for the 16F877A, which shows how you can use the built in peripheral
(though the 16F88 peripheral might not work the same as that of the 16F877A:
I have the 16F88 but never tried to use the built-in I2C functonality).

All these implementations are in absolute mode assembly, so you might want
to make them relocatable. They do have a lot of comments.

The routines support random write, random read and sequential read. If you
also want sequential write, you might want to look at the Drake 4 project,
which is for the 16F688. These are basically the same routines, but I made
some minor modifications to allow sequential writes. Note that most memory
chips don't allow sequential writes outside of a page (256-byte boundary).
Another thing to be aware of is that the Drake 2/3 routines allow reading of
the internal EEPROM using the same routines, you might want to delete this
code (this internal EEPROM is referred to as IROM).

Greetings,
Maarten Hofman.

2006\04\20@101029 by Bob Axtell

face picon face
Jonathan Herr wrote:
> I would like to know where I can find routines for the Pic16F84A microprocessor, since I am considering some projects that deal with I2C memoryt chips.  Any help would be appreciated, though I kinda like to stay away from C-like languages (i'm not the best yet when it comes to that language.)
>
> Sincerely,
> Jonathan Herr (dracosilv)
>  
Email me offline and I'll send you some working code that will match ANY
PIC16.

--Bob

2006\04\21@000934 by Ravi Pailoor

flavicon
face
Hello Jonathan,

> I would like to know where I can find routines for the Pic16F84A microprocessor, since I am considering some projects that deal with I2C memoryt chips.  Any help would be appreciated, though I kinda like to stay away from C-like languages (i'm not the best yet when it comes to that language.)

http://echip.co.in/downloads/iic.asm

--
Best wishes and regards

Ravi
http://www.echip.co.in

2006\04\21@043252 by Marco Genovesi

flavicon
face

>> I would like to know where I can find routines for the
>> Pic16F84A microprocessor, since I am considering some
>> projects that deal with I2C memoryt chips....

I have missed the previous posts, so apologize for possible duplication of the answer.

try this:    

http://www.ubasics.com/adam/pic/archive.shtml

The files are "predko.zip" and "Tlogger.zip"

In "Tlogger" there is an example of I2C routines for 16F84 with a 24C64 memory.
However, in the two files the code is full commented, so probably is more easy to learn).


regards
Marco





More... (looser matching)
- Last day of these posts
- In 2006 , 2007 only
- Today
- New search...