Need Help on Pocket Watch Module
Archiver
Posts: 46,084
Does anyone here knows a site for the source code of interfacing the
BS2 and the Pocket watch Module?
Thanks.
BS2 and the Pocket watch Module?
Thanks.
Comments
Good morning.
I downloaded the Solutions Cubed code for the PocketWatch but it is all in
hex. I could decode most of it but not all, and I'm really not comfortable
with hex simply because I almost never use it. What he is looking for as am
I is a code using decimal or English language. I wrote Gabe at Parallax
inquiring about the code that they supply with the module but have not heard
back yet. The biggest probelm I have is how do you define AM or PM.
Sid
I suspected it was in 24 hour format. Can't get to the download site - I'll
try again later in the day. Would really like to take a look at that code.
Thanks, Peter.
Sid
Will try that, Peter. Right now I can't get anywhere. Congestion I think.
I have that problem quite a bit here with the phone line access. Wish I had
my high speed cable back.
Sid
Here it is:
http://www.solutions-cubed.com/Products/PocketWatchB/pocketwatchB_download.h
tm
regards peter
Oorspronkelijk bericht
Van: mysemicon2000 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Lpx2Nrs_jcCwCbrqUoidS9PPHFcLP3f4_ck64EzabPysuKf20j9YalmKguu11OkTaaTAUTaOjq7F5h_gH6IirSUX]semiconductor@p...[/url
Verzonden: zaterdag 29 december 2001 2:26
Aan: basicstamps@yahoogroups.com
Onderwerp: [noparse][[/noparse]basicstamps] Need Help on Pocket Watch Module
Does anyone here knows a site for the source code of interfacing the
BS2 and the Pocket watch Module?
Thanks.
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Here is the url for the discontinued pocketwatch (not the pocketwatch
http://www.solutions-cubed.com/discontinued_download.htm
regards peter
Oorspronkelijk bericht
Van: mysemicon2000 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=lWNL06htAl-AnN6Vd9vT7XDJRKnNQNGdL_LCFJIkZLJiQ743YybnoAi6jDzpzx2fcWUSJ30Kb8puOj50gahI-Bk126v8]semiconductor@p...[/url
Verzonden: zaterdag 29 december 2001 2:26
Aan: basicstamps@yahoogroups.com
Onderwerp: [noparse][[/noparse]basicstamps] Need Help on Pocket Watch Module
Does anyone here knows a site for the source code of interfacing the
BS2 and the Pocket watch Module?
Thanks.
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
You should read the AN-101 application (pdf file) at
http://www.solutions-cubed.com/Download%20Data/Discontinued/an-101.pdf
This contains stamp2 code (for pocketwatch, not pocketwatchB) to program the
RTC.
There is also the datasheet for the pocketwatch.
http://www.solutions-cubed.com/Download%20Data/Discontinued/pocketdata.PDF
You need acrobat reader to open those pdf files.
You can get that at http://www.adobe.com
Regards peter
Oorspronkelijk bericht
Van: Newzed@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=U6XnDGdUaSf0tzUbn6CsBvmpNJqvmYCbEKydLzO3Var_PMUuOLyrl-eV3QHWQYN0DvOZKs-bg6AY]Newzed@a...[/url
Verzonden: zaterdag 29 december 2001 4:47
Aan: basicstamps@yahoogroups.com
Onderwerp: Re: [noparse][[/noparse]basicstamps] Need Help on Pocket Watch Module
For Peter
Good morning.
I downloaded the Solutions Cubed code for the PocketWatch but it is all in
hex. I could decode most of it but not all, and I'm really not comfortable
with hex simply because I almost never use it. What he is looking for as am
I is a code using decimal or English language. I wrote Gabe at Parallax
inquiring about the code that they supply with the module but have not heard
back yet. The biggest probelm I have is how do you define AM or PM.
Sid
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From the pocketwatch datasheet:
The time of day is tallied on 24 hour time. For example,
the hours value for the time 7:46PM would be '19'.
So I guess you cannot set it for AM or PM.
Only 24hr format is available.
Regards peter
Oorspronkelijk bericht
Van: Newzed@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=cQ-Iaozpd6ut2gKVOu71ZwjTZqmEoyYGz_F3Nd-zjGaCNwGJYBCK-jdNfE8KnKT6-fV6-g]Newzed@a...[/url
Verzonden: zaterdag 29 december 2001 4:47
Aan: basicstamps@yahoogroups.com
Onderwerp: Re: [noparse][[/noparse]basicstamps] Need Help on Pocket Watch Module
For Peter
Good morning.
I downloaded the Solutions Cubed code for the PocketWatch but it is all in
hex. I could decode most of it but not all, and I'm really not comfortable
with hex simply because I almost never use it. What he is looking for as am
I is a code using decimal or English language. I wrote Gabe at Parallax
inquiring about the code that they supply with the module but have not heard
back yet. The biggest probelm I have is how do you define AM or PM.
Sid
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
If you open the datasheet you will find examples at the second page.
Example 1: Set the time to 9:46PM , may 9, 1971
If you look at the diagram you see the programming sequence.
2ms pause low
followed by 55h 00h 00h 2Eh 15h 09h 05h 47h
meaning: preamble byte (55h or 85), command set the time (00h or 0), seconds
(00h or 0), minutes (2Eh or 46), hours (15h or 21),
day of month (09h or 9), month (05h or 5), year (47h or 71)
You may use decimal values or hex values whichever you prefer.
Regards peter
Oorspronkelijk bericht
Van: Newzed@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=fRw2yQ6ED0Jr5wlOPOgSfkJnp5pKH_8DKBqENsN0g8wm1epiHJ1wNpHkY_RUCKdyVAP3BhVy]Newzed@a...[/url
Verzonden: zaterdag 29 december 2001 4:47
Aan: basicstamps@yahoogroups.com
Onderwerp: Re: [noparse][[/noparse]basicstamps] Need Help on Pocket Watch Module
For Peter
Good morning.
I downloaded the Solutions Cubed code for the PocketWatch but it is all in
hex. I could decode most of it but not all, and I'm really not comfortable
with hex simply because I almost never use it. What he is looking for as am
I is a code using decimal or English language. I wrote Gabe at Parallax
inquiring about the code that they supply with the module but have not heard
back yet. The biggest probelm I have is how do you define AM or PM.
Sid
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
If you can't get to the site due to a splitup url (mine was when I got the
message back from Yahoo)
Goto the homepage
http://www.solutions-cubed.com/
Select products, select download, select discontinued products.
Then scroll down to the datasheets.
Here you will find the pdf files. (pocketwatch and AN-101).
Regards peter
Oorspronkelijk bericht
Van: Newzed@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=RGau9XVXHpmJ2pvZU40Gog6vC8Ppw00RtjewRyVuhHAKH0tKszSc1eYZdEX3nmh8QZ4Ds80tDp4]Newzed@a...[/url
Verzonden: zaterdag 29 december 2001 5:42
Aan: basicstamps@yahoogroups.com
Onderwerp: Re: [noparse][[/noparse]basicstamps] Need Help on Pocket Watch Module
For Peter
I suspected it was in 24 hour format. Can't get to the download site - I'll
try again later in the day. Would really like to take a look at that code.
Thanks, Peter.
Sid
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Here is some code that I wrote a while back to write to and read from a
PocketWatchB. The host mcu is a BSIIsx. I am not sure that the hex
values are correct for the date and time stated in the comments (I
changed it several times), but the communication should be fine. I
found the easiest way to convert the decimal numbers to hex values was
to use the handy microsoft calculator. You will need to tweak the baud
rate setting if you are not using a BSIIsx (faster clock than BSII).
Good luck!
peter
Here it is again:
'Settime routine for loading date and time data to PocketWatchB
'module from BSIIsx
'To be run before MouseMinderV4
'Adapted from PocketWatchB product datasheet
'Copyright 1999, Dr. Peter C. Charles
'CyberBiota, Inc.
'Set I/O pin directions
tends to get chopped of. This is my last try. If you are interested
in the code and it doesn't work this time, contact me off list at my
other email account (cyberbiota@h...) and I will email it to you
from there.
'*************
'Settime routine for loading date and time data to PocketWatchB
'module from BSIIsx
'To be run before MouseMinderV4
'Adapted from PocketWatchB product datasheet
'Copyright 1999, Dr. Peter C. Charles
'CyberBiota, Inc.
'Set I/O pin directions
input 15 'communication FROM Pocket Watch
output 14 'communication TO Pocket Watch
'Declare variables
ss var byte 'seconds
mm var byte 'minutes
hh var byte 'hours
dd var byte 'days
mo var byte 'months
yl var byte 'years low
yh var byte 'years high
Begin:
HIGH 14 'ensure no spurious start bit
PAUSE 1000
SetTimeCommand:
SEROUT 14,396,[noparse][[/noparse]$55,$00,$00,$00,$00,$18,$09,$63] 'This
line sets time and date in hex
'set for 0:0:00 AM, September 24, 1999
(maybe)
Loop1:
PAUSE 2000 'wait 2 seconds between reads
ReadTimeCommand: 'see what time it is presently
SEROUT 14,396,[noparse][[/noparse]$55,$02]
SERIN 15,396,5000,BadLoop1,[noparse][[/noparse]ss,mm,hh,dd,mo,yl]
DEBUG "Time: ",dec2 hh,":",dec2 mm,":",dec2 ss," ",dec2
mo,"/",dec2 dd,"/19",dec2 yl, cr
end
BadLoop1:
DEBUG "Unable to read time.", CR 'error trapping
GOTO Loop1