There is a very basic software only (no RTC chip required) elapsed timer demo, ready to run, just an LCD and one Button only, at the bottom of this thread here...
http://www.picbasic.co.uk/forum/showthread.php?t=3423
There is a very basic software only (no RTC chip required) elapsed timer demo, ready to run, just an LCD and one Button only, at the bottom of this thread here...
http://www.picbasic.co.uk/forum/showthread.php?t=3423
Hello,
Here i arrived and will test your program....
honestly, i liked the first program because it gives time and date. I really hope it will work.
By the way, don't think that i will say that "i" did it. But i will show the source of it and all the posts and replies for this thread.
i really hope i'll ba able to see something on LCD.
First thing is that i will change the bits from D4 TO D7 and connect them to PIC; moreover, i will put 4.7 K resistors and 0.1uF Capcitors
More infos to come soon!
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?
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.
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.
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
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.
Bookmarks