reddogtj
- 20th May 2005, 05:58
Can anyone help? I'm using a pic 16f84a to control some relays. I want to have a variable delay using a pot. This is what was programed
POT 1,255,B0
Let B1 = B0 * 1000
pause B1
I was thinking that the pot val B0 would be multipled by 1000 (1sec) and end up being anywhere from 0 to 255 seconds worth of delay (or pause) Well, it only gives me from 0 to a little more than 1 second worth of delay.
I'm new to this and am a loss. Is this the wrong way to go about this? Please help!! Can you pont me in the right direction?
POT 1,255,B0
Let B1 = B0 * 1000
pause B1
I was thinking that the pot val B0 would be multipled by 1000 (1sec) and end up being anywhere from 0 to 255 seconds worth of delay (or pause) Well, it only gives me from 0 to a little more than 1 second worth of delay.
I'm new to this and am a loss. Is this the wrong way to go about this? Please help!! Can you pont me in the right direction?