Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Software UART
18-08-2014, 11:21 PM,
Software UART
My question is this, can be programmed software uart ??
where I can get information, I searched microchip, without much success.

I hope you can guide me.

PD: i use Pinguino OTG and i need 3 uart (2 hardware + 1 software).
19-08-2014, 12:53 AM,
RE: Software UART
Yes but it will be very slow and have quite high CPU overhead.

Not a good idea and if you have to ask... probably unwise to do it.

19-08-2014, 05:56 PM,
RE: Software UART
Hi all,
the attached sw_uart.pde is a very simple example to use the soft uart library in sw_uart.c. It was mainly tested with a 18f4550 board at 9600 bauds, Rx=RB5 Tx=RB4 (the two adaptable).
There are 5 functions :
void OpenUART(void);
unsigned char getcUART(void);
void getsUART( char *buffer, unsigned char length)
void putcUART(unsigned char);
void putsUART(char *buffer);

You certainly will be able to adapt this library to a 32bits chip


Attached Files
.c   sw_uart.c (Size: 6.95 KB / Downloads: 18)
.pde   sw_uart.pde (Size: 572 bytes / Downloads: 14)

Forum Jump:

Users browsing this thread: 1 Guest(s)