If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

PicŪ Basic

4 digit Keypad Number entry converted to a Word variable?

I am controlling a door latch with a 16F870 and MOSFET. (I am fully documenting this and will look to post when all together)
I currently have a static variable LatchTime hardcoded.
I am in the process of converting this code to allow the LatchTime to be a user variable entered via the keypad. I have thought about the process and wanted to see if anybody had come up with a simple and efficient process or is this the way?

Example code to illustrate the theory (Not tested: as at work - Lunch Hour)