By the way, recently I've found at one site very clever 1-Wire lib which uses UART to implement 1-Wire protocol and involves DMA for data transfers: http://we.easyelectronics.ru/STM32/stm32-1-wire-dma.html . The article is in Russian, but this should not be big problem due to big pieces of code inside. I may translate article, if necessary (or, perhaps, contact author and ask him if he can translate it). But my main concern is that library is written with standard peripheral library as a base, perhaps it worth to update it to use libmaple instead...
1-Wire ds18b20 code example
(17 posts) (7 voices)-
Posted 3 years ago #
-
Just received a new DS18B20.
Using the same code, I receive approx. 7K lower temperature readings.
So my other sensor is gone I guess.
I will make some tests to see, whether the difference is a kind of offset, or dynamic according to temperature level.
And my problem regarding the external crystal is also solved. Found something in the Docs area.Posted 3 years ago #
Reply
You must log in to post.