This was a time to switch to XC8 compiler, it was not hard at all, but appeared that using of UART in PIC18 series has some peculiarities.
At the moment of this article the XC8 compiler had libraries for work with a periphery in the folder /includes/plib. Now they got rid of it and experimenting with a different approach. Anyway the legacy support looks like quite a strong side for microchip. Well I used then usart.h library which now I regret I did.
Out tasks are:
- To write a single symbol
- To write a string
- To read 1 symbol = 1 byte
- To read a couple of bytes
I will be working with PIC18F14K50.Continue reading