how can i know the time with BS2 ?
farsad
Posts: 27
dear friends:
i want to record some data with my BS2 every one hour (like a data logger). my problem is that i don't know when to recored the data and how i can use the BS2 clock for knowing the time. for example, in QBasic or VBasic there is a Time function which returns the current time and i can use it and collect my data every one hour. is there any similar function in PBasic?
thanks
i want to record some data with my BS2 every one hour (like a data logger). my problem is that i don't know when to recored the data and how i can use the BS2 clock for knowing the time. for example, in QBasic or VBasic there is a Time function which returns the current time and i can use it and collect my data every one hour. is there any similar function in PBasic?
thanks
Comments
start:
for x = 1 to 3600······· '= total pause of 1 hour
pause·1000········'= 1 second
next
'record data
gotostart
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
Regards,
QuattroRS4
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Necessity is the mother of invention'
www.parallax.com/dl/docs/books/sw/exp/sw30.pdf
Are but a few examples out there ...
Regards,
Quattro
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Necessity is the mother of invention'
what is the RTC? and how i can use it?
Have a look at the parallax link above and here !
www.parallax.com/dl/docs/books/sw/exp/sw30.pdf
a brief wiki here ....
en.wikipedia.org/wiki/Real-time_clock
more here ..
www.acmesystems.it/?id=105
and here ...
www.st.com/stonline/products/families/analog_and_mixed_signal/real_time_clocks/real_time_clocks.htm
Basically its an I.C that will keep track of date/time even when the microcontroller or stamp is turned off.... Do post your findings !!
Regards,
QuattroRs4
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Necessity is the mother of invention'
Post Edited (QuattroRS4) : 7/22/2007 5:59:28 PM GMT
thank you very much. i'm on it.
QuattroRs4
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Necessity is the mother of invention'