On Fri, 23 Oct 2009 10:00:39 -0500, "Paul & Lynn Tyrer" said: > Just to update, I am hopelessly new and lost. I was a VB basic guy years > ago > and remember a little of what I need to do but not a lot. > I know I will need a place to store the count, and will have a call list > up > to 50 so when the count equals 10 I will have a call to put 1+0 on the > screen. > How do I : > Create a place to store the count. > Increment 1 to this count when the state changes > compare the stored count so when it equals 50 I increment the lcd by 1 > > I was hoping to find a piece of code out there in Google land to help me > but > as of yet I have not been successful. However I do feel a sense of > achievement coming this far. Hi Paul, It sounds like you are doing this in assembly language. At this point you have learned a bit about PICs and assembly language. I would suggest deciding what the purpose of the exercise is now, and by the way, congratulations you've gotten this far. If you want to become more proficient at assembly language, continue on the path you are on. But if you want to get your project done, I'd suggest looking into programming in C or even Basic. It gets the job done and for many people(myself included) assembly language is something you use for a subroutine once in a while, not your whole program. On the other hand, you are very close to being done with the program as it is. I don't know the book you've been using, style in programming PICs changed at a certain point because Microchip's tools improved. Most books I've seen use the old style where the program chunks were delineated by "org" and variables were in "cblock". Is that how your program is put together? Cheerful regards, Bob -- http://www.fastmail.fm - Same, same, but different... -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist