
Registered on : 02-07-2009
Messages : 43
OFF-Line
|
Hi
Need help Fast!
I have RS-232 data coming in in small packets (14 - 50 bytes)
at various times.
RS-232 baud rate is 625K
I get 100 to 2000 bytes per millisec.
Sometimes I have NO data for several milliseconds
ALL data is critical to the Host/PC application
Writing 2 small packets slow my thru-put & my RS-232 buffer overflows (its 16K bytes)
I need to concatenate the data into the PMA Buffer as I receive it.
I have tried to set the Tx Status of the PMA Buffer to NAK if its still VALID
Get the PMA Buffer count
then write the new packet to the tail of the PMA Buffer
Then update the SetEPTxCount()
This seems to fail, I think the HW may be going to CTR_LP() and starting to Transmit to the Host/PC
I am going to try to do Double buffering, but this will only be a stop-gap solution
Any Ideas?
Contact rgreenthal@inttechcorp.com
[ This message was edited by: rgreenthal on 25-09-2008 00:09 ]
|
|
|