According to the following code, I think PIN A1 should be HIGH for 262msecs and LOW for 102msecs. This is not what is happening. I tried changing the SET_TIMER1(X) number but it doesn't seem to change anything.
What is it that I am doing wrong?
while(TRUE)
{
if(GET_TIMER1() <32768)
OUTPUT_LOW(PIN_A1);
if(GET_TIMER1()>32768)
OUTPUT_HIGH(PIN_A1);
}
}
//For some reason the code changed. So I fixed it again.
Last edited by Mill on Sun Jul 16, 2006 1:02 pm; edited 1 time in total
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Sun Jul 16, 2006 12:09 pm
Re-post your code, but this time, select the box in the posting window
to disable HTML. Example:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum