The TRIS bit for TX on P18f1220 seem not properly set.
See bellow:
Code: Select all
0x0080 0x8AAC BSF TXSTA, 5
;__Lib_UART_b14.mpas,42 ::
0x0082 0x0E90 MOVLW 144
0x0084 0x6EAB MOVWF RCSTA
;__Lib_UART_b14.mpas,43 ::
0x0086 0x8893 BSF TRISB4_bit, 4
;__Lib_UART_b14.mpas,44 ::
0x0088 0x8293 BSF TRISB1_bit, 1 <---- here