freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

1-wire搜索算法中英文翻譯資料-其他專業(yè)-文庫吧資料

2025-01-27 06:32本頁面
  

【正文】 1 (器件 C) = 0 ? 讀第一個(gè)數(shù)據(jù)位的補(bǔ)碼 cmp_id_bit: 0 (器件 A) AND 1 (器件 B) AND 0 (器件 C) = 0 ? 由于 id_bit_number LastDiscrepancy, 設(shè)置 search_direction = 0, last_zero = 1 ? 發(fā)送當(dāng)前值為 0的 search_direction 數(shù)據(jù)位 , 使器件 A與器件 C轉(zhuǎn)換到等待狀態(tài) ? id_bit_number 值增到 2 ? 讀第二個(gè)數(shù)據(jù)位 id_bit: 0 (器件 B) = 0 ? 讀第二個(gè)數(shù)據(jù)位的補(bǔ)碼 cmp_id_bit: 1 (器件 B) = 1 ? 由于數(shù)據(jù)位與其補(bǔ)碼不同設(shè)置, search_direction = id_bit ? 發(fā)送當(dāng)前值為 0的 search_direction數(shù)據(jù)位,查找到器件 B的 ROM_NO值為‘ 00’、 并且是當(dāng)前選擇 ? LastDiscrepancy = last_zero NEXT ? 1Wire主機(jī)執(zhí)行復(fù)位操作并等待在線應(yīng)答脈沖,若無在線應(yīng)答脈沖則結(jié)束 ? id_bit_number = 1, last_zero = 0 ? 發(fā)送搜索命令 ,0F0H ? 讀第一個(gè)數(shù)據(jù)位 id_bit: 1 (器件 A) AND 0 (器件 B) AND 1 (器件 C) = 0 ? 讀第一個(gè)數(shù)據(jù)位的補(bǔ)碼 cmp_id_bit: 0 (器件 A) AND 1 (器件 B) AND 0 (器件 C) = 0 ? 由于 id_bit_number = LastDiscrepancy, 設(shè)置 search_direction = 1 ? 發(fā)送當(dāng)前值為 1的 search_direction 數(shù)據(jù)位 , 使器件 B轉(zhuǎn)換到等待狀態(tài) ? id_bit_number值增值到 2 ? 讀第二個(gè)數(shù)據(jù)位 id_bit: 0 (器件 A) AND 1 (器件 C) = 0 ? 讀第二個(gè)數(shù)據(jù)位的補(bǔ)碼 cmp_id_bit: 1 (器件 A) AND 0 (器件 C) = 0 ? 由于 id_bit_number LastDiscrepancy, 設(shè)置 search_direction = 0, last_zero = 2 ? 發(fā)送當(dāng)前值為 0的 search_direction 數(shù)據(jù)位 , 使器件 C轉(zhuǎn)換到等待狀態(tài) ? 查找到器件 A的 ROM_NO 值為‘ 01’、并且是當(dāng)前選擇 ? LastDiscrepancy = last_zero NEXT ? 執(zhí)行 1Wire復(fù)位操作并等待在線應(yīng)答脈沖,若無在線應(yīng)答脈沖則結(jié)束 ? id_bit_number = 1, last_zero = 0 ? 發(fā)送搜索命令 ,0F0H ? 讀第一個(gè)數(shù)據(jù)位 id_bit: 1 (器件 A) AND 0 (器件 B) AND 1 (器件 C) = 0 ? 讀第一個(gè)數(shù)據(jù)位的補(bǔ)碼 cmp_id_bit: 0 (器件 A) AND 1 (器件 B) AND 0 (器件 C) = 0 ? 由于 id_bit_number LastDiscrepancy, 設(shè)置 search_direction = ROM_NO(第一位 )= 1 ? 發(fā)送當(dāng)前值為 1 的 search_direction 數(shù)據(jù)位 , 使器件 B轉(zhuǎn)換到等待狀態(tài) ? id_bit_number值增值 2 ? 讀第二個(gè)數(shù)據(jù)位 id_bit: 0 (器件 A) AND 1 (器件 C) = 0 ? 讀第二個(gè)數(shù)據(jù)位的補(bǔ)碼 cmp_id_bit: 1 (器件 A) AND 0 (器件 C) = 0 ? 由于 id_bit_number = LastDiscrepancy, 設(shè)置 search_direction = 1 ? 發(fā)送當(dāng)前值為 1的 search_direction 數(shù)據(jù)位 ,使器件 A轉(zhuǎn)換到等待狀態(tài) ? 查找到器件 C的 ROM_NO值為‘ 11’、并且是當(dāng)前選擇 ? LastDiscrepancy = last_zero 值為 0,所以設(shè)置 LastDeviceFlag = TRUE ? NEXT ? LastDeviceFlag值為 TRUE,所以返回 FALSE ? LastDiscrepancy = LastDeviceFlag = 0 高級(jí)變量搜索 有 3種利用同一組狀態(tài)變量 LastDiscrepancy、 LastFamilyDiscrepancy、LastDeviceFlag、 ROM_NO實(shí)現(xiàn)的高級(jí)變化搜索可以得到三種高級(jí)變量搜索算法,這幾種高級(jí)搜索算法允許來指定作為搜索目標(biāo)的器件的類型 (家族碼 )或者是指定需要跳過或驗(yàn)證某類型的器件是否在線 (參見表 4)。首先將 ROM_NO寄存器值設(shè)置 為已知的 ROM碼值,然后將 LastDiscrepancy和 LastDeviceFlag標(biāo)志位分別設(shè)置為 64(40H)和 0;進(jìn)行搜索操作,然后讀 ROM_NO的輸出結(jié)果;如果搜索成功并且 ROM_NO中存儲(chǔ)的仍是要搜索器件的 ROM碼值,那么此器件就在 1Wire總線上。若 1Wire總線 上有多片器件時(shí),通常是將搜索目標(biāo)首先定位在需注意的器件類型上,為了將一個(gè)特殊的家族作為搜索目標(biāo),需要將所希望的家族碼字節(jié)放到 ROM_NO寄存器的第一個(gè)字節(jié)中,并且將ROM_NO寄存器的復(fù)位狀態(tài)置零,然后將 LastDiscrepancy設(shè)置為 64(40H);把LastDeviceFlag和 LastFamilyDiscrepancy設(shè)置為 0。需要注意的是如果 1Wire總線上沒有掛接所期望的產(chǎn)品類型的器件,就會(huì)找出另一類 型的器件,所以每次搜索完成后,都要對(duì) ROM_NO寄存器中存儲(chǔ)的結(jié)果進(jìn)行校驗(yàn)。通過把LastFamilyDiscrepancy復(fù)制到 LastDiscrepancy,并清除 LastDeviceFlag即可實(shí)現(xiàn)該操作;在下一搜索過程就會(huì)找到指定家族中的下一個(gè)器件。 表 4 搜索變量狀態(tài)的設(shè)置 LastDiscrepancy LastFamily Discrepancy LastDeviceFlag ROM_NO FIRST 0 0 0 結(jié)果 NEXT 不變 不變 不變 結(jié)果 VERIFY 64 隨意 0 設(shè)置 ROM 校驗(yàn) ,搜索完后檢查結(jié)果是否正確 TARGET SETUP 64 0 0 將第一個(gè)字節(jié)設(shè)置為家族碼復(fù)位狀態(tài)置零 FAMILY SKIP SETUP 復(fù)制 LastFamilyDiscrepancy 不變 0 不變 1Wire Search Algorithm Abstract Dallas Semiconductor39。 devices each have a 64bit unique registration number in readonlymemory (ROM).That is used to address them individually by a 1Wire master in a 1Wire work. If the ROM numbers of the slave devices on the 1Wire work are not 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 1Wire interface. Table 1 Bit Unique ROM 39。 Number. MSB 64Bit 39。 ROM Number LSB 8Bit CRC MSB LSB 48Bit Serial Number MSB LSB 8Bit 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 branch paths until all of the leaves present are discovered. The search algorithm begins with the devices on the 1Wire being reset using the reset and presence pulse sequence. If this is successful then the 1byte search mand is sent. The search mand readies the 1Wire devices to begin the search. There are two types of search mands. The normal search mand (0F0 hex) will perform a search with all devices participating. The alarm or conditional search mand (0EC hex) will perform a search with only the devices that are in some sort of alarm state. This reduces the search pool to
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1