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

Need help with pcf8583 program
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Apr 16, 2008 1:02 pm     Reply with quote

I installed vs. 4.057 and moved SDA and SCL to pins E1 and E2.
It worked.

I just did a few tests. If you do any of the following things wrong,
you will get the output shown below:

1. Swap the SDA and SCL wires, so that SDA goes to SCL by mistake.
2. Forget to install either (or both) of the pull-up resistors.
3. Forget to connect the Vdd pin of the PCF8583 to +5v.
4. Connect pin A0 on the PCF8583 to a high logic level.
5. PCF8583 chip not installed at all.

Here is the bad output:
Quote:

255 45 165 165 45 25
255 45 165 165 45 25
255 45 165 165 45 25
255 45 165 165 45 25
255 45 165 165 45 25
255 45 165 165 45 25

At this point, I don't think there is any more I can do. It's up to you
to find the hardware problem. When you do, it will start working.
SET



Joined: 15 Nov 2005
Posts: 161
Location: Glasgow, UK

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Apr 16, 2008 1:18 pm     Reply with quote

Add to that list:

Futurelec board should be set to RTC mode, not Counter - Im sure you checked this but as well to check everything!
Curtisbeef



Joined: 13 Apr 2008
Posts: 12

View user's profile Send private message

PostPosted: Wed Apr 16, 2008 2:38 pm     Reply with quote

1. Tried and also double check to make sure its correct
2. Resistors are installed and enabled
3. Vdd is connected to 5V
4. Connected pin A0 to 5V still nothing
5. PCF8583 chip is installed Smile

still dont know whats up i saw that the A0 was unconnected and connected it to 5v i was sure that would be the end to all these problems but still getting nothing
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Apr 16, 2008 2:45 pm     Reply with quote

Quote:
A0 was unconnected and connected it to 5v

My post was a list of things not to do.

Please disconnect pin A0 (on the PCF8583) from +5v.
It should be connected to Ground.
Curtisbeef



Joined: 13 Apr 2008
Posts: 12

View user's profile Send private message

PostPosted: Wed Apr 16, 2008 6:03 pm     Reply with quote

ok its connected to ground but now that i had it connected to 5v and changed it back it doesnt work anymore i get no values at all could i have burnt it out by connecting 5V to that?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Apr 16, 2008 6:08 pm     Reply with quote

Connecting the A0 pin of the pcf8583 to +5v won't hurt the chip.
The A0 pin is pin 3 of the PCF8583.

If you slipped and touched +5v to another pin, then maybe it
damaged the chip.
Curtisbeef



Joined: 13 Apr 2008
Posts: 12

View user's profile Send private message

PostPosted: Wed Apr 16, 2008 6:10 pm     Reply with quote

Got it working again but still getting the same old values.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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