Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC18f45k22
#9
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.
Reply


Messages In This Thread
PIC18f45k22 - by richcj10 - 2015-03-05, 05:39:07
RE: PIC18f45k22 - by Mikael Gustavsson - 2015-03-06, 14:43:07
RE: PIC18f45k22 - by richcj10 - 2015-03-11, 07:05:28
RE: PIC18f45k22 - by richcj10 - 2015-03-13, 20:49:15
RE: PIC18f45k22 - by Mikael Gustavsson - 2015-03-15, 19:29:36
RE: PIC18f45k22 - by richcj10 - 2015-03-15, 22:38:24
RE: PIC18f45k22 - by Mikael Gustavsson - 2015-04-05, 21:04:06
RE: PIC18f45k22 - by richcj10 - 2015-04-18, 11:19:12
RE: PIC18f45k22 - by eur - 2017-10-28, 18:28:59
RE: PIC18f45k22 - by Mikael Gustavsson - 2017-10-31, 16:26:39

Forum Jump:


Users browsing this thread: 1 Guest(s)