CLEAR just clears all variables in RAM to 0. It doesn't affect ports. And when you declare something like MyVar VAR PORTD, this doesn't create a variable in RAM. It just creates an alias you can use VS using PORTD.
CLEAR just clears all variables in RAM to 0. It doesn't affect ports. And when you declare something like MyVar VAR PORTD, this doesn't create a variable in RAM. It just creates an alias you can use VS using PORTD.
Bookmarks