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.

Dependencies:   LinkedList

Dependents:   STM32F103C8T6_DS18B20 stm32f103c8t6-ds18b20

Fork of DS1820 by Erik -

Revisions of DS1820.cpp

Revision Date Message Actions
19:b9d69bad8185 2018-01-25 Fix timings File  Diff  Annotate
18:3a24aedc1e7c 2018-01-15 Remove stray tracer File  Diff  Annotate
17:045f96704cc6 2018-01-12 Working File  Diff  Annotate
16:d490e11c466d 2018-01-11 Broken - always gives a reading of 85C File  Diff  Annotate
15:236eb8f8e73a 2017-03-11 Removed specialized STM code (still uses OpenDrain mode), should work now still. File  Diff  Annotate
14:c591209285e9 2017-01-08 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. File  Diff  Annotate
12:196e9e54b033 2015-02-26 Fixed issue with multplie probes File  Diff  Annotate
11:1a3c3002b50c 2015-02-16 Renamed all CRC to _CRC to remove conflict with STM devices. File  Diff  Annotate
10:d297ce9ce422 2015-01-30 correction of bugs compared to original library.; _Unitialized variable; _Wrong reading of temperature (when subdegree precision is required) File  Diff  Annotate
9:3821ca0b7f14 2015-01-29 suppress a bug uninitialized variable File  Diff  Annotate
8:d87e11e8d012 2014-07-08 Instead of open drain use CMOS output for writing. Not according to standard, but can help for long busses. And helps with parasite powered via data pin (no external mosfet) File  Diff  Annotate
7:58b61681818f 2014-04-08 Added define for invalid conversion File  Diff  Annotate
5:2cd4928e8147 2014-02-24 Simplified code, works also on KL25Z now, added support for DS1822 File  Diff  Annotate
4:29264b0a2c9f 2013-08-07 Added check of CRC to end of search_ROM File  Diff  Annotate
3:8f2b7f4940b5 2013-08-01 Fixed to work with latest library version, allowed immediate return from convert_temperature(), and tidied up a few other things. File  Diff  Annotate
2:ee820a991b95 2011-12-15 Updated documentation. (maybe) File  Diff  Annotate
1:6a427f54e82c 2011-12-14 Added code to support the DS18B20 File  Diff  Annotate
0:61d83318f2d6 2010-12-19 Dec 18, 2010 First pubication File  Diff  Annotate