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
-
Abstract
-
Trademarks
-
1Introduction to 1-Wire
- 1.1
Bus Requirements
- 1.2
Powering
-
2Functional Description
- 2.1
Signaling on 1-Wire
- 2.2
Address Format of the 1-Wire Device
- 2.3
Typical Communication Flow on the 1-Wire Bus
-
3Functions Available in TivaWare for C Series for 1-Wire
Module
-
4Enumeration
- 4.1
Legacy Search Algorithm
- 4.1.1
Steps of the 3-Bit Search Algorithm
- 4.2
Fast Search Algorithm
-
5Summary
-
6References
-
7Revision History
4.1.1 Steps of the 3-Bit Search Algorithm
- Reset the bus and look for ATR responses. End the process if there are no devices on the bus.
- Send the Search ROM command if an ATR response is received.
- Read a bit from the devices
on the bus.
- Read the complement of the bit in step 3 from the devices.
- Check if both the bits are 1. If ‘yes,’ end the process. If ‘no’, continue.
- Check if the first read bit is a 0 and the second read bit is a ‘1.’ If ‘yes,’ write 0 onto the bus and go to step 14. If ‘no’, continue.
- Check if the first read bit is a 1 and the second read bit is a zero. If ‘yes’, go to step 9. If ‘no’, continue.
- Check whether or not ui32BitNumber is equal to i32ConflictBitNumber. If ‘yes’, continue. If ‘no’, go to step 10
- Write 1 onto the bus. Go to step 14.
- Check whether or not ui32BitNumber is less than i32ConflictBitNumber. If ‘yes’, continue. If ‘no’, go to step 12.
- Check whether or not the bit in the ui32BitNumber of the last ROM number is equal to 1. If ‘yes’, go to step 9. If ‘no’, continue.
- Write 0 onto the bus.
- Update the value of i32LastConflictZeroBitNumber with the ui32BitNumber.
- Check whether or not ui32BitNumber is equal to 63. If ‘yes’, go to step 1. If ‘no’, go to step 3.