<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>1-Wire. Работа с DS18B20. Часть 3</title>
		<description>Discuss 1-Wire. Работа с DS18B20. Часть 3</description>
		<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html</link>
		<lastBuildDate>Mon, 13 Apr 2026 06:49:24 +0000</lastBuildDate>
		<generator>JComments</generator>
		<atom:link href="https://chipenable.ru/index.php/component/jcomments/feed/com_k2/86.html" rel="self" type="application/rss+xml" />
		<item>
			<title>Дмитрий_92 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4855</link>
			<description><![CDATA[Подскажите пожалуйста, как правильно собрать значение температуры в знаковую переменную с плавающей точкой, типа float, чтоб значение хранилось в одной переменной и дальше с ним можно было делать всякие математические операции. Ну или хотя-бы с фиксированной точкой, просто скажем signed int.]]></description>
			<dc:creator>Дмитрий_92</dc:creator>
			<pubDate>Tue, 28 Jun 2016 19:38:37 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4855</guid>
		</item>
		<item>
			<title>ASDFG123 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4471</link>
			<description><![CDATA[#define RES_9BIT 0x1f
#define BUS OWI_PIN_0
#defi ne DS18B20_CONVERT _T 0x44
#define DS18B20_READ_SC RATCHPAD 0xbe
#define DS18B20_WRITE_S CRATCHPAD 0x4e
unsigned char scratchpad[9];
 unsigned char temperature;
.. ....
void main( void )
{ OWI_SendByte(DS18B20_WRITE_S CRATCHPAD, BUS); OWI_SendByte(0, BUS); OWI_SendByte(0, BUS); OWI_SendByte(RE S_9BIT, BUS); OWI_Init(BUS);
 .....
while (1)
{
OWI_Detec tPresence(BUS); OWI_SkipRom(BUS ); OWI_SendByte(DS18B20_CONVERT _T ,BUS);
__delay_ cycles(540000); //задержка 70мс
OWI_Detect Presence(BUS); OWI_SkipRom(BUS ); OWI_SendByte(DS18B20_READ_SC RATCHPAD, BUS); ...... Подскажите пожалуйста, правильно я запускаю датчик в 9 битовом режиме ?]]></description>
			<dc:creator>ASDFG123</dc:creator>
			<pubDate>Wed, 11 Mar 2015 05:36:18 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4471</guid>
		</item>
		<item>
			<title>Виктор says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4405</link>
			<description><![CDATA[У вас нет проекта в Atmel Studio??]]></description>
			<dc:creator>Виктор</dc:creator>
			<pubDate>Fri, 30 Jan 2015 16:31:38 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4405</guid>
		</item>
		<item>
			<title>feekus says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4374</link>
			<description><![CDATA[при прошивке на ATMegs32 выдает на дисплее число +127,9 что это может быть и как можно исправить?]]></description>
			<dc:creator>feekus</dc:creator>
			<pubDate>Thu, 18 Dec 2014 08:07:05 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4374</guid>
		</item>
		<item>
			<title>Ilya says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4358</link>
			<description><![CDATA[Подскажите код для вывода температуря через UART, для этого проекта.]]></description>
			<dc:creator>Ilya</dc:creator>
			<pubDate>Sun, 07 Dec 2014 08:09:33 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4358</guid>
		</item>
		<item>
			<title>IDHacker says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4311</link>
			<description><![CDATA[Потому что сначала надо запустить преобразование температуры. +85 это начальное значение температуры при подаче питания на датчик.]]></description>
			<dc:creator>IDHacker</dc:creator>
			<pubDate>Mon, 13 Oct 2014 02:40:40 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4311</guid>
		</item>
		<item>
			<title>IDHacker says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4310</link>
			<description><![CDATA[Статьи конечно познавательные, и библиотека для сборки градусников полезная. Но вот опять как у всех, нет внятных описаний алгоритмов работы. Ведь 1wire не такая уж сложная. Если подключать к UART всё складывается в отправку приём байтов. Как можно прикрутить чужую библиотеку когда в своей программе крутится пару таймеров и работает пяток прерываний. Совершенно невозможно представить временные интервалы. Опять же не расписан формат данных температуры, одни конструкторы, со своими библиотеками. Надо алгоритмы описывать, а не пихать свои библиотеки, ещё и без внятного описания всех функций библиотеки.]]></description>
			<dc:creator>IDHacker</dc:creator>
			<pubDate>Mon, 13 Oct 2014 02:39:10 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4310</guid>
		</item>
		<item>
			<title>Roman1984 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4231</link>
			<description><![CDATA[Здравствуйте у меня вопрос: почему при запуске датчик кратковременно выводит значение +85, а затем начинает показывать нормально?]]></description>
			<dc:creator>Roman1984</dc:creator>
			<pubDate>Tue, 08 Jul 2014 02:32:14 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4231</guid>
		</item>
		<item>
			<title>Vinipuhh13 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4102</link>
			<description><![CDATA[Пытаюсь скомпилировать проект в Atmel Studio 6. ошибка __builtin_avr_d elay_cycles expects a compile time integer constant, как я понял неправильно определяется версия компилятора и файл compilers.h не отрабатывается. что должно быть в этом файл только для AS6]]></description>
			<dc:creator>Vinipuhh13</dc:creator>
			<pubDate>Sat, 24 May 2014 12:44:14 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-4102</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3872</link>
			<description><![CDATA[Скинь rar архив проекта на форум (там есть ветка для временных проектов). Завтра попробую запустить у себя и напишу о результатах.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Tue, 18 Mar 2014 20:03:39 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3872</guid>
		</item>
		<item>
			<title>shurf says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3870</link>
			<description><![CDATA[Чертовщина какая-то. Ладно бы в 2, 4 или 1024 раза. А так - в три раза. Пробовал ставить разные частоты и делитель включать-выключ ать - то же самое, увеличивается в три раза(]]></description>
			<dc:creator>shurf</dc:creator>
			<pubDate>Tue, 18 Mar 2014 20:00:24 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3870</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3868</link>
			<description><![CDATA[Где-то неправильно задана тактовая частота. Эта библиотека многократно проверена.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Tue, 18 Mar 2014 19:56:51 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3868</guid>
		</item>
		<item>
			<title>shurf says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3846</link>
			<description><![CDATA[Пошуршал в протеусе с логическим анализатором - почему-то все тайминги увеличены в три раза 0_о]]></description>
			<dc:creator>shurf</dc:creator>
			<pubDate>Fri, 28 Feb 2014 18:12:04 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3846</guid>
		</item>
		<item>
			<title>shurf says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3842</link>
			<description><![CDATA[Прикрутил эту библиотеку без особых проблем, но когда читаю данные с датчика - датчик походу и не дрыгается - прут сплошные единички (Детект Пресенс показывает наличие датчика). Единички прут как в протеусе, так и в железе. Подскажите, куда копать?]]></description>
			<dc:creator>shurf</dc:creator>
			<pubDate>Wed, 26 Feb 2014 20:52:19 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3842</guid>
		</item>
		<item>
			<title>KiberPank says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3834</link>
			<description><![CDATA[Спасибо за обзор библиотеки и протокола. Очень помог, за пару часов всё запустилось. Еще добавить фенечек, чтобы не блокировало основную программу и будет шикарно) Сейчас этим и занимаюсь.]]></description>
			<dc:creator>KiberPank</dc:creator>
			<pubDate>Mon, 24 Feb 2014 18:47:20 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3834</guid>
		</item>
		<item>
			<title>decibel says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3828</link>
			<description><![CDATA[Разобрался, неправильна подключил библиотеку в Include Directories.]]></description>
			<dc:creator>decibel</dc:creator>
			<pubDate>Thu, 20 Feb 2014 17:19:44 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3828</guid>
		</item>
		<item>
			<title>_Артём_ says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3819</link>
			<description><![CDATA[Попробуйте так:
#include "..\common_file s\OWIdefs.h" или пропишите директорию в которой лежит OWIdefs.h в настройках проекта и тогда можно писать так:
#include "OWIdefs.h"]]></description>
			<dc:creator>_Артём_</dc:creator>
			<pubDate>Sun, 16 Feb 2014 15:21:47 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3819</guid>
		</item>
		<item>
			<title>decibel says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3817</link>
			<description><![CDATA[Помогите пожалуста. Вроде всё сделал как в Проекте для AVR Studio 4. Но выдаёт error:./OWIPoll ed.h:24:34: fatal error: common_files\OW Idefs.h: No such file or directory. Кидает в эту строку #include "common_files\O WIdefs.h" в файле OWIpolled.h. Почему не находит OWIdefs.h?]]></description>
			<dc:creator>decibel</dc:creator>
			<pubDate>Sat, 15 Feb 2014 11:09:41 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3817</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3547</link>
			<description><![CDATA[Что значит как? Ну изменится. Нужно взять проект от этой статьи и прикрутить к нему USART драйвер/библиот еку.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Tue, 17 Dec 2013 09:30:12 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3547</guid>
		</item>
		<item>
			<title>RONIN says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3543</link>
			<description><![CDATA[мне нужно реализовать термометр с шагом измерений 0,5 градуса на атмеге48. показания выводить на ПК через usart.как изменится код для AVR Studio??]]></description>
			<dc:creator>RONIN</dc:creator>
			<pubDate>Sun, 15 Dec 2013 23:02:41 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3543</guid>
		</item>
		<item>
			<title>JoJo says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3537</link>
			<description><![CDATA[Подать команду write scratchpad, а затем передать три байта. Последний байт - значение конфигурационно го регистра. А он как раз устанавливает разрешение датчика.]]></description>
			<dc:creator>JoJo</dc:creator>
			<pubDate>Thu, 12 Dec 2013 22:13:01 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3537</guid>
		</item>
		<item>
			<title>RONIN says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3536</link>
			<description><![CDATA[а как изменить температурное разрешение датчика??]]></description>
			<dc:creator>RONIN</dc:creator>
			<pubDate>Thu, 12 Dec 2013 05:22:11 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3536</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3535</link>
			<description><![CDATA[Это радует.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Wed, 11 Dec 2013 23:09:31 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3535</guid>
		</item>
		<item>
			<title>angell says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3534</link>
			<description><![CDATA[Мужик! человеческой спасибо! с полпинка заработало!]]></description>
			<dc:creator>angell</dc:creator>
			<pubDate>Wed, 11 Dec 2013 16:51:18 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3534</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3353</link>
			<description><![CDATA[F_CPU должен быть определен в Make файле]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Thu, 17 Oct 2013 08:51:24 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3353</guid>
		</item>
		<item>
			<title>Сашка says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3352</link>
			<description><![CDATA[Такая проблемка: ругается на delay.h?, при компиляции сначала варнинг выдаёт:warning "F_CPU not defined for ",#define F_CPU 1000000UL продефайнено первой строчкой!!! потом 4 ошибки __builtin_avr_d elay_cycles expects an integer constant Судя по записям во вкладке Output ошибка вылазит ещё на стадии подключения библиотек. Другие библиотеки, использующие delay.h работают корректно. компилятор avr studio 5.1.208, пример для 4-й студии выдаёт те же ошибки. Может кто поможет разобраться через какое место работает эта студия? Спасибо.]]></description>
			<dc:creator>Сашка</dc:creator>
			<pubDate>Thu, 17 Oct 2013 04:49:58 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-3352</guid>
		</item>
		<item>
			<title>Sergofan5 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2856</link>
			<description><![CDATA[Делаю проект контроллера для аквариума в Atmel Studio 6 - никак не получается прикрутить DS18B20 - ругается на compillers.h, и экран у меня nokia3310 не посоветуете что можно придумать????]]></description>
			<dc:creator>Sergofan5</dc:creator>
			<pubDate>Sat, 04 May 2013 09:28:25 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2856</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2780</link>
			<description><![CDATA[Делить так можно только на степени двойки (на 2, 4, 8, 16). На 10 сдвигами разделить не получится. Я по крайней мере не знаю, как это сделать. Написав эту строчку, я в принципе никаких оптимизационных целей не преследовал. И сделал так скорее по старой привычке.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Mon, 08 Apr 2013 07:22:08 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2780</guid>
		</item>
		<item>
			<title>XanderEVG says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2779</link>
			<description><![CDATA[Да. По запаре я не сразу понял что temperature = (temperature]]></description>
			<dc:creator>XanderEVG</dc:creator>
			<pubDate>Mon, 08 Apr 2013 04:23:34 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2779</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2777</link>
			<description><![CDATA[Получается более компактный ассемблерный код на микроконтроллер ах без аппаратного умножителя.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Sun, 07 Apr 2013 19:32:35 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2777</guid>
		</item>
		<item>
			<title>XanderEVG says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2774</link>
			<description><![CDATA[temperature = (temperature]]></description>
			<dc:creator>XanderEVG</dc:creator>
			<pubDate>Sun, 07 Apr 2013 17:53:05 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2774</guid>
		</item>
		<item>
			<title>zoomerland says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2501</link>
			<description><![CDATA[Pashgan, писал вам ранее. Есть прогресс. После изменения OWI_DELAY_OFFSE T_CYCLES на 0 схема заработала в протеусе. Но на железе не хочет, ни в паразитном, ни в обычном исполнении :cry: Посоветуйте куда копать, уже замучался.]]></description>
			<dc:creator>zoomerland</dc:creator>
			<pubDate>Fri, 08 Feb 2013 11:06:07 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2501</guid>
		</item>
		<item>
			<title>IurriI says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2457</link>
			<description><![CDATA[Pashgan,в том то и дело, что вывожу необработанные данные вот таким образом	unsigne d int mask = 0x8000;	while(m ask) { if( tmp&mask )	lcd_data('1') ; else	lcd_data(' 0');	mask >>= 1; } и получаю следующие значения для отрицательных температур: Должно быть.. показания..... двоичный код 0,0 ............... ........0,0.... .......0000 -0.1........... ........... 0,0...........1 111 -0.2........... .......... -0.1........... 1101 -0.3........... .......... -0,3...... ....1011 -0,4........... .......... -0,3........... 1010 -0,5........... .......... -0,5........... 1000 -0,6........... .......... -0,5........... 0111 -0,7........... ...........-0,6 ...........1100 -0,8........... ...........-0,8 ...........0011 -0,9........... .......... -0,8........... 0010 Получается, что после умножения отбрасываетcя всё, что справа от запятой. А надо округлять с учётом младшего разряда. У меня код немножко другой, но я запускал твой проект и в Протеусе и в AVRStudio - та же байда. Потому и задал вопрос тут. Что-то не пойму как форматировать на этом сайте текст...]]></description>
			<dc:creator>IurriI</dc:creator>
			<pubDate>Mon, 28 Jan 2013 22:26:20 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2457</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2447</link>
			<description><![CDATA[Выведи на дисплей необработанное значение температуры с датчика и посмотри какие цифры он генерит. Если ты используешь мой код, то там есть округление. Выводится только один знак после запятой, но он соответствует температуре датчика.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Mon, 28 Jan 2013 04:21:57 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2447</guid>
		</item>
		<item>
			<title>IurriI says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2446</link>
			<description><![CDATA[Pashgan, спасибо за оперативность. Задавал я и CurrentValue и Granularity кратными 0.0625 - без толку. Округляет до десятых в меньшую сторону.Значит такая модель... А у меня проект работает только на частоте 4МГц. :-| Надо осваивать JTAG.]]></description>
			<dc:creator>IurriI</dc:creator>
			<pubDate>Mon, 28 Jan 2013 01:06:46 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2446</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2445</link>
			<description><![CDATA[Если будешь задавать там температуру кратно 0.0625 (это вес младшего разряда DS18b20), то все будет отображаться корректно.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Sun, 27 Jan 2013 20:34:01 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2445</guid>
		</item>
		<item>
			<title>IurriI says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2441</link>
			<description><![CDATA[В Протеусе, при отрицательных температурах, не верно отображаются десятые доли градуса. Это глюк модели? Кто-нибудь проверял на реальном устройстве? Буду очень признателен, если кто ткнёт в нужном направлении.]]></description>
			<dc:creator>IurriI</dc:creator>
			<pubDate>Sun, 27 Jan 2013 10:58:51 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2441</guid>
		</item>
		<item>
			<title>Дмитрий Д says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2394</link>
			<description><![CDATA[Закоментировал строку compilers.h в файле OWIde fs.h . Срезу же скомпилил - не знаю во что это потом выльется.)]]></description>
			<dc:creator>Дмитрий Д</dc:creator>
			<pubDate>Sun, 13 Jan 2013 10:13:15 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2394</guid>
		</item>
		<item>
			<title>Дмитрий Д says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2393</link>
			<description><![CDATA[Прости конечно, но у меня даже скачав и открыв твой проект в содевизион не компилится. Ошибка в библиотеке лсд_либ! Сам пишу в авр стидио 6, и ошибку compilers.h: No such file or directory OWIde fs.h уже 3 день парю) ничто не помогает. И проект на 4 тоже такое же дает.]]></description>
			<dc:creator>Дмитрий Д</dc:creator>
			<pubDate>Sat, 12 Jan 2013 19:41:45 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2393</guid>
		</item>
		<item>
			<title>zadorand says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2343</link>
			<description><![CDATA[По поводу compilers.h Нашел свою ошибку. прочиал комментарии в файле, убрал добавочные(анал огичные) строки для других компиляторов(IC CAVR,CODEVISION AVR). для avrstudio4 оставил: #ifndef COMPILERS_H #define COMPILERS_H #include #include #include #define __save_interrup t() SREG #define __restore_inter rupt(var) SREG = (var) #define __disable_inter rupt() cli() #define __enable_interr upt() sei() #define __delay_cycles( var) _delay_us((unsi gned int)(var)/(F_CP U/1000000)) #endif //COMPILERS_H]]></description>
			<dc:creator>zadorand</dc:creator>
			<pubDate>Fri, 28 Dec 2012 22:00:28 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2343</guid>
		</item>
		<item>
			<title>Валерий says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2329</link>
			<description><![CDATA[!]]></description>
			<dc:creator>Валерий</dc:creator>
			<pubDate>Thu, 27 Dec 2012 09:29:18 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2329</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2289</link>
			<description><![CDATA[Я залил проект для AVR Studio 4, смотрите как сделано там.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Tue, 18 Dec 2012 19:48:06 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2289</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2288</link>
			<description><![CDATA[Это не библиотека, это заголовочный файл для простого переноса проекта под три компилятора. В настройках AVR Studio нужно указать папку проекта. Я залил проект для AVR Studio 4, смотрите как сделано там.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Tue, 18 Dec 2012 19:47:52 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2288</guid>
		</item>
		<item>
			<title>Дмитрий Д says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2285</link>
			<description><![CDATA[ У меня такая же проблема. Не могу даже скомпилить оригинал на WinAvr. Выдает ошибку: compilers.h: No such file or directory	OWIde fs.h	24	23	cher novik2]]></description>
			<dc:creator>Дмитрий Д</dc:creator>
			<pubDate>Tue, 18 Dec 2012 12:45:54 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2285</guid>
		</item>
		<item>
			<title>zadorand says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2260</link>
			<description><![CDATA[В OWIdefs.h есть строка #include "compilers.h" Не понимает AVR studio. Нет там такой библиотеки. Подскажите, пожалуйста.]]></description>
			<dc:creator>zadorand</dc:creator>
			<pubDate>Wed, 12 Dec 2012 11:25:01 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2260</guid>
		</item>
		<item>
			<title>zadorand says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2245</link>
			<description><![CDATA[Мне не совсем понятно. Например, получили от датчика значение 0000 0101 0101 0000, что соответствует +85 градусов. Выделяем целое значение температуры, получаем 1010101. А вот дальше не понятно. На дисплей мы выводим символы и надо выделить сотни, десятки и единицы, для чего делим, отбрасывая остаток, на 100 и 10 соответственно. переменная у нас содержит двоичное число, 1010101%10 = ? как программа поступит? То ли результатом будит 101010(сто одна тысяча десять) , то ли двоичное число 0001000 (в десятичной СС 8). Может я туплю(Вы уж простите), но число в двоичной СС делим на число десятичной СС, что должно получиться?]]></description>
			<dc:creator>zadorand</dc:creator>
			<pubDate>Fri, 30 Nov 2012 16:50:00 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2245</guid>
		</item>
		<item>
			<title>zadorand says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2242</link>
			<description><![CDATA[немного не понял перевод в символы для отображения на дисплее. выделяем целую часть значения температуры(в двоичном коде), а вот потом не понятно каким образом преобразовать в десятичный код выделить сотни, дясятки, единицы и отобразить на дисплее.]]></description>
			<dc:creator>zadorand</dc:creator>
			<pubDate>Mon, 26 Nov 2012 13:07:37 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2242</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2238</link>
			<description><![CDATA[Не знаю. На этот вопрос может ответить только производитель датчика. Думаю, что нет. В любом случае последний байт ОЗУ содержит контрольную сумму и по ней всегда можно проверить содержимое ОЗУ.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Sat, 24 Nov 2012 11:53:38 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2238</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2237</link>
			<description><![CDATA[да]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Sat, 24 Nov 2012 11:48:38 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2237</guid>
		</item>
		<item>
			<title>zadorand says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2236</link>
			<description><![CDATA[при чтении озу датчика сначала считывается младший байт, а затем старший? при появлении нового значения температуры,так же сначала младший, затем старший. не может появиться ситуация, когда младший байт от нового значения температуры, старший от предыдущего?]]></description>
			<dc:creator>zadorand</dc:creator>
			<pubDate>Sat, 24 Nov 2012 06:27:04 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2236</guid>
		</item>
		<item>
			<title>zadorand says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2235</link>
			<description><![CDATA[Как я понял, при переводе значения температуры в дополнительный код, считываем старшибайт,сдви гая на 8бит влево, затем "приписываем" младший байт, проводим поразрядную инверсию и добавляем единицу. Так?]]></description>
			<dc:creator>zadorand</dc:creator>
			<pubDate>Sat, 24 Nov 2012 06:16:18 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2235</guid>
		</item>
		<item>
			<title>bohdan4ik13 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2206</link>
			<description><![CDATA[Огромнейшее спасибо за наглядный пример.]]></description>
			<dc:creator>bohdan4ik13</dc:creator>
			<pubDate>Sun, 11 Nov 2012 14:16:44 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2206</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2149</link>
			<description><![CDATA[Владимир, попробуй подключить другой датчик. Может быть этот испортился.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Mon, 08 Oct 2012 20:48:20 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2149</guid>
		</item>
		<item>
			<title>Владимир Андреевич says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2148</link>
			<description><![CDATA[ (scratchpad[1]& 128) у меня всегда = 128, ребята, что делать? Соответственно всегда минус и то число, что считается после, выводится как на дисплей. Зачем вообще ? Я понял почти все, кроме того что мне почему то приходят ms ls байты равные 11111111]]></description>
			<dc:creator>Владимир Андреевич</dc:creator>
			<pubDate>Sun, 07 Oct 2012 20:43:25 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2148</guid>
		</item>
		<item>
			<title>Владимир Андреевич says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2147</link>
			<description><![CDATA[if ((scratchpad[1] &128) == 0){ //проверяем старший разряд (scratchpad[1]& 128) у меня всегда = 128, ребята, что делать? Соответственно всегда минус и то число, что считается после, выводится как на дисплей. Зачем вообще ?]]></description>
			<dc:creator>Владимир Андреевич</dc:creator>
			<pubDate>Sun, 07 Oct 2012 18:38:29 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-2147</guid>
		</item>
		<item>
			<title>Netouch says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1963</link>
			<description><![CDATA[Но ведь tmp - unsigned int. разве tmp = -tmp в таком случае корретная запись?]]></description>
			<dc:creator>Netouch</dc:creator>
			<pubDate>Tue, 17 Jan 2012 13:25:18 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1963</guid>
		</item>
		<item>
			<title>Джо says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1675</link>
			<description><![CDATA[Жаль на асме нет кода :-)]]></description>
			<dc:creator>Джо</dc:creator>
			<pubDate>Sun, 11 Sep 2011 10:22:09 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1675</guid>
		</item>
		<item>
			<title>lamana says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1653</link>
			<description><![CDATA[ А у меня собран термометр на Atmega16,датчик и дисплей подключены к порту A, и на экране появляется только строка "Temp:- 0.0" (в случае 1 датчика) и "Sensors not not 0 "(в случае 2х датчиков). В чем может быть проблема???]]></description>
			<dc:creator>lamana</dc:creator>
			<pubDate>Mon, 29 Aug 2011 19:40:20 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1653</guid>
		</item>
		<item>
			<title>Valia says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1627</link>
			<description><![CDATA[подскажите пожалуйста, а как увеличить количество знаков после запятой (один знак мало)]]></description>
			<dc:creator>Valia</dc:creator>
			<pubDate>Tue, 09 Aug 2011 12:46:08 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1627</guid>
		</item>
		<item>
			<title>foxit says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1573</link>
			<description><![CDATA[ А есть данный пример для winavr?]]></description>
			<dc:creator>foxit</dc:creator>
			<pubDate>Sat, 02 Jul 2011 16:42:55 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1573</guid>
		</item>
		<item>
			<title>londo says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1527</link>
			<description><![CDATA[А как подсчитывается контрольная сумма?]]></description>
			<dc:creator>londo</dc:creator>
			<pubDate>Sun, 12 Jun 2011 08:35:41 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1527</guid>
		</item>
		<item>
			<title>stolyars says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1525</link>
			<description><![CDATA[У кого есть переделка под Атмегу8 и проект в протеусе для нее скинте в любой обменник пожалуйста или выложите сдесь(WinAVR)]]></description>
			<dc:creator>stolyars</dc:creator>
			<pubDate>Wed, 08 Jun 2011 16:27:48 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1525</guid>
		</item>
		<item>
			<title>Ivan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1507</link>
			<description><![CDATA[Вопрос, а в чем будут отличия если использовать датчики DS1820 или аналог DS18S20]]></description>
			<dc:creator>Ivan</dc:creator>
			<pubDate>Wed, 25 May 2011 16:21:14 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1507</guid>
		</item>
		<item>
			<title>ooogo says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1499</link>
			<description><![CDATA[Точно загнался, макроопределени е #define OWI_PIN PIND //!< 1-Wire Input pin register. pins входная переменная номер порта, значит 0, если датчик не ответил и 1, если датчик сформировал на шине импульс присутствия. извините, что так много написал. :-*]]></description>
			<dc:creator>ooogo</dc:creator>
			<pubDate>Sat, 21 May 2011 08:01:41 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1499</guid>
		</item>
		<item>
			<title>ooogo says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1498</link>
			<description><![CDATA[загнался все правильно 1, если датчик не ответил и 0, если датчик сформировал на шине импульс присутствия, но почему у меня не работает не знаю!? :-?]]></description>
			<dc:creator>ooogo</dc:creator>
			<pubDate>Sat, 21 May 2011 07:53:25 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1498</guid>
		</item>
		<item>
			<title>ooogo says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1497</link>
			<description><![CDATA[я конечно не спец, но по моему функция unsigned char OWI_DetectPrese nce(unsigned char pins) возвращает 0, если датчик не ответил и 1, если датчик сформировал на шине импульс присутствия, потому как по другому не отвечает. вырезка из файла OWISWBitFunctio ns.c в строке presenceDetecte d = ((~OWI_PIN) & pins); стоит инверсия]]></description>
			<dc:creator>ooogo</dc:creator>
			<pubDate>Sat, 21 May 2011 07:46:34 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1497</guid>
		</item>
		<item>
			<title>Kalyan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1439</link>
			<description><![CDATA[В общем все как в примере. :roll: На индикацию вывожу два младших байта (те шо с температурой). Проверяю в протеусе. И вот при фиксированной температуре их значения изменяются :cry: Сначала 0хFF, а потом вообще какие то произвольные значения! Может кто-то знает как с этим бороться??]]></description>
			<dc:creator>Kalyan</dc:creator>
			<pubDate>Fri, 08 Apr 2011 21:46:52 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1439</guid>
		</item>
		<item>
			<title>Kalyan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1438</link>
			<description><![CDATA[Добрый вечер! Пытаюсь поднять датчик по описанию. Вот код : while (1) { OWI_DetectPrese nce(BUS); OWI_SendByte(DS 18B20_SKIP_ROM ,BUS); OWI_SendByte(DS 18B20_CONVERT_T ,BUS); __delay_cycles( 16000000); OWI_DetectPrese nce(BUS); OWI_SendByte(DS 18B20_SKIP_ROM ,BUS); OWI_SendByte(DS 18B20_READ_SCRA TCHPAD, BUS); for(i = 0; i]]></description>
			<dc:creator>Kalyan</dc:creator>
			<pubDate>Fri, 08 Apr 2011 21:37:48 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1438</guid>
		</item>
		<item>
			<title>serg602009 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1437</link>
			<description><![CDATA[Очень интересная статья. Спасибо. Вопрос: хочу подключить 3 датчика к трем пинам, чтобы точно знать где какой находится. Достаточно ли просто переопределить пин, сначала #define BUS OWI_PIN_7 , потом - #define BUS OWI_PIN_6 и т.д.?]]></description>
			<dc:creator>serg602009</dc:creator>
			<pubDate>Fri, 08 Apr 2011 14:31:11 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1437</guid>
		</item>
		<item>
			<title>Viaceskav(C) says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1408</link>
			<description><![CDATA[вопрос снимается, добил я код 8) осталось анимацию в спрайтах сделать.]]></description>
			<dc:creator>Viaceskav(C)</dc:creator>
			<pubDate>Sat, 26 Mar 2011 22:57:24 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1408</guid>
		</item>
		<item>
			<title>Viaceskav(C) says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1406</link>
			<description><![CDATA[никак не могу подключить жки от нокиа3310 :cry: примеры брал из примеров с этого сайта. слепил все вместе, но почему то не работает... может можно примерчик накидать? автору то раз плюнуть, ну а моей благодарности не будет предела :-) да и многим будет интересно... что то у меня никак не получается :-?]]></description>
			<dc:creator>Viaceskav(C)</dc:creator>
			<pubDate>Sat, 26 Mar 2011 15:56:47 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1406</guid>
		</item>
		<item>
			<title>XANDER says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1391</link>
			<description><![CDATA[На страничке "DS18X20 with AVR" от Martin Thomas находится отличная библиотека работы с 1-Wire: http://www.siwawi.arubi.uni-kl.de/avr_projects/tempsensor/index.html (паразитное питание для 1-Wire устройств работает без 8) вспомогательног о транзистора, прямо с ноги МК!) Имхо удобней и проще работать чем с библиотекой 1-Wire из аппноута AVR318.]]></description>
			<dc:creator>XANDER</dc:creator>
			<pubDate>Tue, 22 Mar 2011 14:05:28 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1391</guid>
		</item>
		<item>
			<title>Viaceskav(C) says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1357</link>
			<description><![CDATA[я к тому, что чувствительност ь датчика маловата.]]></description>
			<dc:creator>Viaceskav(C)</dc:creator>
			<pubDate>Sun, 13 Mar 2011 20:21:32 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1357</guid>
		</item>
		<item>
			<title>Валентин says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1356</link>
			<description><![CDATA[Сделайте свой вариант и предъявите пожалуйста, будем только рады.]]></description>
			<dc:creator>Валентин</dc:creator>
			<pubDate>Sun, 13 Mar 2011 17:53:21 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1356</guid>
		</item>
		<item>
			<title>Viaceskav(C) says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1351</link>
			<description><![CDATA[а меня бесит немного, когда температура доходит до 35 (при замере темп. тела) а потом по чуть-чуть двигается дальше... хочется, чтоб сразу показывало температуру :-)]]></description>
			<dc:creator>Viaceskav(C)</dc:creator>
			<pubDate>Sat, 12 Mar 2011 18:53:45 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1351</guid>
		</item>
		<item>
			<title>wog39 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1348</link>
			<description><![CDATA[хотя... я погорячился. это походу был прикол протеуса, потому что в живую наоборот, работает при 13]]></description>
			<dc:creator>wog39</dc:creator>
			<pubDate>Sat, 12 Mar 2011 08:18:05 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1348</guid>
		</item>
		<item>
			<title>wog39 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1347</link>
			<description><![CDATA[для чего нужна строка в OWIPolled.h "OWI_DELAY_OFFS ET_CYCLES 13" ? дело в том, что у меня не выводилась температура, на экране все время было "Temp:- 0", наугад заменил в этой строке 13 на 0 и начало нормально показывать температуру.]]></description>
			<dc:creator>wog39</dc:creator>
			<pubDate>Sat, 12 Mar 2011 07:24:49 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1347</guid>
		</item>
		<item>
			<title>JoJo says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1344</link>
			<description><![CDATA[На форум выкладывай]]></description>
			<dc:creator>JoJo</dc:creator>
			<pubDate>Fri, 11 Mar 2011 21:52:03 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1344</guid>
		</item>
		<item>
			<title>нечто says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1343</link>
			<description><![CDATA[здесь как-нибудь можно выложить файл? хочу поделиться своим вариантом функции вывода целого числа (той что в bcd.c) зщ: по большому счету, можно использовать sprintf(), если не жалко 4кб]]></description>
			<dc:creator>нечто</dc:creator>
			<pubDate>Fri, 11 Mar 2011 21:41:26 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1343</guid>
		</item>
		<item>
			<title>Vovan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1342</link>
			<description><![CDATA[Pashgan юарт работает отлично, посылал значения всё ок. Есть ли какие то методы, способы, приёмы отладки 1-Wire? как найти в чём бок? За рание спасибо.]]></description>
			<dc:creator>Vovan</dc:creator>
			<pubDate>Fri, 11 Mar 2011 17:21:29 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1342</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1341</link>
			<description><![CDATA[Для начала проверь отдельно работу UARTа. Вместо scratchpad передай какие-нибудь два известных тебе значения.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Fri, 11 Mar 2011 12:47:09 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1341</guid>
		</item>
		<item>
			<title>Vovan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1340</link>
			<description><![CDATA[Вот и мне понадобилось работать с этим датчиком. Прочитал все 3 статьи, вроде бы всё оч просто. Скачал пример программы запустил в протеусе работает. Решил немного переделать программу чтоб значение температуры в ЮАРТ приходило т.е отправляю scratchpad[0] и scratchpad[1] через ЮАРТ и приходят оба байта FF. В чём может быть причина? Помогите подалуйста]]></description>
			<dc:creator>Vovan</dc:creator>
			<pubDate>Fri, 11 Mar 2011 12:29:06 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1340</guid>
		</item>
		<item>
			<title>uuu says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1335</link>
			<description><![CDATA[спасибо]]></description>
			<dc:creator>uuu</dc:creator>
			<pubDate>Wed, 09 Mar 2011 19:11:40 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1335</guid>
		</item>
		<item>
			<title>Viaceskav(C) says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1334</link>
			<description><![CDATA[самая самая верхняя строчка, на название проекта нажимай правой кнопкой мыши и выбирай options.]]></description>
			<dc:creator>Viaceskav(C)</dc:creator>
			<pubDate>Wed, 09 Mar 2011 17:32:47 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1334</guid>
		</item>
		<item>
			<title>uuu says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1333</link>
			<description><![CDATA[Не могу найти где в IAR настраивается модель контроллера.]]></description>
			<dc:creator>uuu</dc:creator>
			<pubDate>Wed, 09 Mar 2011 13:14:01 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1333</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1330</link>
			<description><![CDATA[5.11]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Tue, 08 Mar 2011 12:14:18 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1330</guid>
		</item>
		<item>
			<title>uuu says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1329</link>
			<description><![CDATA[какая версия вашего IAR?]]></description>
			<dc:creator>uuu</dc:creator>
			<pubDate>Tue, 08 Mar 2011 11:29:53 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1329</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1314</link>
			<description><![CDATA[Да, увеличит. Чем меньше разрешение - тем меньше время преобразования
 #define RES_9BIT 0x1f
#define RES_10BIT 0x3f
#define RES_11BIT 0x5f
#define RES_12BIT 0x7f
#define DS18B20_WRITE_S CRATCHPAD 0x4e
...
//пода ем команду
OWI_SendByte(DS18B20_WRITE_S CRATCHPAD, BUS);
//передае м Th, Tl и конфигурационны й регистр
OWI_Sen dByte(0, BUS);
OWI_SendB yte(0, BUS);
OWI_SendB yte(RES_9BIT, BUS);]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Sun, 06 Mar 2011 21:50:38 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1314</guid>
		</item>
		<item>
			<title>Viaceskav(C) says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1303</link>
			<description><![CDATA[огромное спасибо за затраченное время для меня :-) сейчас попробую переделать.... правда не знаю как и где... :lol:]]></description>
			<dc:creator>Viaceskav(C)</dc:creator>
			<pubDate>Sat, 05 Mar 2011 14:54:35 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1303</guid>
		</item>
		<item>
			<title>dma says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1302</link>
			<description><![CDATA[Спасибо, Pashgan. разобрался благодаря твоему примеру! Подскажи увеличит ли скорость попеременного чтения двух датчиков изменение значения Thermometer Resolution Configuration 0 0 9 93.75ms (tCONV/8) 0 1 10 187.5ms (tCONV/4) 1 0 11 375ms (tCONV/2) 1 1 12 750ms (tCONV) И как его менять, через OWI_SendByte(DS 18B20_READ_SCRA TCHPAD, BUS); ?]]></description>
			<dc:creator>dma</dc:creator>
			<pubDate>Sat, 05 Mar 2011 13:03:11 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1302</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1301</link>
			<description><![CDATA[Я посмотрел описание на твой дисплей и WH1602 и понял в чем дело. У WH1602 адрес первой строки 0х00, второй 0х40. У GDM1601C адрес 0-ого символа первой строки 0х00, адрес 8-ого символа первой строки 0x40. Нужно переделать код lcd_lib или использовать старую библиотеку так:
//вывод в первые 8 символов строки
LCD_Goto (0,0);
....
//в ывод во вторые 8 символов строки
LCD_Goto (0,1);
....]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Sat, 05 Mar 2011 11:53:35 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1301</guid>
		</item>
		<item>
			<title>Viaceskav(C) says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1300</link>
			<description><![CDATA[Pashgan ну а что по моему вопросу насчет половины вывода? как вы думаете, что может быть?]]></description>
			<dc:creator>Viaceskav(C)</dc:creator>
			<pubDate>Sat, 05 Mar 2011 09:20:06 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1300</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1293</link>
			<description><![CDATA[Посмотри как сделал я. http://www.chipenable.ru/index.php/files-for-lessons-iar-avr/13-files-for-lessons/132-1-wire-2-datchika-ds18b20-iar-avr.html]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Sat, 05 Mar 2011 06:12:07 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1293</guid>
		</item>
		<item>
			<title>dma says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1292</link>
			<description><![CDATA[подключил два датчика DS18B20, хочу работать с каждым по отдельности, для этого пытаюсь считать их адреса в unsigned char serial[8];: OWI_SearchRom(s erial, lastDeviation, BUS); if (OWI_ROM_SEARCH _FINISHED ==0x00) {вывод на семисегментник последовательно сти 8 байт датчика} Получаю на выходе для 1-го датчика: 40 06 35 7 01 00 00 0 где 40 = family code Ds18b20= 0x28h. запускаю повторно функцию и получаю нули. В чем может быть проблема. Помогите пожалуйста в последовательно сти действий. Если я правильно понял, мне нужно после Init прочитать адреса каждого из датчиков и работать по matchrom последовательно (читать темпер. с датчика вначале дома и потом со второго на улице)? Запутался.]]></description>
			<dc:creator>dma</dc:creator>
			<pubDate>Fri, 04 Mar 2011 22:46:47 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1292</guid>
		</item>
		<item>
			<title>Viaceskav(C) says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1287</link>
			<description><![CDATA[подкючил ЖКИ GDM1601C на процессоре S6A0069 но почему то показывает только восемь первых символов... в чем может быть проблема? может необходимо что то переделать в коде под этот ЖКИ?]]></description>
			<dc:creator>Viaceskav(C)</dc:creator>
			<pubDate>Thu, 03 Mar 2011 20:23:32 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1287</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1286</link>
			<description><![CDATA[Сходу не могу сказать, нужно сначало точно выяснить, что мешает индикации. Отключи работу с RTC1307 и посмотри, что будет.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Thu, 03 Mar 2011 12:47:53 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1286</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1285</link>
			<description><![CDATA[Ожидается, только не знаю когда. Вдохновение нужно поймать.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Thu, 03 Mar 2011 12:32:49 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1285</guid>
		</item>
		<item>
			<title>dma says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1284</link>
			<description><![CDATA[Pashgan, ожидается ли часть 4 ?]]></description>
			<dc:creator>dma</dc:creator>
			<pubDate>Thu, 03 Mar 2011 11:38:24 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1284</guid>
		</item>
		<item>
			<title>dma says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1283</link>
			<description><![CDATA[А как можно было бы оптимизировать код чтения температуры, чтобы при динамической индикации время от времени чуть заметно не моргали цифры(думаю это эффект от запрета прерываний в функции OWIDETECT или задежек на чтение в библиотеке RTC1307) ?]]></description>
			<dc:creator>dma</dc:creator>
			<pubDate>Thu, 03 Mar 2011 11:36:51 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1283</guid>
		</item>
		<item>
			<title>JoJo says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1273</link>
			<description><![CDATA[Для быстрой разрядки кодера C1 при выключении питания]]></description>
			<dc:creator>JoJo</dc:creator>
			<pubDate>Sun, 27 Feb 2011 19:57:58 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/86-1-wire-rabota-s-ds18b20-chast-3.html#comment-1273</guid>
		</item>
	</channel>
</rss>
