High Speed Serial Comm PC - PIC and PIC - PIC
Hi. I am 15, and I quite a newby in PICs.
I am working on a LED cube project, and need to send 32, 64, or 96 bytes through serial communication. Which is the higher speed I can get running at 20 Mhz??? And running at 40 MHz???
Also, is it better to use the USART module??? How does it work???
I hope you cal help me!!! This is a great forum!!!!
Thanks
Manuel
PS I hope i posted this thread in the right place!
Start using Interrupts if you haven't done yet.
Hi Manuel,
Whenever a byte is received by the USART it is made available in the receive buffer while the other byte (2byte buffer) still gets stuffed. You must read the byte before your another byte is full. If not, your USART faces a buffer underrun condition and an error is raised.
The USART supports interrupts and it is fired as soon as a byte is ready. You might be in middle of something but still can grab the data in your own buffer and resume. Later you can check for newly available data and modify your display. If you are doing multiplexing then you might be needing interrupts anyway to get good timings and display stabilty.
It is better if you have some sort of hardware block diagram.