This one is for Chris
I am having a problem with a Basic Clock program. What I am trying to do is count the Hours and at a certain minute go do something. The problem I have is when I reach the setpoint the LCD drops off, and knocks off all saved information. I know it is the Minutes but just can not find a way to make it work.
X=Basically hours
IF X=70 AND MINUTES=$48 THEN MP
MP is a Moon Phase, that I am trying to incorporate into the scheme on the LCD
Thanks Guido
·
X=Basically hours
IF X=70 AND MINUTES=$48 THEN MP
MP is a Moon Phase, that I am trying to incorporate into the scheme on the LCD
Thanks Guido
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
·X= total hours,
MOON:
IF FLAG1=1 THEN RETURN
IF MINUTES=$00 THEN DYCT
RETURN
DYCT:
X=X+1
X=X
FLAG1=1
RETURN
At 70 hours or X and 48 minutes I want to create a new Moon Phase. The problem I am having is the Minutes will lock up the LCD, when it reaches 48 minutes.·I have no reason why.
X=70 (hours) and Minutes=$48 (minutes should let me proceed on the program, but it shuts the LCD down???????
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Yes I reset the Flag at Minutes=$01. One thing I guess I am not explaining very well is this. The LCD goes Blank for the peroid of one minute at 48 minutes. It looks like it loads the LCD down during this peroid. I even tried hooking up a LED as an output and it lights but is very dim....After the Minute it all goes back to running fine
·· I can't stress enough that it is obviously something in the code, but without it nobody is going to be able to help you.· It really sounds like you're asserting an I/O line somewhere that is fighting with something else.· You must be doing something in or around that routine or related.· Again, no code so it's impossible to tell.· There's really nothing programmatically you can do with the LCD to cause such a problem.· Although it is possible you're sending some sort of invalid characters to the LCD which is corrupting the display.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com