引用: 引用 17 楼 papapa123123 的回复:
如果收一个就产生中断 那芯片岂不是一直在中断么?
FCR 最低位 是个 0模式 或1模式选择的。 你要看看在模式0 或模式1下 FIFO怎么操作,根据你的手册。
FCR的最高位 这样子 你把FIFO Reset下,用0x87或0xc7
我已经在打开的时候reset了receive FIFO和send FIFO了。没有用的。
6.3 FIFO operation
The 32-byte transmit and receive data FIFOs are enabled by the FIFO Control
Register bit-0 (FCR[0]). With 16C2550 devices, the user can set the receive trigger
level, but not the transmit trigger level. The SC16C652 provides independent trigger
levels for both receiver and transmitter. To remain compatible with SC16C2550, the
transmit interrupt trigger level is set to 16 following a reset.
It should be noted that the
user can set the transmit trigger levels by writing to the FCR register, but activation
will not take place until EFR[4] is set to a logic 1.——这个EFR[4]我没有设置,发送照样没有问题,
The receiver FIFO section includes
a time-out function to ensure data is delivered to the external CPU. An interrupt is
generated whenever the Receive Holding Register (RHR) has not been read
following the loading of a character or the receive trigger level has not been reached——我的问题就在这里?