not sure but if you declare
TRISC = %10000000 'Set PORTC to all output except #7
PORTC = %00000000 'Set all outputs to 0 (off)
PORTC=%00000000
will make PORTC.7 as output.... not sure of this. Try to remove PORTC= line.
if data if wacked, maybe because of the Timeout label.
regards




Bookmarks