Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC18F67J10 Bootloader at UART2 [solved]
#5
(2011-01-21, 21:36:39)Mikael Gustafsson Wrote: joeausro's fix is included in the latest package. It should work.

I've downloaded the latest package and tried it again, didn't work. Now I see why it didn't work for UART2. The registers were not updated accordingly:

In the Send() function, needs modification on 2 lines:
movwf UTXREG ;movwf TXREG
txwait btfss UTXSTA, TRMT ;txwait btfss TXSTA, TRMT

In the Receive() function, needs modification on 1 line:
movf URCREG,w ;movf RCREG, w

Not it works after the fix.
Reply


Messages In This Thread
RE: PIC18F67J10 Bootloader at UART2 - by vincewyh - 2011-01-21, 10:25:59
RE: PIC18F67J10 Bootloader at UART2 - by vincewyh - 2011-01-25, 05:07:38
RE: PIC18F67J10 Bootloader at UART2 - by vincewyh - 2011-01-28, 11:27:53

Forum Jump:


Users browsing this thread: 1 Guest(s)