Other Parts Discussed in Thread: TMP1826, TMP1827
// Send Bus Reset mcu_txOneWireReset(); // Send SKIP ADDRESS command mcu_txOneWireByte(0xCC); // Send TEMP CONVERT function mcu_txOneWireByte(0x44); // Wait for tCONV = 5.5 ms DelayMS(6); // Send Bus Reset // mcu_txOneWireReset(); // Send SKIP ADDRESS command // mcu_txOneWireByte(0xCC); // Send READ SCRATCHPAD-1 function // mcu_txOneWireByte(0xBE); // Read two bytes of temperature data TempLSB = mcu_rxOneWireByte(); TempMSB = mcu_rxOneWireByte(); Temp = TempLSB | (TempMSB << 8);
Application Note Implementing Host Controller for TMP1826 and TMP1827 Single-Wire Temperature Sensor -->> The code was implemented based on that document.
Using an oscilloscope, the results of executing the "mcu_txOneWireReset()", "mcu_txOneWireByte(0xCC)", and "mcu_txOneWireByte(0x44)" functions were printed and confirmed.
The results were output the same as the corresponding documents Figure 2-3 and Figure 2-4.
However, TempLSB = 0xff and TempMSB = 0xff continue to be output in the Read section.
Please advise.
Additionally, I would appreciate it if you could tell me the formula to convert the obtained TempLSB and TempMSB data into temperature values.
please











