1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

PIC Digital Clock

Discussion in 'Microcontrollers' started by muralibhat, Feb 11, 2007.

  1. muralibhat

    muralibhat New Member

    Joined:
    Dec 25, 2006
    Messages:
    22
    Likes:
    0
    Hi I need a 16F877A digital clock circuit with DS1307 and 2*16 LCD display with source code Kindly Help
     
  2. BeeBop

    BeeBop Active Member

    Joined:
    Dec 22, 2005
    Messages:
    1,281
    Likes:
    23
    Location:
    Vancouver Canada
    Would you like fries with that?

    There must be a ton of them out there. Have you googled?
     
  3. muralibhat

    muralibhat New Member

    Joined:
    Dec 25, 2006
    Messages:
    22
    Likes:
    0
    Thanks
    Yes googled but did not get the specific one which I mentioned
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. BeeBop

    BeeBop Active Member

    Joined:
    Dec 22, 2005
    Messages:
    1,281
    Likes:
    23
    Location:
    Vancouver Canada
  6. muralibhat

    muralibhat New Member

    Joined:
    Dec 25, 2006
    Messages:
    22
    Likes:
    0
    Thanks I will Try the links
     
  7. pasanrobotics

    pasanrobotics New Member

    Joined:
    Feb 12, 2007
    Messages:
    27
    Likes:
    0
    Location:
    Sri Lanka
  8. muralibhat

    muralibhat New Member

    Joined:
    Dec 25, 2006
    Messages:
    22
    Likes:
    0
    Thank You The project you have suggested is good but it uses the LED not LCD any way it is simple to shift to LCD
     
  9. BeeBop

    BeeBop Active Member

    Joined:
    Dec 22, 2005
    Messages:
    1,281
    Likes:
    23
    Location:
    Vancouver Canada
    You should try it then. That is where the learning will take place. What language are you using?
     
  10. pasanrobotics

    pasanrobotics New Member

    Joined:
    Feb 12, 2007
    Messages:
    27
    Likes:
    0
    Location:
    Sri Lanka
    When u modified it to LCD plz give us schematics and codes:)
     
  11. jofp

    jofp New Member

    Joined:
    Feb 19, 2007
    Messages:
    2
    Likes:
    0
    guys, how about a digital clock using pic16f84a?? do you guys have any suggested sites??? because just like muralibhat i didnt got a specific result of this project using pic16f84a.... pls help!!! coz starting today i only got 10 more days left to do it..
     
  12. muralibhat

    muralibhat New Member

    Joined:
    Dec 25, 2006
    Messages:
    22
    Likes:
    0
    Of course I use assembly language
     
  13. BeeBop

    BeeBop Active Member

    Joined:
    Dec 22, 2005
    Messages:
    1,281
    Likes:
    23
    Location:
    Vancouver Canada
  14. muralibhat

    muralibhat New Member

    Joined:
    Dec 25, 2006
    Messages:
    22
    Likes:
    0
    Thanks I have dowloaded Hitech Picc LIte compiler just to know the how easy it is programm in C but I cannot install it becos it gives the message that the MPLAB IDE is 6.5 version or higher but My IDE is 6.0 version.
    Please help
     
  15. kchriste

    kchriste New Member Forum Supporter

    Joined:
    Jul 23, 2006
    Messages:
    3,677
    Likes:
    47
    Location:
    Victoria BC, Canada
  16. muralibhat

    muralibhat New Member

    Joined:
    Dec 25, 2006
    Messages:
    22
    Likes:
    0
    Problem in the circuit!

    Thaks everyone who cooperated
    I have finished the circuit and the program but the clock i.e.DS1307 starts only if I touch anu pins of any IC or positive terminal or ground. I cannot figure out the problem.Please Help
     
  17. BeeBop

    BeeBop Active Member

    Joined:
    Dec 22, 2005
    Messages:
    1,281
    Likes:
    23
    Location:
    Vancouver Canada
    Do you have decoupling capacitors(100nF, marked 104) between the power pin, and ground, for each of your chips?
     
  18. muralibhat

    muralibhat New Member

    Joined:
    Dec 25, 2006
    Messages:
    22
    Likes:
    0
    Thank you Bee Bop I will try this and inform you accordingly
     
  19. muralibhat

    muralibhat New Member

    Joined:
    Dec 25, 2006
    Messages:
    22
    Likes:
    0
    Hello, I have connected the caps but still it is not working . If I switch off the power suplay and turn it on after some time I found that the clock has incremented(Even If I do not touch the pins). I clock comes to halt only if I aplay power to PIC.As i explained earlier If I touch the pins then the display shows the clock increment
     
  20. BeeBop

    BeeBop Active Member

    Joined:
    Dec 22, 2005
    Messages:
    1,281
    Likes:
    23
    Location:
    Vancouver Canada
    Hmmm... are you clearing the 'clock halt' bit in the ds1307? Look on page 8 of your data sheet:
    Also, are you using a back up battery? If not, is the Vbat pin of the clock grounded?
     
  21. muralibhat

    muralibhat New Member

    Joined:
    Dec 25, 2006
    Messages:
    22
    Likes:
    0
    Thanks BEE BOP,
    I found the problem---I had connected a different power suplay for backlit(LCD)That was making the problem.Now I have connected the same power suplay which I use for the circuit.
    Now I have a different problem i.e. I cannot write to Ds1307 with new data. Is it neccessary to HALT the ds1307 before writing?Note that my clock is working and it starts from 00:00:00 and 01/01/00
     
    Last edited: Mar 11, 2007

Share This Page