fernando_g
Senior Member
One of the beauties of the 14M is its PORTC capabilities...making an input to an output.
However when I simulate this condition in VSM, I get a HIGHC or LOWC simulation error.
Here is my code snippet. Please note, if I comment all PORTC 3 instances, or replace them with the normal output 3, the error disappears. Unfortunately, I need output 3 for something else.............
if compare >= 0 and compare < 4 then
let b0 = 0
high portc 3
endif
if compare >= 4 and compare < 126 then
let b0 = 32
low portc 3
endif
if compare >= 126 then
let b0 = 0
low portc 3
endif
However when I simulate this condition in VSM, I get a HIGHC or LOWC simulation error.
Here is my code snippet. Please note, if I comment all PORTC 3 instances, or replace them with the normal output 3, the error disappears. Unfortunately, I need output 3 for something else.............
if compare >= 0 and compare < 4 then
let b0 = 0
high portc 3
endif
if compare >= 4 and compare < 126 then
let b0 = 32
low portc 3
endif
if compare >= 126 then
let b0 = 0
low portc 3
endif