PDA

View Full Version : Occasional collision



Emil G
- 25th October 2008, 11:13
Hello!
I am writing program for 16F648A @4MHz, who should analyze two entries on RB.6 and RB.7 from optocouplers (cca 50-100ms), and using HSERIN with interrupt (9600) and ten bytes in the package. Is there a possibility to avoid collision with HSERIN interrupt while analyzing the situation with RB.6 and RB.7?
Thanks in advance!
Emil

bcd
- 25th October 2008, 12:26
The good thing about using the Hardware UART is that you have a two byte buffer, so you can be doing other things and still have data coming in.

bill.