| Electronic Components Datasheet Search |
|
DS1WM Datasheet(PDF) 6 Page - Maxim Integrated Products |
|
|
|||||||||||||||||||||||||||||
DS1WM Datasheet(HTML) 6 Page - Maxim Integrated Products |
|
6 / 20 page ![]() DS1WM 6 of 20 EXAMPLE – ACCELERATED ROM SEARCH In this example, the host will use the 1-Wire Master to identify four different devices on the 1-Wire bus. The ROM data of the devices is as shown (LSB first): ROM1 = 00110101… ROM2 = 10101010… ROM3 = 11110101… ROM4 = 00010001… 1) The host issues a reset pulse by writing 0x01h to the Command Register. All slave devices respond simultaneously with a presence detect. 2) The host issues a Search ROM command by writing 0xF0h to the Transmit Buffer. 3) The host places the 1-Wire Master in Accelerator mode by writing 0x02 to the Command Register. 4) The host writes 0x00h to Transmit Buffer and reads the returning data from the Receive Buffer. This process is repeated for a total of 16 bytes. The data read will contain ROM4 in the r’ locations and discrepancy bits set at d0 and d2 as shown (r’ locations are underlined, most significant discrepancy is bolded ): RECEIVED DATA 1 = 1000100100000001… 5) The host then de-interleaves the data to arrive at a ROM code of 00010001… with the last discrepancy at location d2. 6) The host writes 0x00h to the Command Register to exit Search Accelerator mode. The host is now free to send a command or read data directly from this device. 7) Steps 1-6 are now repeated to find the next device. The 16 bytes of data transmitted this time are identical to ROM4 up until the last discrepancy bit (d2 in this case) which is inverted and all data following is set to 0 as shown. The received data will contain ROM1 in the r’ locations and bits d0 and d2 will be set again: TRANSMITTED DATA 2 = 0000010000000000… RECEIVED DATA 2 = 1000110100010001… 8) Since the most significant discrepancy (d2) did not change, the next most (d0) will be used and the process repeats. Further iterations contain the data as shown: TRANSMITTED DATA 3 = 0100000000000000… RECEIVED DATA 3 = 1110010001000100… TRANSMITTED DATA 4 = 0101000000000000… RECEIVED DATA 4 = 1111010100010001… 9) At this point, the most significant discrepancy (d1) did not change so the next most (d0) should be used. However, d0 has now been reached for the second time and since there are no less significant discrepancies, the search is complete having found a total of four devices. |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |