Graham2107
Member
I am running a PIC18F2620 at 115,200 and talking to a SIM20 rf module, with Fosc = 14.7456MHz.
I need to send 4-bytes of data to another device at 9,600, but without using the existing USART.
My thoughts were to use say RA0+RA1 as the RXD2 and TXD2 pins but I am battling getting the ASM code that I found somewhere on the net (for PIC16F84) to work.
I don't know whether it is my delay routines or something inherently wrong with the code.
Has anyone got any archived snippets of a soft UART, or point me in the right direction.?
I need to send 4-bytes of data to another device at 9,600, but without using the existing USART.
My thoughts were to use say RA0+RA1 as the RXD2 and TXD2 pins but I am battling getting the ASM code that I found somewhere on the net (for PIC16F84) to work.
I don't know whether it is my delay routines or something inherently wrong with the code.
Has anyone got any archived snippets of a soft UART, or point me in the right direction.?