码迷,mamicode.com
首页 > 其他好文 > 详细

Serial Poll Response Byte

时间:2014-11-20 18:42:21      阅读:326      评论:0      收藏:0      [点我收藏+]

标签:blog   http   io   ar   sp   for   strong   on   div   

理论描述:

  Serial polling is a method of obtaining specific information from GPIB devices when they request service. When you conduct a serial poll, the Controller queries each device, searching for the one that asserted the SRQ line. Each device responds to the poll by returning the value of the Status Byte contained in its Status Byte Register (see Figure 1). Device-dependent conditions, such as the presence of available data or an error condition, determine this value. ANSI/IEEE Standard 488.1-1987 specifies that one bit in the Status Byte, the RQS bit (bit 6), be TRUE if the device requested service. The other bits in the Status Byte are left to the instrument manufacturer to define. IEEE 488.1-compatible instruments may have bits that determine if an instrument error has occurred or if the device is conducting a self-test. Because these bit definitions are not consistent among instrument vendors, the method for determining the cause of a service request varies with each device.

bubuko.com,布布扣
Figure 1. Status Byte Register

总结

  1.serial poll response byte 是由函数"IBRSP"(或ReadStatusByte)获得,不可能通过其他函数(ibsta,此函数返回的是status word)。

  2.serial poll response byte 是存储在Status Byte Register(一个字节)里面的,不是存储在Status Word(16字节)里面的。

  3.If Bit 6 (0x40) is set (the RQS bit—bit 6 in the device‘s Status Byte Register—is TRUE),then the device requested service.

  4.If Bit 6 (0x40) is set, then the SRQ line is asserted to indicate to the Controller that this device is requesting service.

  5.有两个RQS(一个在Status Word里面定义,一个在serial poll response byte里面定义)。RQS is set in the Status Word whenever the hex 40 bit isasserted in the serial poll response byte of device。

 

Serial Poll Response Byte

标签:blog   http   io   ar   sp   for   strong   on   div   

原文地址:http://www.cnblogs.com/askdong/p/4111170.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!