SI2C Slave how to ?

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

User avatar
blueroomelectronics
Posts: 46
Joined: Mon Apr 23, 2007 3:48 pm
Location: Toronto
Contact:

Post by blueroomelectronics » Fri Sep 04, 2009 6:34 pm

I'll look forward to it Octal, thanks.

MichaelL
Posts: 16
Joined: Fri Jan 16, 2009 3:52 pm
Location: Germany

I2C Slave module

Post by MichaelL » Tue Apr 06, 2010 12:28 pm

Octal,
did you post the above mentioned module? And if yes, where?
Michael

drewappling
Posts: 14
Joined: Fri Feb 06, 2009 2:26 pm
Location: Spokane, WA

Post by drewappling » Fri Jul 09, 2010 4:32 pm

Octal,

I am also interested in the I2C slave module.

Drew

User avatar
octal
Registered User
Registered User
Posts: 586
Joined: Thu Jan 11, 2007 12:49 pm
Location: Paris IDF
Contact:

Post by octal » Thu Jul 15, 2010 11:05 pm

Hello,
well, I didn't really got time to make things clean and implement the I2CSlave as I would have expected.

You can download a version I used for some programs (that works fine).

I"ll try to find time to make the module more generic and implement all needed features, but for now I dont see any future for Swordfish basic, as it seems to have been aboundouned.
If a lot of users need really a full implementation, I can do it: about half a day to do it with all tests on real hardware!!!

let me know (by email), if I got a lot of request (at least 10 persons) I'll do it.

You can download an actual implementation and an example about using it.
This implementation does work on all 18Fxxx series that have old PIC16 state machine, it means on all:
These PIC18 family devices use I2C state machines
that behave the same as PIC16 devices:
• PIC18C452 Family (PIC18C242/252/442/452)
• PIC18C458 Family (PIC18C248/258/448/458)
• PIC18C601/801
• PIC18F4431 Family
(PIC18F2231/2431/4231/4431)
• PIC18F8720 Family
(PIC18F6520/6620/6720/8520/8620/8720)
• PIC18F1220/1320

and all their derivatives (in 18Fxx or 18Cxx versions).

For newer PICs, I need a little modification, explained in attched AN from Microchip on Page17. This modif is better implemented using #OPTION and defines in SF.
If really needed, I can implement all needed modifications, but really for now, since even SF does not support explicitely newer devices I dont see myself wast my time on such task.


I hope this helps.

downloads:
http://www.pocketmt.com/downloads/SlaveI2CModules.zip
Regards
octal

Post Reply