A cut-down version of https://os.mbed.com/users/Sissors/code/DS1820/ tweaked for use with the STM32F103. It is all generic Mbed operations though, so should be usable anywhere. Non-essential functions have been removed, as this is intended for use within a tutorial.
Dependents: STM32F103C8T6_DS18B20 stm32f103c8t6-ds18b20
Fork of DS1820 by
History
Fix timings
2018-01-25, by deece [Thu, 25 Jan 2018 07:33:48 +0000] rev 19
Fix timings
Remove stray tracer
2018-01-15, by deece [Mon, 15 Jan 2018 03:53:13 +0000] rev 18
Remove stray tracer
Working
2018-01-12, by deece [Fri, 12 Jan 2018 00:38:01 +0000] rev 17
Working
Broken - always gives a reading of 85C
2018-01-11, by deece [Thu, 11 Jan 2018 04:37:42 +0000] rev 16
Broken - always gives a reading of 85C
Removed specialized STM code (still uses OpenDrain mode), should work now still.
2017-03-11, by Sissors [Sat, 11 Mar 2017 20:35:59 +0000] rev 15
Removed specialized STM code (still uses OpenDrain mode), should work now still.
;
; Added NRF51822 support by adding a software delay function.
Switched for STM devices to OpenDrain mode. Since also OpenDrain mode is bugged for STM devices it has a workaround to properly enable it. Should be removed once STM fixes it in the mbed lib.
2017-01-08, by Sissors [Sun, 08 Jan 2017 17:26:21 +0000] rev 14
Switched for STM devices to OpenDrain mode. Since also OpenDrain mode is bugged for STM devices it has a workaround to properly enable it. Should be removed once STM fixes it in the mbed lib.
Switched to Sam's LinkedList
2015-03-09, by Sissors [Mon, 09 Mar 2015 20:41:08 +0000] rev 13
Switched to Sam's LinkedList
Fixed issue with multplie probes
2015-02-26, by Sissors [Thu, 26 Feb 2015 22:20:24 +0000] rev 12
Fixed issue with multplie probes
;
; The command byte got garbled after first sent, resulting in other runs no probes responding.
Renamed all CRC to _CRC to remove conflict with STM devices.
2015-02-16, by Sissors [Mon, 16 Feb 2015 16:53:11 +0000] rev 11
Renamed all CRC to _CRC to remove conflict with STM devices.
;
; Also changed some constants from double to float to stop compiler warnings.
correction of bugs compared to original library.; _Unitialized variable; _Wrong reading of temperature (when subdegree precision is required)
2015-01-30, by florian [Fri, 30 Jan 2015 11:07:10 +0000] rev 10
correction of bugs compared to original library.; _Unitialized variable; _Wrong reading of temperature (when subdegree precision is required)