|
|
| Author |
Message |
zbasicandy
Joined: 26 Jan 2006
Posts: 193
|
|
Posted: 03 March 2006, 21:56 PM Post subject: Software Uart using interrupts. |
|
|
Can I use the same (input rx) pin as an interrupt pin(int0) on a software uart e.g. Comports 3-6?
Will this interrupt disturb the software uart from properly receiving data in the buffer.
What my application is to be made aware of data coming into the receive data buffer and process the data in a task waitforinterrupt.
I do not want to poll a status bits.
Any help? Newb. |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR
|
|
Posted: 03 March 2006, 22:59 PM Post subject: |
|
|
| Although I have not tried what you suggest, I can't think of any problems that would arise. That said, you should be aware that the received character won't appear in the input queue until about 10 bit times (assuming 8 data bits, 1 stop bit) after the leading edge of the start bit. This means that if you prepare WaitForInterrupt() to trigger on the leading edge of the start bit you'll have to delay a bit before you can retrieve the character. |
|
| Back to top |
|
 |
DrBASICStamp
Joined: 07 Mar 2006
Posts: 8
Location: London
|
|
Posted: 09 March 2006, 6:49 AM Post subject: i think i am having trouble here... |
|
|
i am missing a lot of data,
i am tryin to talk to my RS232 devices which
are continuously sending me field data,
but missing a LOT of my data..
HELP!!!
Am i doing something wrong?  |
|
| Back to top |
|
 |
stevech
Joined: 23 Feb 2006
Posts: 657
|
|
Posted: 09 March 2006, 21:29 PM Post subject: |
|
|
To help you, you'll need to provide more information than just "it doesn't work!"
how many serial streams and at what rates would be a good start.
Are these bi-directional or receive-only? |
|
| Back to top |
|
 |
|