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

PIC16F1936 General Call problem

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



Joined: 30 Mar 2011
Posts: 6
Location: Hampshire

View user's profile Send private message

PIC16F1936 General Call problem
PostPosted: Mon Apr 04, 2011 1:39 am     Reply with quote

I have a problem when I try to address my PIC (which is a slave device) with the General Call (00) address. As soon as I do this, the READ/WRITE bit of SSPSTAT register is set to READ. Therefore, the subsequent data clocked by the master device does not make it to the SSPBUF register of my slave device.

Has anyone seen this problem before?
I believe I have set my registers correctly, and can post them on this site if required.

Many thanks in advance.

Steve
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 04, 2011 11:46 am     Reply with quote

What happens if you use a different PIC, such as 16F877 ?

(and, what's your compiler version ?)
Steve Smith



Joined: 30 Mar 2011
Posts: 6
Location: Hampshire

View user's profile Send private message

PostPosted: Thu Apr 07, 2011 1:17 am     Reply with quote

Sorry for the delay, it has been manic at work.

The General Call seems to work absolutely fine when I used a PIC16F767.
However, it was decided to change to the PIC 16F1936 as it is a newer device with on board EEPROM.

The compiler version is 4.119.

Thanks for looking into this.

Regards

Steve
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