Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help needed for 16F1827 bootloader [solved]
#3
Hello Mikael,

I got the bootloader to work last night, I had to add the following code into user_code.inc

Code:
ifdef    ANSELB

                ;error Do you need to configura uart pins to be digital? If not, remove this line

                banksel  ANSELB
                clrf     ANSELB
                banksel  TRISB
                movlw    B'11110011'                 ;  hardware-UART Tx/Rx direction
                movwf    TRISB
                banksel  PORTB
                movlw    B'11111111'
                movwf    PORTB
            endif


now the bootloader works

I also set the config bits in settings.inc for my setup

regards Andrew
Reply


Messages In This Thread
Help needed for 16F1827 bootloader [solved] - by andcvi - 2013-03-17, 07:28:22
RE: Help needed for 16F1827 bootloader - by andcvi - 2013-03-19, 00:19:48
RE: Help needed for 16F1827 bootloader [solved] - by HavenTech - 2022-07-20, 14:06:00

Forum Jump:


Users browsing this thread: 1 Guest(s)