you must write to PORT register, not the PIN register !
of course you can write to PIN but then you get odd results as you do.
some mcu have toggle function built into PIN. _________________ Mark
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum