<?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>Учебный курс AVR. Таймер - счетчик Т0. Регистры. Ч1</title>
		<description>Discuss Учебный курс AVR. Таймер - счетчик Т0. Регистры. Ч1</description>
		<link>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html</link>
		<lastBuildDate>Wed, 08 Apr 2026 09:04:32 +0000</lastBuildDate>
		<generator>JComments</generator>
		<atom:link href="https://chipenable.ru/index.php/component/jcomments/feed/com_k2/171.html" rel="self" type="application/rss+xml" />
		<item>
			<title>ujin says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4993</link>
			<description><![CDATA[ну разве что для посмотреть в протэусе,в реальной железке недееспособный код]]></description>
			<dc:creator>ujin</dc:creator>
			<pubDate>Sun, 15 Jan 2017 18:23:04 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4993</guid>
		</item>
		<item>
			<title>goodspeedmen says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4969</link>
			<description><![CDATA[ Можно ли использовать нечто такое?]]></description>
			<dc:creator>goodspeedmen</dc:creator>
			<pubDate>Fri, 09 Dec 2016 18:28:22 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4969</guid>
		</item>
		<item>
			<title>goodspeedmen says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4968</link>
			<description><![CDATA[ISR(TIMER2_OVF_ vect) //программа обработки прерывания по переполнению таймера
{ PORTB = (0); TIMSK0 = (0b00000000);
} 
int main(void) //основная программа
{ TCCR0A = (0b00000000); TCCR0B |= (0b00000101); DDRB |= (0b10000001); DDRD |= (0b10000000); sei(); //разрешаем глобальные прерывания while(1)	{	IF(P IND.0 == 1)	{ TIMSK0 = (0b00000001); TCNT0 = (0b00000000); PORTB.0 = 1; }	}
}]]></description>
			<dc:creator>goodspeedmen</dc:creator>
			<pubDate>Fri, 09 Dec 2016 18:24:55 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4968</guid>
		</item>
		<item>
			<title>Ваха says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4400</link>
			<description><![CDATA[ думаю тут ошибка,наверное подразумевалось WGM01 судя по таблице которая приводится следом]]></description>
			<dc:creator>Ваха</dc:creator>
			<pubDate>Fri, 23 Jan 2015 13:13:13 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4400</guid>
		</item>
		<item>
			<title>Zaprom says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4357</link>
			<description><![CDATA[Здравствуйте!! По-моему есть ошибка в строке " Биты WGM10, WGM00 (Wave Generator Mode) - определяют режим работы таймера-счетчик а Т0." Там должен быть бит WGM01.]]></description>
			<dc:creator>Zaprom</dc:creator>
			<pubDate>Thu, 04 Dec 2014 20:05:45 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4357</guid>
		</item>
		<item>
			<title>_Артём_ says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4354</link>
			<description><![CDATA[ Нет, не обязательно. Можете хоть в десятичном, хоть в символьном. У АВР шина 8-битная, поэтому сначала надо писать в Н, потом в L. При чтении наоборот. Так тоже можно, если компилятор поддерживает (IAR и GCC позволяют так обращатся к регистру, насчёт других не знаю).]]></description>
			<dc:creator>_Артём_</dc:creator>
			<pubDate>Wed, 03 Dec 2014 08:09:05 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4354</guid>
		</item>
		<item>
			<title>alex6441161 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4353</link>
			<description><![CDATA[подскажите а обязательно значение в регистр OCR1A записывать в 16ричном формате? и обязательно ли записывать значение сначала в старший а потом младший, т.е. вот так: OCR1AH=0x03;//з аписываем в регистр OCR1A 1000 OCR1AL=0xE8; или можно просто OCR1A=0x03E8;]]></description>
			<dc:creator>alex6441161</dc:creator>
			<pubDate>Tue, 02 Dec 2014 14:40:20 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4353</guid>
		</item>
		<item>
			<title>D.mas says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4292</link>
			<description><![CDATA[сорри, по 1/8М сек]]></description>
			<dc:creator>D.mas</dc:creator>
			<pubDate>Sun, 21 Sep 2014 11:06:18 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4292</guid>
		</item>
		<item>
			<title>D.mas says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4291</link>
			<description><![CDATA[Здравствуйте, спецы :-) Я не волшебник, а только учусь, пытаюсь самостоятельно запилить хронограф для пневматики. Видел в интернете и схемы и решения, но хочется свое. С датчиками еще не определен, разбираюсь с по. Поэтому хотел бы у вас спросить.. Какое количество тактов уходит на обработку прерывания по совпадению с OCR0? Понимаю, что зависит от длины кода в обработчике. И вообще, если установить CLK 8МГц,prescaler= 1; OCR0=0x01; и в теле прерывания, допустим, глобальная переменная i будет i++, будет ли исправно отсчитываться по 1/8К секунд?]]></description>
			<dc:creator>D.mas</dc:creator>
			<pubDate>Sun, 21 Sep 2014 11:04:47 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-4291</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-3091</link>
			<description><![CDATA[Ученые бьются над этим.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Fri, 16 Aug 2013 18:54:11 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-3091</guid>
		</item>
		<item>
			<title>foxit says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-3082</link>
			<description><![CDATA[Ждем продолжение!]]></description>
			<dc:creator>foxit</dc:creator>
			<pubDate>Wed, 14 Aug 2013 20:24:25 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/171-avr-timer-t0-ch1.html#comment-3082</guid>
		</item>
	</channel>
</rss>
