View previous topic :: View next topic |
Author |
Message |
beginner
Joined: 26 Jun 2007 Posts: 2
|
I2C in assembly for PIC16F677 |
Posted: Tue Jun 26, 2007 7:25 pm |
|
|
Hi,
I have been working on assembly for a couple of months now. Recently, i started a project to implement I2C protocol in PIC16F677s in assembly. I am using two PICS (one master and one slave). The master is working properly as it is firmware controlled. But, the slave doesnot response at all. I have been using the slave mode configuration with start and stop bit interrupt to start with . I can see a clear start signal from the Master in the oscilloscope. But the interrupt is never called in slave. Do any of you guys have any suggestions for this? I was wondering if PIC16F677 support I2C at all? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jun 26, 2007 8:15 pm |
|
|
Because this is primarily a C forum, if you're doing ASM code, you should
probably ask your questions in the Microchip SSP forum:
http://forum.microchip.com/tt.aspx?forumid=10
There is an errata on the SSP module in which it starts up in a glitched
mode, unless you follow the method shown in the errata sheet.
They say it only applies to a few other chips in the 16F690 family, but
not to the 16F677. But what if they're wrong ?
http://ww1.microchip.com/downloads/en/DeviceDoc/80243G.pdf |
|
|
beginner
Joined: 26 Jun 2007 Posts: 2
|
|
Posted: Tue Jun 26, 2007 8:22 pm |
|
|
Thanks for your advice. I appreciate it. |
|
|
|