Hello ALL,
I have almost scratched a hole in my head thinking of how to get a similar result that comes from using IF BIT SET command referenced to a TIME variable, but with a 14M2.
I am hoping to make an output HIGH if a particular bit of a TIME variable value is set and LOW if it is clear. The purpose of trying to do this is to flash an LED as a timer is running. I anticipate depending on the bit tested within the programming, my LED should flash faster or slower.
I do know the above code won't work because 'if bit' command is not supported by 14M2's.
So come on Guru's, come out of the woodwork and please show me the simple mathematical way to do this.
Regards,
Mort.
I have almost scratched a hole in my head thinking of how to get a similar result that comes from using IF BIT SET command referenced to a TIME variable, but with a 14M2.
I am hoping to make an output HIGH if a particular bit of a TIME variable value is set and LOW if it is clear. The purpose of trying to do this is to flash an LED as a timer is running. I anticipate depending on the bit tested within the programming, my LED should flash faster or slower.
Code:
main:
let w0 = time + 10
secondary:
if w0 bit 1 set then
high b.5
else
low b.5
endif
goto secondary
So come on Guru's, come out of the woodwork and please show me the simple mathematical way to do this.
Regards,
Mort.