I wrote this mikroC library, try it:How many software UARTs can I use in a PIC microcontroller??
By meaning carefully on C code ? Or assembly?As many as there are pins available but the more you use the slower they will all become. Most software UARTS in compiler libraries are blocking, meaning that once a serial byte has started to arrive, the routine waits until the last bit has been received before continuing the program again. This obviously makes it difficult to use more than one at a time but by carefully coding your own UART routines it is possible to use many in parallel.
So, if I want to use 2 software Uarts of mikroelektronika's library, they will work??I think it's not a problem of assembler versus C code. The problem is about mastering low-level PIC programming, particularly interrupts and timers. It can be achieved in C, a few lines of inline assembler can be helpful.
Yes, I think they will work but you must always re-init the mikroC Software UART library routines via the proper Soft_UART_Init, before using the other sw uart.So, if I want to use 2 software Uarts of mikroelektronika's library, they will work??