描述:
w89c840的中断寄存器有如下说明
C14/CISR Interrupt Status Register
Most bits of the C14/CISR report the interrupt status. The assertion of the interrupt status, reported by bits
0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11 and 13, and the corresponding interrupt mask bits will cause a hardware
interrupt to the host.
A write with 1 value the status bit will clear them and write 0 will have no effect.
这个意思是说驱动向这个寄存器的相应位写1则清除中断,写0没有任何作用吗
这样推断的话是不是硬件产生中断的时候相应位是0,然后在ISR里都这个寄存器并检查相应位是不是0就可以知道是否是这个设备的中断了
但是其中有一位说明如下
A high indicates that there is no available transmit descriptor
during or after the packet transmission. The transmit process will
stay in suspend state.
这样看来当这一位相应的中断产生是这一位应当是1(high)何前面的推断矛盾
请高手给解释一下,顿首了
ps:几个术语 high, set都代表这一位是1
low,reset都代表这一位是0
assert代表有效,是0是1要看上下文
这些理解正确吗
解决方案1:
第一个说的是中断屏蔽位,写1屏蔽对应中断。
第二个的1应该是发送结束后硬件置的1,而非软件写入。