This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Please advise on questions regarding TMP125.
CS! = 0
Transmit = 0x3000 (to indicate both shutdown and oneshot)
CS! = 1
wait >60ms/120ms
CS! = 0
Transmit = 0x3000 (to maintain shutdown but not initiate another oneshot)
CS! = 1
retrieve the 16
wait >60ms/120ms
Repeat
Please advise.
Thanks,
Mark
Hi Mark,
If your goal is to manually trigger one-shot conversions at the fastest interval then yes this code will work. The second time you write 0x3000 you will be triggering another one-shot conversion though, which seems correct based on what you are asking. For simplicity, I would recommend just leaving the device in continuous conversion mode, and polling every 120ms.
It should look like:
CS! = 0
Transmit = 0x0000 (or ground SI)
Retrieve 16bit data (will be from last conversion, just ignore the first one)
CS! = 1
wait > 120ms
Repeat
Using this method you can just connect SI to ground if you would like, as SI for the TMP125 is only for controlling shutdown mode.
If you would like to use Shutdown and one-shots you can do the following:
CS! = 0
Transmit = 0x3000 (trigger one-shot and return to shutdown)
Retrieve 16 bit data (will be from last conversion, again just ignore the first one)
CS! = 1
Wait > 60ms (or longer if you would prefer)
Repeat
I hope that information is helpful, just let me know if you have any more questions.
Best Regards,
Brandon Fisher