GreyHairOldGuy
New Member
PIC 18F4320
I have a flag (and a symbol)
Dim fpbc as Bit
Symbol scol = PORTD.7
I am trying to execute the following:
If scol = 1 Then fpbc = 0
scol is definately 1 but fpbc won't change from 1 to 0
When I run it through the Oshonsoft simulator it doesn't change either.
You're going to tell me I'm doing something stupid.
Please do so, but tell me where I am going wrong.
I am setting a flag and changing a count to exit from a While/Wend routine.
Perhaps that is my problem? I need to abort the count some times and didn't
think it was right for me to just jump over the Wend as I might mess up the stack?
Tks in advance - Mike
I have a flag (and a symbol)
Dim fpbc as Bit
Symbol scol = PORTD.7
I am trying to execute the following:
If scol = 1 Then fpbc = 0
scol is definately 1 but fpbc won't change from 1 to 0
When I run it through the Oshonsoft simulator it doesn't change either.
You're going to tell me I'm doing something stupid.
Please do so, but tell me where I am going wrong.
I am setting a flag and changing a count to exit from a While/Wend routine.
Perhaps that is my problem? I need to abort the count some times and didn't
think it was right for me to just jump over the Wend as I might mess up the stack?
Tks in advance - Mike
Last edited: