阅读:1072回复:3
请高手帮忙看看这是什么意思(关于寄存器的)
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要看上下文 这些理解正确吗 |
|
沙发#
发布于:2005-07-25 22:38
产生中断时候,相应的状态的bit位置为1,
处理中断后要清除中断位的吧(向对应的中断状态bit位写1) 偶这么理解的了。 |
|
|
板凳#
发布于:2005-07-26 13:36
就是说硬件中断时给这个状态寄存器里相应位写1
要清除这个中断驱动程序也要在相应位写1,写0没用 是这样翻译吗 |
|
地板#
发布于:2005-07-26 22:05
下面是引用driverlanser于2005-07-26 13:36发表的: 偶是这么理解的 |
|
|