Quote Originally Posted by skimask View Post
1/2 way there...keep reading and re-reading...
And again...read the PBP manual about TOGGLE. Not that TOGGLE is a bad command, but there are other ways to flip a bit...

Anybody got the link to the R-M-W 'writeup' thread here?
The PIC is running 48Mhz here (apparently). I see possible R-M-W issues...

Besides that...look at your code...There are logical flow flaws (is that the correct way to put that?) in it...
How do you know TOGGLE isn't actually working the way it should?
Can you see that fast? I can't...
Thank you Skimask, you are right, I'm 1/2 way there and in fact even slightly further... I did read a little bit further also...

Found in the pic18F4550 data sheet that LATA is about the same as PORTA, so I changed PORTA.1 to LATA.1 and that solved the issue. However I do not understand why PORTA does not work and LATA works in this "example". Could somebody try to explain that shortly, I am sure it will help ohter people also. Knowing that LATx is included in the 18F pics, but still does not grasp how it (change toggle place) works like it does?
How could this be an r-m-w matter?

Regards
Key