Real time clock ICs


Closed Thread
Results 1 to 40 of 67

Hybrid View

  1. #1
    Eng4444's Avatar
    Eng4444 Guest


    Did you find this post helpful? Yes | No

    Exclamation First thing to be said..

    I connected all the circuit with the new changes and then downloaded the program after adding the following:

    @ DEVICE pic16F628A, INTRC_OSC_NOCLKOUT
    ' System Clock Options
    @ DEVICE pic16F628A, WDT_ON
    ' Watchdog Timer
    @ DEVICE pic16F628A, PWRT_ON
    ' Power-On Timer
    @ DEVICE pic16F628A, BOD_ON
    ' Brown-Out Detect
    @ DEVICE pic16F628A, MCLR_OFF
    ' Master Clear Options (Internal)
    @ DEVICE pic16F628A, LVP_OFF
    ' Low-Voltage Programming
    @ DEVICE pic16F628A, CPD_OFF
    ' Data Memory Code Protect
    @ DEVICE pic16F628A, PROTECT_OFF
    ' Program Code Protection

    So now , when i compile with microcoe studio it compiles successfully. Bu when i want to program the IC, it gives a message :

    " this program contains EEDATA - EDATA and this part will be discarded"

    so i press "OK" and it begins programming.

    during the process, when it arrives to " Programming EEDATA section" it stops and gives this message:
    " Programming time-out or connection error"

    For sure i have no connection error because i tried a small program on another IC and it worked.

    any idea?

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Not from me, I don't use Microcode studio and avoid any questions on the topic.

    If you compiled your MN1307.bas code from a DOS Window...

    PBP -p16F628 MN1307 -v

    or

    PBP -p16F628A MN1307 -v

    depending which version you're using... It will compile.

    Likewise I can't comment on your method of programming the actual PIC.

  3. #3
    Eng4444's Avatar
    Eng4444 Guest


    Did you find this post helpful? Yes | No

    Arrow Dear Melanie,

    A real BIG thanks for this nice code.

    Here it worked :-)

    it is displaying time and date.

    Still a small problem that i will describe in details:

    1- it says to chose between 24 hours or 12 hours and this is working fine.
    2- chose time and date and things are also fine. In fact i chose today's date and time.

    3- when i press the middle button again to save, it says: MEMORIZED.

    but since then, time is not being updated on the screen. It is left all the time as i have set it since the beginning. I have waited 30 minutes and nothing has changed.

    By the way, i used the 3V battery and noticed that everything was changed to 4 whether by number or place. What i mean is:
    04:04:04
    04 Apr 2004

    so what do you suggest to do?

    more than 3/4 of the work is done and i need to continue it till the end.

    thanks in advance.

    By the way Bobk,

    i didn't use any capacitors but you were right about D4 till D7.
    so help me to finish it....

    I'll check in 1 hour.

    Bye.

  4. #4
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Eng4444,

    I'm glad to hear that you got it working. Now put the .1uF capacitors across each device and reset the project and see if it works. I slept in this morning so I'm running late for work. Keep plugging away!

    BobK

  5. #5
    Eng4444's Avatar
    Eng4444 Guest


    Did you find this post helpful? Yes | No

    Exclamation Same problem remaining..

    i got busy a bit and now i returned to work.

    I added the capacitors but nothing happened. the time is not advancing!!!!

    i changed the cristal (32.768) and placed a new one but also nothing happened...

    what is the reason??

    i can easily go to the menu and set the time and date whenever i want but after i see : "MEMORIZED", time and date freeze on LCD...

    can you help me Melanie? or anyone else..

    thanks.

  6. #6
    Eng4444's Avatar
    Eng4444 Guest


    Did you find this post helpful? Yes | No

    Angry Still not working...

    i added even a cristal 4M betweens pins 15 and 16 for the PIC16F628A with 2 capacitors but i'm still having same problem... time is not changing.

    It is just freezing on the LCD without any change...

    i also replaced the DS by a new IC and i still have the same problem..


    You guys should have expertise in those things and similar cases... i hope you will discover the matter...

    By the way, i also replaced the cristal of DS by another new one and i still have same problem...

    waiting for something from your part..

  7. #7
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Eng4444,

    Just got home from work and see that you are still having a problem. Just a quick question. Is the ability to set the time with the 3 push buttons really critical for you to show what you have done? If not then you could go to the part of the code that starts with "SETUP PRESET:" and enter the starting time and date manually. I will look over the code here this evening and get back to you on that.

    Adding the capacitors (.1uF) has nothing to do with this problem. They are part of good design practice.

    Just so I understand what has happened: You programmed the micro and the system started running and time and date was being displayed. You went into the set time and date mode and it accepted your time and date changes. Then you pressed the button to send you changes to the RTC and that's when it froze.

    I will look for that part of the code you sent me and compare it with Melanie's posted code. Just out of curiosity, did you copy and paste her code or did you retype the whole thing?

    Let me know. Thanks!

    BobK

Similar Threads

  1. real time clock
    By maria in forum Code Examples
    Replies: 44
    Last Post: - 1st March 2022, 13:13
  2. Real Time Clock
    By in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 2nd June 2012, 05:52
  3. real time clock - PCF8583
    By maria in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 15th April 2010, 16:41
  4. Real Time Clock
    By savnik in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th December 2006, 03:02
  5. Real time clock... what a headache!
    By Eng4444 in forum mel PIC BASIC
    Replies: 2
    Last Post: - 8th June 2006, 22:56

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts