Looks like it should work.... have you remembered to disable the watchdog timer and anything else that could cause an unscheduled reset?
Looks like it should work.... have you remembered to disable the watchdog timer and anything else that could cause an unscheduled reset?
Like your comment said, PORTE only has 3 pins in that PORT.trise = %11111110 ' sets bit0 of trise as output - only has 3 ports on trise
By setting the upper bits of TRISE to all 1's, you have turned on the "Parallel Slave Port" (PSP) which affects PORTD.
DT
Bookmarks