PDA

View Full Version : How to select timeout related to buadrate for HSERIN ?



grich
- 7th May 2008, 09:18
Please help, Thanks in advance.

mackrackit
- 7th May 2008, 10:12
Are you meaning the timeout option if a signal is not present?
If so, the baud rate does not matter.

Or are you looking for how to use an interrupt with HSERIN?

grich
- 7th May 2008, 10:21
Yes.
Cause some of my application at buad rate 115,200 , I chose timeout = 2mS and 100mS.
Some of data overlap when timeout is different.

For interrupt, I ever tried but it's not working fine (may be I not really understand for USART interrupt).

mister_e
- 7th May 2008, 17:19
Post the offending code here, interrupt are not as this complicated... but most of us have been afraid to use them before understanding them, now that we understand... it's something we can't remove of most/all our stuff/suggestions :D