EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / AT89C52 with DS1307

AT89C52 with DS1307

|

Microcontroller › 8051 › AT89C52 with DS1307

  • This topic has 7 replies, 3 voices, and was last updated 12 years, 1 month ago by Rajagopal.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • March 4, 2014 at 12:04 pm #2919
    Rajagopal
    Participant

    My name is Rajagopal 70 years old, I knows basic electronics but no experience in current programming.

               I have purchased a few 7 segment 4 digit with AT89C52, RTC DS1307, 74LS595 (4nos), and ULN 2003 (4nos)  12hrs format and program preloaded assembled clock PCBs.

    I did 12” , and 15” height and 4’ long LED display with driver circuits, this clocks are working since 2- 3 years, with Accuracy and good condition.

                I made a another display for another clock board, but my soldering mistake it was not work , found the fault and modified it and found working  3 digit only, the 4th digit of 10hrs digit not work, I mean, run from 0 : 0 0 to 9 : 5 9 after 9 : 5 9 it is not going to 1 0 : 0 0 instead 1 0 : 0 0 it is going again 0 : 0 0 (three digits zeros) and run up to 9 : 5 9 then again  going 0 : 0 0 and run up to 3 : 5 9, after 3 : 5 9 it is going to 0 :  0 0 it mean, it is working as 10hrs + 10hrs + 4hrs for 24hrs, instead 12hrs format (12hrs + 12hrs  = 24hrs).

                Removed DS1307 ic and replaced a new DS1307, but working as above. Not only one, few new DS1307 ics replaced but same as above. 

               Now I doubt in AT89c52, what happened changed the program code in the AT89C52 it self, may it will possible?.

                Circuit and program are designed with AT89C52 for 12 hrs format earlier it was worked I assembled  two clocks still it is working, some unknown reason RTC  DS1307 is changed to 10hrs + 10hrs + 4hrs for 24 hrs format why?, and how to get it back to 12hrs format, may any one help me, please. 

    March 4, 2014 at 5:24 pm #11196
    SHAH DISHANT H.
    Participant

    Hi,

     

    We respect your eagerness to learn at this age.

     

    This problem sounds amazing. Can you please post code and schematic so that we can try to solve issue?

    March 4, 2014 at 6:53 pm #11198
    Rajagopal
    Participant

     

    Thanks for your reply
     
    I dont know the code because it is preloaded program,
     
    schemetic
     
     
     
     
    Thanks,
    krgopal
     
     
    March 5, 2014 at 9:44 am #11204
    Rajagopal
    Participant

    Thanks Mr.  for your reply,

     

    I dontknow the code, it was preloaded program, and I read out from 89c52 it is in HEX file.

     

     

    KRGopal  –  abiamarayahoo

    schemetic 

     

    wysiwyg_imageupload:11833:

     

     

    March 7, 2014 at 4:37 pm #11233
    SHAH DISHANT H.
    Participant

    Well, we can not help without code as everything is on programming.

     

    If required, we can give a try on developing code.

    March 7, 2014 at 4:52 pm #11237
    Ganesh Selvaraj
    Participant

    Hello Mr. Rajagopal,

     

    According to what you have written I don’t think there is any problem with the programme in the micrcontroller. You said that your 4th 7-segment display is not working well but you fixed it. Now what does that display show when the hours is in single digit? (I mean does is show 0 9 : 5 9 ?) and what does it show after 9 : 5 9?

    March 7, 2014 at 5:32 pm #11239
    Rajagopal
    Participant

    Mr. Ganesh Selvaraj,

     

    According to what you have written I don’t think there is any problem with the programme in the micrcontroller. You said that your 4th 7-segment display is not working well but you fixed it. Now what does that display show when the hours is in single digit? (I mean does is show 0 9 : 5 9 ?) and what does it show after 9 : 5 9?

     

     

    No, 0 : 0 0 (three digits zeros only) the 4th digit of 10s hrs digit  not working, after 9 : 5 9 it is not going to 1 0 : 0 0, instead 1 0 : 0 0 it is going again 0 : 0 0 (three digits zeros only 4th digit not lightup ) and run up to 9 : 5 9 then again  going 0 : 0 0 and run up to 3 : 5 9, after 3 : 5 9 it is going again to 0 :  0 0 it mean, it is working as (0:00 to 9:59 two times and 0:00 to 3:59 one time) 10hrs + 10hrs + 4hrs for 24hrs, instead 12hrs format (12hrs + 12hrs  = 24hrs).

     

    Thanks,

     

    Rajagopal.

    March 19, 2014 at 4:40 pm #11341
    Rajagopal
    Participant
    Dear all,
     
    Now I found the problem, now it is working as usual, I did in reset pin number 9 of AT89C52 just touch a wire with 5 volt positive  3 – 4  times now it is work as 12hrs format, after (0) 9 : 5 9 it is going to 1 0 : 0 0 and as usual, I mean that 4th digit of 10hrs digit is working, I think this happen is reset problem (why, I don’t know), This circuit is already having reset circuit that is one 10mfd capacitor connected with 5 volt positive and one 10 k resistance is connected with ground.
     
    And I am having another one problem in it, that, when touch with a metal piece (forceps or naked screwdriver) in any (positive or negative) pins of any ICs in this circuit, suddenly changes going in the display digits I mean, some segments are, on or / and off (Random) its self, after fraction of seconds it is back to normal, working OK, why this happen, this circuit have connected a 100 N disc capacitor in each 74LS595 ICs vcc to with ground.
     
    Thanks.
  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Getting into an LED bulb April 21, 2026
  • understanding of resonance in time domain April 21, 2026
  • Beginner Questions About CNC Machines – G-code, Control Systems & Accuracy April 21, 2026
  • A Must-Watch Video Showing Dangerous Construction of Cheap Lithium-Ion Cells April 21, 2026
  • S1MJ ? April 20, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise