CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

I2C in assembly for PIC16F677

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
beginner



Joined: 26 Jun 2007
Posts: 2

View user's profile Send private message

I2C in assembly for PIC16F677
PostPosted: Tue Jun 26, 2007 7:25 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Jun 26, 2007 8:15 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Jun 26, 2007 8:22 pm     Reply with quote

Thanks for your advice. I appreciate it.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group