Thanks a lot.

I'll go thru the provided links :)

Bye

Laurent

--- En date de : Ven 9.7.10, Sébastien Lorquet <squa...@gmail.com> a écrit :

De: Sébastien Lorquet <squa...@gmail.com>
Objet: Re: [Sdcc-user] Example or tutorial for I2C usage with PIC
À: "sdcc-user" <sdcc-user@lists.sourceforge.net>
Date: Vendredi 9 juillet 2010, 15h37



On Fri, Jul 9, 2010 at 3:25 PM, Laurent FAILLIE <l_fail...@yahoo.com> wrote:

Thanks Robert :)

I'll keep also this mail which help me for my server coding (on a PC under 
Linux).



But my concern is using this PIC as a slave. Any code for that ?
 Nothing new since http://github.com/texane/pic18f_i2c from fabien lementec.

There's always the Microchip AN 734 document for the moment.
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en011798

Does not look rocket science.




Thanks



Laurent



PS: when it's working, I'll put some workable example code on my own site 
because I don't think I'm the only one with such question ;D

Totally agreed. I coded an I2C master yesterday evening. I'll start coding the 
slave for PIC18 in the following days and post the related code.

My device will emulate a 7 bit slave with some registers accessed like this:

write(adr,reg) : START <DEVICE_ADDR_W> <adr> <dat> STOP
 read(adr): START <DEVICE_ADDR_W> <adr> RESTART <DEVICE_ADDR_R> <dat> STOP


Regards
Sebastien



-----La pièce jointe associée suit-----

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
-----La pièce jointe associée suit-----

_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user



      
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to