DS 1302 and error message
I have been working with a Professional Development Board, a DS1302 time keeping chip and SX/B, I have studied the examples in the help files along with posted code from forum members.
And I have written this routine to load the register variables from button inputs. This program works like I had intended it to.
·My next step is to integrate it with the DS1302.
·
Before I do that I was wondering if the forum could give me an opinion of this code and any suggestions to make it better. I am new to this
and could use all the help I could get.
Some of it seems redundant to me but it works.
A few·members will recognize some code,· THANK YOU· I used subroutines that worked, and tried to write the rest
·
MikeW
·
I have continued with my program and have it working despite myself. I still have a few issues but will get to them eventually.
Right now I have one major issue!!
When I add the line
SEROUT LcdOut, LcdBaud, LcdBLon
To the main rutine of the program I get the error message
" SASM ERROR UNABLE TO ASSEMBLE DUE TO ERRORS IN SOURCE CODE"
then I get
"ERROR 30, PASS 2: OVERWRITING SAME PROGRAM COUNTER LOCATION"
if I do not include this line the program assembles ok.
what is causing this and is there anything I can do to correct it.
mike
I have attached the latest version clock_1.SXB
Post Edited (Mike W) : 3/13/2008 12:57:58 AM GMT
And I have written this routine to load the register variables from button inputs. This program works like I had intended it to.
·My next step is to integrate it with the DS1302.
·
Before I do that I was wondering if the forum could give me an opinion of this code and any suggestions to make it better. I am new to this
and could use all the help I could get.
Some of it seems redundant to me but it works.
A few·members will recognize some code,· THANK YOU· I used subroutines that worked, and tried to write the rest
·
MikeW
·
I have continued with my program and have it working despite myself. I still have a few issues but will get to them eventually.
Right now I have one major issue!!
When I add the line
SEROUT LcdOut, LcdBaud, LcdBLon
To the main rutine of the program I get the error message
" SASM ERROR UNABLE TO ASSEMBLE DUE TO ERRORS IN SOURCE CODE"
then I get
"ERROR 30, PASS 2: OVERWRITING SAME PROGRAM COUNTER LOCATION"
if I do not include this line the program assembles ok.
what is causing this and is there anything I can do to correct it.
mike
I have attached the latest version clock_1.SXB
Post Edited (Mike W) : 3/13/2008 12:57:58 AM GMT
Comments
Mike
· I compiled both of the programs you posted without any errors.
· Are you using the latest compiler ? Version 1.51.03 is the latest.
· It can be downloaded here: http://forums.parallax.com/showthread.php?p=597707
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.iElectronicDesigns.com
·
I am, using Version 1.51.03.
and both programs compiled for me too.
I think clock_1 is at the max E2Flash memory. if I delete a line of code then it will let me add a line, otherwise the error message.
I looked in device dialog box and it appeared to me that flash may be allmost full.
thanks
Mike
fixed
clock_2 attached
Post Edited (Mike W) : 3/13/2008 9:04:19 PM GMT