Quote Originally Posted by richard View Post
...only if you want your code to work correctly
Who wouldn't?

At this point, it's just about blinking that LED.

But after that, how will I be able to avoid any such kind of "mistakes"?

Please, please don't answer "Easy! Just rfm!!!"

For week-ends hobbyist like me, is it better to stay with more "modest" PICs and/or always use workarounds like instead of:
Code:
TOGGLE LATB.6
PAUSE 500
...I should choose to stay with:
Code:
LATB.6 = 1
PAUSE 500
LATB.6 = 0
PAUSE 500