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 Hardware with PIC 16F877 and PCW Ver 3.184 ????

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







I2C Hardware with PIC 16F877 and PCW Ver 3.184 ????
PostPosted: Thu Jun 09, 2005 5:51 pm     Reply with quote

Hello All,


It is possible that the PCWH compiler ver 3.184 have some trouble with the I2C hardwares functions because when I use the software functions, all is ok but when I switch to the hardware functions, my PIC 16F877 stop
to the "i2c_start()" function.

I have read the other topics but my code seems to me good...

Did somebody it already use I2C hardware with a PIC16877 and PCWH
3.184??? Question

Can you help ?

Thanks !

Jean - Pierre
Ttelmah
Guest







PostPosted: Fri Jun 10, 2005 3:09 am     Reply with quote

I used most versions of CCS in the past, and cannot remember having a problem around this time wth I2C. However note the comment on version 3.223, about a problem with I2C_START on some chips.
Also, I am assuming that since you were previously doing this in software, the unit is running as a 'master', and that the unit at the other end, is a I2C peripheral, and not another PIC. Otherwise there is a silicon errata that may apply.
There are some things possibly worth checking:
Which 'speed' are you selecting?. Even if you are selecting the slow rate, the actual transfer speed may well be faster with the hardware, than with the emulation. I have seen some issues in the past with the I2C baud rate being incorrectly set. Use a software simulator, and verify that the BRG has a value that makes sense for your clock rate. Which inputs were you using for the software interface?. The hardware interface, has Schmitt trigger inputs, and requires the signals to get to higher levels than an input with a TTL buffer. Are your pull-up resistors low enough to guarantee this?.

Best Wishes
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