paulfjujo
Advanced Member level 4
- Joined
- Jun 9, 2008
- Messages
- 1,466
- Helped
- 298
- Reputation
- 596
- Reaction score
- 283
- Trophy points
- 1,363
- Location
- France 01800
- Activity points
- 10,560
For my education as I do not use MikroC, does the "UART1_Write()" function wait for the transmit buffer to be empty or does it just blindly pass the parameter to the TXREG?"
a test on register is done before to fill it
Code:
UART1_Write:
;__Lib_UART_c67g12.c,62 ::
;__Lib_UART_c67g12.c,63 ::
L_UART1_Write3:
0x0A72 0xB2AD BTFSC TXSTA, 1
0x0A74 0xD002 BRA L_UART1_Write4
;__Lib_UART_c67g12.c,64 ::
0x0A76 0x0000 NOP
0x0A78 0xD7FC BRA L_UART1_Write3
L_UART1_Write4:
;__Lib_UART_c67g12.c,65 ::
0x0A7A 0xFFAEC42E MOVFF FARG_UART1_Write_data_, TXREG1
;__Lib_UART_c67g12.c,66 ::
L_end_UART1_Write:
0x0A7E 0x0012 RETURN 0