SPMA057D January 2018 – June 2022 TM4C1290NCPDT , TM4C1290NCPDT , TM4C1290NCZAD , TM4C1290NCZAD , TM4C1292NCPDT , TM4C1292NCPDT , TM4C1292NCZAD , TM4C1292NCZAD , TM4C1294KCPDT , TM4C1294KCPDT , TM4C1294NCPDT , TM4C1294NCPDT , TM4C1294NCZAD , TM4C1294NCZAD , TM4C1297NCZAD , TM4C1297NCZAD , TM4C1299KCZAD , TM4C1299KCZAD , TM4C1299NCZAD , TM4C1299NCZAD , TM4C129CNCPDT , TM4C129CNCPDT , TM4C129CNCZAD , TM4C129CNCZAD , TM4C129DNCPDT , TM4C129DNCPDT , TM4C129DNCZAD , TM4C129DNCZAD , TM4C129EKCPDT , TM4C129EKCPDT , TM4C129ENCPDT , TM4C129ENCPDT , TM4C129ENCZAD , TM4C129ENCZAD , TM4C129LNCZAD , TM4C129LNCZAD , TM4C129XKCZAD , TM4C129XKCZAD , TM4C129XNCZAD , TM4C129XNCZAD , TMP1826 , TMP1826 , TMP1827 , TMP1827
The Search algorithm uses a binary search tree. At every node, the algorithm can take the path dictated by either a “0” or “1.” The relationship between the two bits obtained in step 1 and the path to be taken in step 2 are given in Table 4-1.
Actual Bit Read Value | Complement Bit Read Value | Conclusions | Path to be taken |
---|---|---|---|
0 | 0 | Multiple devices have a corresponding 0 bit and a corresponding 1 bit | This is a conflict situation and requires a decision on which path to take |
1 | 0 | Only one device has a 1 in the corresponding bit location | The 1 path is taken |
0 | 1 | Only one device has a 0 in the corresponding bit location | The 0 path is taken |
1 | 1 | No devices are on the bus | End the search |
The only time that a decision must be made is when there is a conflict. In the other three cases, the path to be taken is already defined. Figure 4-1 shows the algorithm flow for a 4-bit search. The following variables in software are key to the search.