2011-01-25, 05:07:38
(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.