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 CCS Technical Support

pb 16f877 and eeprom 24cxxx

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



Joined: 05 Nov 2003
Posts: 2

View user's profile Send private message

pb 16f877 and eeprom 24cxxx
PostPosted: Wed Jun 30, 2004 3:50 pm     Reply with quote

Hello,
Here a strange problem. Shocked

I use eeprom 24c016, 24c064, 24c256 without difficulty with a 16f873. The same code with a 16f877 doesn't run, for example :
- 16f873
° Write 45 value at 0000 addresses - >
° Read 0000 addresses = 45 - > ok!
- 16f877 -
° Write 45 value at 0000 addresses
° Read 0000 addresses = FF - > bad!

However, the screens of data are exactly the same one with the oscilloscope. Except during the reading with the 16f877, epprom return 0b11111111. (I use 1k for pull-up.)

Thank you for your help
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 30, 2004 5:26 pm     Reply with quote

Quote:
I use eeprom 24c016, 24c064, 24c256 without difficulty with a 16f873.
The same code with a 16f877 doesn't run.

One PIC is a 28-pin package and the other is 40-pin (at least for DIPs).
So you probably have two different demo boards for this.
It's likely that there is an error in the wiring on the 2nd demo board.
Also, 1K is a bit small for i2c pullup resistors. I think the specification
says you must use at least 1.6K pullups -- not smaller than that.

If it still doesn't work after checking the wiring closely, then post
a small demo program that demonstrates the problem. If you're
using the CCS driver file unchanged, then don't post that file.
xzarius



Joined: 05 Nov 2003
Posts: 2

View user's profile Send private message

PostPosted: Fri Jul 02, 2004 4:49 pm     Reply with quote

hello,

Thank you for your assistance PCM.
I solved my problem. Some bad contacts were indeed causes some, but there was of another problem.
I use 8 serial 24c256. it was impossible of dialogue with these 8 memory.
After several tests, the memory appeared defective.
Return to the salesman, news memory and finished the problem... Smile

Still thank you Wink

Xzarius
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