Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC24F16KA102 [solved]
#1
Hello
I found bug in bootloader. In PIC24F16KA102 uC U1RX and U2Rx pins are default use as analog input so UART don't work correctly.
Fix:

in ds30loader.s file:
Code:
;------------------------------------------------------------------------------
; Init
;------------------------------------------------------------------------------
        ; Uart
        .ifdef USE_BRGH    
            bset    UMODE, #BRGH
        .endif    
    mov     #0xffff,W0
        mov     W0,AD1PCFG
        mov        #UARTBR, W0         ;set    
        mov     W0, UBRG            ; baudrate

i added lines:
Code:
    mov     #0xffff,W0
        mov     W0,AD1PCFG

now bootloader works

Regards and thanks for great work
Reply


Messages In This Thread
PIC24F16KA102 [solved] - by dwight - 2010-08-13, 15:38:21
RE: PIC24F16KA102 - by Mikael Gustavsson - 2010-08-15, 13:31:43
RE: PIC24F16KA102 - by tyralek - 2010-12-06, 10:56:36
RE: PIC24F16KA102 - by Mikael Gustavsson - 2010-12-07, 23:50:06
RE: PIC24F16KA102 - by Mikael Gustavsson - 2011-01-17, 23:40:31

Forum Jump:


Users browsing this thread: 1 Guest(s)