i think TOGGLE is only dedicated for i/o not register or variables.
If you use
it will return an error 'Invalid RAM location specified'Code:toggle TRISA.0
So the
is the way to go.Code:TRISA.0=TRISA.0 ^ 1
i think TOGGLE is only dedicated for i/o not register or variables.
If you use
it will return an error 'Invalid RAM location specified'Code:toggle TRISA.0
So the
is the way to go.Code:TRISA.0=TRISA.0 ^ 1
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi Steve,
I do not know a register but a bit variable works.
Here is an example.
Code:TRISA = 0 TRISB = 0 Test var bit Relay var PORTB.0 Test = 0 relay = 0 start: toggle relay 'This is an I/O. toggle test 'This is a variable. pause 1000 goto start end
Did you mean something else?
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks