If HIGH / LOW works, but PORTD.7 = 1 DOESN'T work, that sounds like a sure sign that you don't have your pin correctly set as an output.
Using HIGH or LOW automatically sets the pin as an output first before it sets it high or low
Check your TRIS settings again. PORTD.7 = 1 SHOULD work if the port is set up right....
steve






Bookmarks