2017-10-28, 18:28:59
I managed to get the PIC18F46K22 working. The baudrate division needs to be adapted and the output directon of the SEND pin needs to be set.
Some code snippets:
user_code.inc:
bsf TRISC, 7 ; make RX input (default)
bcf TRISC, 6 ; make TX output
ds30loader.asm:
#define UBRG (((OSCF / BAUDRATE) / 64) - 1)
If you don't use BRG16, that is.
Some code snippets:
user_code.inc:
bsf TRISC, 7 ; make RX input (default)
bcf TRISC, 6 ; make TX output
ds30loader.asm:
#define UBRG (((OSCF / BAUDRATE) / 64) - 1)
If you don't use BRG16, that is.