<?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>IAR AVR. Си + Ассемблер</title>
		<description>Discuss IAR AVR. Си + Ассемблер</description>
		<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html</link>
		<lastBuildDate>Sun, 05 Apr 2026 16:19:13 +0000</lastBuildDate>
		<generator>JComments</generator>
		<atom:link href="https://chipenable.ru/index.php/component/jcomments/feed/com_k2/39.html" rel="self" type="application/rss+xml" />
		<item>
			<title>Wolf says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-4876</link>
			<description><![CDATA[Здравствуйте, а для C++, есть пример?]]></description>
			<dc:creator>Wolf</dc:creator>
			<pubDate>Fri, 12 Aug 2016 08:05:44 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-4876</guid>
		</item>
		<item>
			<title>STEM says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-3935</link>
			<description><![CDATA[Речь шла про ассемблерный модуль для IARa.Я уже разобрался, для того чтобы вычитывать данные из флешь памяти, когда в Z пишешь адрес расположения данных, не нужно его умножать на два.]]></description>
			<dc:creator>STEM</dc:creator>
			<pubDate>Thu, 27 Mar 2014 09:18:25 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-3935</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-3928</link>
			<description><![CDATA[Понял только первые два предложения. Речь идет про ассемблерный модуль для IARa или просто про ассемблер AVR?]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Wed, 26 Mar 2014 17:23:14 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-3928</guid>
		</item>
		<item>
			<title>STEM says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-3924</link>
			<description><![CDATA[Здравствуйте. Подскажите пожалуйста, как разместить и использовать константы в памяти программ. Не то, когда записываю в регистры Z адрес начала блока данных помещенных в памяти программ, записывается совсем не тот адрес.]]></description>
			<dc:creator>STEM</dc:creator>
			<pubDate>Tue, 25 Mar 2014 15:26:06 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-3924</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-2119</link>
			<description><![CDATA[Два варианта: через глобальную переменную или через внутреннюю переменную и функции доступа. Я предпочитаю использовать второй вариант. Что вроде этого:
unsigned int timer = 0;
unsigned char state_timer = 0;
void TIM_SetTimer(un signed int data)
{ unsigned int tmp = SREG; __disable_inter rupt(); state_timer = TIMER_WORK; timer = data; SREG = tmp;
}
unsigned char TIM_GetStateTim er(void)
{ if (state_timer == TIMER_EXPIRED) return 1; return 0;
}
#pragma vector = TIMER0_OVF_vect 
__interrupt void Timer0Ovf(void) 
{ TCNT0 = 0xe6; if (state_timer == TIMER_WORK){ if (timer != 0) { timer--; } else{ state_timer = TIMER_EXPIRED; } } BUT_Debrief(); IND_Update();
} Только переписать это на ассемблере. В этом примере доступ к переменной timer осуществляется через функции TIM_SetTimer() и TimGetStateTime r().]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Sat, 29 Sep 2012 12:51:37 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-2119</guid>
		</item>
		<item>
			<title>Andre says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-2118</link>
			<description><![CDATA[Не подскажите как лучше организовать обмен информацией с программой - обработчиком прерывания написанной на ассемблере.]]></description>
			<dc:creator>Andre</dc:creator>
			<pubDate>Sun, 23 Sep 2012 17:56:14 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-2118</guid>
		</item>
		<item>
			<title>Andre says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-2113</link>
			<description><![CDATA[Спасибо за подсказку по написанию обработчика прерывания на ассемблере. Моя ошибка заключалась в том что я ассемблерный модуль оформлял как подпрограмму (текст программы начинался со слова: MODULE)...... А ассемблерный переход я определял директивой ORG.]]></description>
			<dc:creator>Andre</dc:creator>
			<pubDate>Wed, 19 Sep 2012 04:39:42 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-2113</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-2109</link>
			<description><![CDATA[Вот пример прерывания на асме.
NAME TIM0_VECTOR
#in clude 
COMMON INTVEC
ORG TIMER0_COMP_vec t rjmp Timer0_comp
RSE G CODE
Timer0_com p: st -Y,R16 ; Push used registers on stack in R16,SREG ; Read status register st -Y,R16 ; Push Status register in R16,PORTB ; Load in value from port B com R16 ; Invert it out PORTB,R16 ; Output inverted value to port B ld R16,Y+ ; Pop status register out SREG,R16 ; Store status register ld R16,Y+ ; Pop Register R16 reti
ENDMOD
END Тут смысл такой. Определяешь в сегменте таблицы прерываний COMMON INTVEC ассемблерный переход на обработчик прерывания. Сам обработчик описываешь в сегменте RCEG CODE. Данный код нужно сохранить в ассемблерном файле и подключить его в IAR`овскому проекту.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Mon, 03 Sep 2012 21:51:18 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-2109</guid>
		</item>
		<item>
			<title>Andre says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-2108</link>
			<description><![CDATA[Никак не получается написать обработчик прерывания на ассемблере.Так чтобы при появлении прерывания сразу вызывалась продпрограмма написанная на асемблере. Не подскажите как это сделать.]]></description>
			<dc:creator>Andre</dc:creator>
			<pubDate>Mon, 03 Sep 2012 17:22:55 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-2108</guid>
		</item>
		<item>
			<title>kotbimigot says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-1741</link>
			<description><![CDATA[а для CVAVR подскажите пожалуйста как макроассемблерн ую вставочку сделать]]></description>
			<dc:creator>kotbimigot</dc:creator>
			<pubDate>Mon, 03 Oct 2011 06:11:51 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-1741</guid>
		</item>
		<item>
			<title>Shiuza says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-704</link>
			<description><![CDATA[Я тогда решил данную проблемму просто через: ORG TIMER1_COMPB_ve ct rjmp MY_test_func …. Спасибо челу под ником BSVi (сайт bsvi_pp_ua) , подсказал в конце концов :-)]]></description>
			<dc:creator>Shiuza</dc:creator>
			<pubDate>Wed, 13 Oct 2010 13:02:32 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-704</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-658</link>
			<description><![CDATA[Что то не пойму.. вопрос в том, как описать обработчик прерывания на асме?]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Wed, 29 Sep 2010 20:32:39 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-658</guid>
		</item>
		<item>
			<title>Guest says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-645</link>
			<description><![CDATA[Верхние строчки с вложениями которые я написал, прошу удалить :), вот прим.ер еxtеrн vоid мy_iнt_fуnс (вoiд), в ASM, прописал как: РUВLIС мy_iнt_fуnс … рragma вectоr=номер iнtеrruрt воid мy_iнt_fуnc (воiд), здесь комп. показал ошибку]]></description>
			<dc:creator>Guest</dc:creator>
			<pubDate>Tue, 21 Sep 2010 08:17:10 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-645</guid>
		</item>
		<item>
			<title>Guest says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-644</link>
			<description><![CDATA[как правильно определить функцию, чтобы адрес точки входа функции из ASM кода был в таблице векторов прерываний, в данном варианте следующая ошибка компайлера: “Error[Pe147]: declaration is incompatible with "void my_int_func()" (declared at line 31)” ?]]></description>
			<dc:creator>Guest</dc:creator>
			<pubDate>Tue, 21 Sep 2010 07:56:50 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-644</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-384</link>
			<description><![CDATA[Не обязательно.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Mon, 10 May 2010 09:03:42 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-384</guid>
		</item>
		<item>
			<title>Guest says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-382</link>
			<description><![CDATA[ Двоеточий после имён переменных не надо ли?]]></description>
			<dc:creator>Guest</dc:creator>
			<pubDate>Sun, 09 May 2010 21:13:01 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-382</guid>
		</item>
		<item>
			<title>Guest says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-47</link>
			<description><![CDATA[foxit, смотри user manual на winavr - раздел avr-libc and assembler programs]]></description>
			<dc:creator>Guest</dc:creator>
			<pubDate>Wed, 02 Dec 2009 17:36:28 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-47</guid>
		</item>
		<item>
			<title>foxit says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-46</link>
			<description><![CDATA[А какой?]]></description>
			<dc:creator>foxit</dc:creator>
			<pubDate>Wed, 02 Dec 2009 16:31:40 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-46</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-45</link>
			<description><![CDATA[есть, но надо разбираться... :-?]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Wed, 02 Dec 2009 16:28:42 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-45</guid>
		</item>
		<item>
			<title>foxit says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-44</link>
			<description><![CDATA[А для winavr что-то подобное есть?]]></description>
			<dc:creator>foxit</dc:creator>
			<pubDate>Wed, 02 Dec 2009 12:05:07 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/item/39-iar-avr-si-+-assembler.html#comment-44</guid>
		</item>
	</channel>
</rss>
