阅读:1332回复:2
ce4.2下红外口改串口问题
2440的板子,通过修改注册表和代码,红外口改串口后。串口发数据正常,收数据不正常。收数据的调试信息和com1对比正常,发数据的调试信息和com1对比不同,如下:
SL_TxIntrEx SL_TxIntrEx : 1 SL_TxInt - *pTxBuffer = 0x31 SL_GetInterruptType : 0x6941BF58, 0x593, 0x20008C00, 0x5D2, 0x40, 0x0 SL_GetInterruptType: INTR_LINE INTR_LINE ReadLSR Line Status Register : 0x4 SL_GetInterruptType : 0x6941BF58, 0x493, 0x20008C00, 0x4D2, 0x40, 0x0 SL_GetInterruptType: INTR_RX SL_RxIntr SL_RxIntr : cRXChar = 0x67 SL_GetInterruptType : 0x69413F58, 0x493, 0x20000C00, 0x492, 0x0, 0x0 SL_GetInterruptType: INTR_NONE(pHWHead->bINT) SL_GetInterruptType : 0x69413F58, 0x493, 0x20000C00, 0x492, 0x0, 0x0 SL_GetInterruptType: INTR_NONE(pHWHead->bINT) InterruptType : 0x69413F58, 0x493, 0x20000C00, 0x492 rULCON: 0x3 rUCON: 0x2c5 rUFCON: 0x41 rUMCON: 0x1 rUERSTAT: 0x0 rUFSTAT: 0x0 rUMSTAT: 0x0 rUTXH: 0x0 rURXH: 0x0 rUBRDIV: 0x1a pHWHead->vUMSTAT: 0x0 pHWHead->CTSFlowOff: 0x0 SL_TxInt : Exit for loop ClearPendingInts SL_GetInterruptType : 0x6941BF58, 0x493, 0x20008C00, 0x492, 0x0, 0x1 SL_GetInterruptType: INTR_TX SL_TxIntrEx SL_GetInterruptType : 0x6941BF58, 0x493, 0x20000C00, 0x492, 0x0, 0x0 SL_GetInterruptType: INTR_NONE(pHWHead->bINT) 感觉是因为INTR_LINE中断引起的问题,请问INTR_LINE是如何产生的,是否2440的红外那个口和com1,2不太一样。 |
|
沙发#
发布于:2007-01-21 16:29
顶一下,我的串口也不够用了
|
|
板凳#
发布于:2007-01-22 19:50
可能是:
1.DRIVER中与IR相关的代码没有改对. 2.应用程序中有没有启用串口的IR模式? |
|
|