SI2C Slave how to ?
Moderators: David Barker, Jerry Messina
- blueroomelectronics
- Posts: 46
- Joined: Mon Apr 23, 2007 3:48 pm
- Location: Toronto
- Contact:
I2C Slave module
Octal,
did you post the above mentioned module? And if yes, where?
Michael
did you post the above mentioned module? And if yes, where?
Michael
-
- Posts: 14
- Joined: Fri Feb 06, 2009 2:26 pm
- Location: Spokane, WA
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
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