标题: K60的串口中断标志位如何清除?求解 [打印本页] 作者: liuCY 时间: 2012-11-10 12:38 标题: K60的串口中断标志位如何清除?求解 52.3.25 UART 7816 Interrupt Status Register (UARTx_IS7816)
The IS7816 register provides a mechanism to read and clear the interrupt flags. All flags/
interrupts are cleared by writing a 1 to the field location. Writing a 0 has no effect. All
bits are "sticky", meaning they indicate that only the flag condition that occurred since
the last time the bit was cleared, not that the condition currently exists. The status flags
are set regardless of whether the corresponding field in the IC7816 is set or cleared. The
IC7816 controls only if an interrupt is issued to the host processor. This register is
specific to 7816 functionality and the values in this register have no affect on UART
operation and should be ignored if 7816E is not set/enabled. This register may be read or
written at anytime、
这是文档上的有关串口中断寄存器的一些说明,UARTX_IS7816,但是在IAR的寄存器查看,只有UART0_IS7816,其它串口都没有这个寄存器,这该怎么操作???
作者: liuCY 时间: 2012-11-10 12:58
原来是自动清除的,好高端~作者: 野火 时间: 2012-11-10 13:00
不是自动清,需要你代码去清。读懂一下下面那句话吧:
All flags/interrupts are cleared by writing a 1 to the field location.作者: liuCY 时间: 2012-11-10 16:48
野火 发表于 2012-11-10 13:00
不是自动清,需要你代码去清。读懂一下下面那句话吧:
All flags/interrupts are cleared by writing a 1 ...