i added:
after where the uart is setup... still the same result however, it seems the PICRX line should be high at idle but it remains low after i load the boot loader.
as a reference i have this to set up the serial port:
and this for the oscillator and baud rate:
with XT selected in the config bits. i also can measure a clock if i look at the clkin pin of the oscillator
Code:
BSF TRISC, RC7
BCF TRISC, RC6
after where the uart is setup... still the same result however, it seems the PICRX line should be high at idle but it remains low after i load the boot loader.
as a reference i have this to set up the serial port:
Code:
movlw b'00100100' ;enable transmit and
movwf TXSTA_ ; high speed mode
movlw UBRG ;use only SPBRG_ (8 bit mode default) not using BAUDCON
movwf SPBRG_
movlw b'10010000' ;enable serial port
movwf RCSTA_ ; and receive
BANKSEL TRISC
BSF TRISC, RC7
BCF TRISC, RC6
and this for the oscillator and baud rate:
Code:
#define OSCF 4000000 ;xxx oscillator frequency
#define BAUDRATE 9600 ;xxx baudrate
with XT selected in the config bits. i also can measure a clock if i look at the clkin pin of the oscillator