<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/1153" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-01-29T19:34:17+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/1153</id>

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-01-29T19:34:17+02:00</updated>

		<published>2008-01-29T19:34:17+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4029#p4029</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4029#p4029"/>
		<title type="html"><![CDATA[how to set up interrupt vector programmatically]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4029#p4029"><![CDATA[
This is not correct. The vector table is in flash memory.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue Jan 29, 2008 7:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MaxAnarki]]></name></author>
		<updated>2008-01-29T14:12:45+02:00</updated>

		<published>2008-01-29T14:12:45+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4027#p4027</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4027#p4027"/>
		<title type="html"><![CDATA[how to set up interrupt vector programmatically]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4027#p4027"><![CDATA[
As I understand the CPU during working uses RAM. Vector table is loaded from flash to RAM isn't it ? It is convenient to me to modify the RAM only after my software is started.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=677">MaxAnarki</a> — Tue Jan 29, 2008 2:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-01-29T13:49:46+02:00</updated>

		<published>2008-01-29T13:49:46+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4026#p4026</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4026#p4026"/>
		<title type="html"><![CDATA[how to set up interrupt vector programmatically]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4026#p4026"><![CDATA[
The vector table consists of relative jump instructions. You must compute the correct rjmp instruction and write it to the vector table slot.<br /><br />Please note that flash memory can only be programmed page-wise. You must read the entire page, modify the vector and write back the page. Also, some AVRs require that you run code which modifies the main flash memory from the boot loader section. And finally: While programming the flash memory, the CPU may be halted.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue Jan 29, 2008 1:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MaxAnarki]]></name></author>
		<updated>2008-01-29T13:42:40+02:00</updated>

		<published>2008-01-29T13:42:40+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4025#p4025</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4025#p4025"/>
		<title type="html"><![CDATA[how to set up interrupt vector programmatically]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4025#p4025"><![CDATA[
If disengage from that problem and use winavr lib's functions for writing to flash memory, how to write in C lang correct piece of code to define interrupt handler and how to correctly program vector table ?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=677">MaxAnarki</a> — Tue Jan 29, 2008 1:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-01-29T13:07:57+02:00</updated>

		<published>2008-01-29T13:07:57+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4024#p4024</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4024#p4024"/>
		<title type="html"><![CDATA[how to set up interrupt vector programmatically]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1153&amp;p=4024#p4024"><![CDATA[
Since the interrupt vector is in flash memory, it's hard to modify it from your code. I would recommend that you define ISRs for INT0 AND INT1 and call your routine from either one.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue Jan 29, 2008 1:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MaxAnarki]]></name></author>
		<updated>2008-01-25T18:00:13+02:00</updated>

		<published>2008-01-25T18:00:13+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1153&amp;p=3976#p3976</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1153&amp;p=3976#p3976"/>
		<title type="html"><![CDATA[how to set up interrupt vector programmatically]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1153&amp;p=3976#p3976"><![CDATA[
how to set up interrupt vector programmatically ?<br /><br />for example, it is easy to define interrupt vector at the compile time like this, using winavr lib:<br /><br />ISR(INT0_vect)<br />{<br />}<br /><br />but I need select INT0_vect or INT1_vect... etc programmatically, depending on some conditions..<br /><br />What is the easiest way ?<br /><br />Thanks a lot<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=677">MaxAnarki</a> — Fri Jan 25, 2008 6:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
