计算机毕业设计外文翻译--1-Wire 搜索算法
《计算机毕业设计外文翻译--1-Wire 搜索算法》由会员分享,可在线阅读,更多相关《计算机毕业设计外文翻译--1-Wire 搜索算法(15页珍藏版)》请在毕设资料网上搜索。
1、 外文资料 1-Wire Search Algorithm Abstract Dallas Semiconductors 1-Wire devices each have a 64-bit unique registration number in read-only-memory (ROM).That is used to address them individually by a 1-Wire master in a 1-Wire network. If the ROM numbers of the slave devices on the 1-Wire network are not
2、known, then using a search algorithm can discover them. This document explains the search algorithm in detail and provides an example implementation for rapid integration. This algorithm is valid for all current and future devices that feature a 1-Wire interface. Table 1 Bit Unique ROM Registration
3、Number. MSB 64-Bit Registration ROM Number LSB 8-Bit CRC MSB LSB 48-Bit Serial Number MSB LSB 8-Bit Family Code MSB LSB Search Algorithm The search algorithm is a binary tree search where branches are followed until a device ROM number, or leaf, is found. Subsequent searches then take the other bran
4、ch paths until all of the leaves present are discovered. The search algorithm begins with the devices on the 1-Wire being reset using the reset and presence pulse sequence. If this is successful then the 1-byte search command is sent. The search command readies the 1-Wire devices to begin the search
5、. There are two types of search commands. The normal search command (0F0 hex) will perform a search with all devices participating. The alarm or conditional search command (0EC hex) will perform a search with only the devices that are in some sort of alarm state. This reduces the search pool to quic
6、kly respond to devices that need attention. Following the search command, the actual search begins with all of the participating devices simultaneously sending the first bit (least significant) in their ROM number (also called registration number). (See Figure 1.) As with all 1-Wire communication, t
7、he 1-Wire master starts every bit whether it is data to be read or written to the slave devices. Due to the characteristics of the 1-Wire, when all devices respond at the same time, the result will be a logical AND of the bits sent. After the devices send the first bit of their ROM number, the maste
8、r initiates the next bit and the devices then send the complement of the first bit. From these two bits, information can be derived about the first bit in the ROM numbers of the participating devices. (See Table 1.) Table 2 Bit Search Information Bit (true) Bit (complement) Information Known 0 0 The
9、re are both 0s and 1s in the current bit position of the participating ROM numbers. This is a discrepancy. 0 1 There are only 0s in the bit of the participating ROM numbers. 1 0 There are only 1s in the bit of the participating ROM numbers. 1 1 No devices participating in search. According to the se
10、arch algorithm, the 1-Wire master must then send a bit back to the participating devices. If the participating device has that bit value, it continues participating. If it does not have the bit value, it goes into a wait state until the next 1-Wire reset is detected. This read two bits and write one
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机 毕业设计 外文 翻译 wire 搜索 搜寻 算法
