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

DS1302 high current problem
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
pastruga



Joined: 05 Jan 2024
Posts: 5

View user's profile Send private message

PostPosted: Sun Jan 07, 2024 7:46 pm     Reply with quote

I think you are right.

During the initialization process, sometimes, for a very short period of time, I was pulling the chip TX line low while the chip was trying to pull it up for sending data. This effectively created a short circuit.
I changed the code and so far it works fine.
Ttelmah



Joined: 11 Mar 2010
Posts: 19231

View user's profile Send private message

PostPosted: Mon Jan 08, 2024 10:11 am     Reply with quote

You do realise there is a standard driver for the DS1302 with the compiler?.
pastruga



Joined: 05 Jan 2024
Posts: 5

View user's profile Send private message

PostPosted: Fri Jan 12, 2024 8:48 pm     Reply with quote

Yes, but the root cause was a wrong set of numbers. I used the RX line as TX. The driver works, but the initialization process (the PINS declaration) wasn't done properly.
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