ok, shorting the power does seem to clear the problem, so it seems the residual power seems to be held in the supply line capacitors powering the chip, and on resuming the power its causing odd results
im quite new to pics, heres my start up code, do you see any problems, specifically regards initialising the gpios?
include "p10f200.inc"
list st=off
__CONFIG _MCLRE_OFF & _CP_OFF & _WDT_OFF
radix dec
;--< hardware >----------------------------------------------------
#define ignition GPIO,0 ; GP0 = active hi ignition relay
#define starter GPIO,1 ; GP1 = active hi starter relay
#define radio GPIO,2 ; GP2 = active hi radio relay
;******************************************************************
; main program *
;******************************************************************
org 0x000
; call dbdelay ; 32-msec debounce delay
start
movwf OSCCAL ;
movlw b'10011110' ; 10011110
; 1-------, IOC off
; -0------, weak pullups on
; --0-----, T0CS source Fosc/4
; ---1----, T0SE edge hi>lo
; ----1---, PSA prescale WDT
; -----110, PS prescaler 64
option ;
movlw b'00001000' ;
tris GPIO ; GP3 input, all others outputs
clrf GPIO ; set output latches to '0'
clrf swtmr ; clear 1 second timer
clrc ; clear Carry