<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>8-bit MicrocontrollersのトピックRe: PRM file</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136277#M4294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;For your chip there is no vector 3, it is reserved (unused), so indeed your reference appears to have an error.&lt;BR /&gt;&lt;BR /&gt;Good luck, you are ready to move on to a grander class of frustrations, mysteries, and errors!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;INT_ADC: equ $0000FFDE&lt;BR /&gt;INT_KBI: equ $0000FFE0&lt;BR /&gt;Reserved2: equ $0000FFE2&lt;BR /&gt;Reserved3: equ $0000FFE4&lt;BR /&gt;Reserved4: equ $0000FFE6&lt;BR /&gt;Reserved5: equ $0000FFE8&lt;BR /&gt;Reserved6: equ $0000FFEA&lt;BR /&gt;Reserved7: equ $0000FFEC&lt;BR /&gt;Reserved8: equ $0000FFEE&lt;BR /&gt;Reserved9: equ $0000FFF0&lt;BR /&gt;INT_TIMOvr: equ $0000FFF2&lt;BR /&gt;INT_TIMCH1: equ $0000FFF4&lt;BR /&gt;INT_TIMCH0: equ $0000FFF6 ; VECTOR 4&lt;BR /&gt;Reserved13: equ $0000FFF8&lt;BR /&gt;INT_IRQ: equ $0000FFFA&lt;BR /&gt;INT_SWI: equ $0000FFFC&lt;BR /&gt;INT_RESET: equ $0000FFFE ; VECTOR 0&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Nov 2006 22:55:00 GMT</pubDate>
    <dc:creator>Geezer</dc:creator>
    <dc:date>2006-11-12T22:55:00Z</dc:date>
    <item>
      <title>PRM file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136274#M4291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I am new to Code Warrior.&amp;nbsp; I had a couple of semesters with the 68HC11 in college (used the MGTEK MiniIDE).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now I have taken over a project at work that includes an MC68HC908QY4.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am trying set the TIM interrupt vectors.&amp;nbsp; I figured out that it needs to be done in the prm file.&amp;nbsp; One of the example programs has this file included with it.&amp;nbsp; But it does not have the processor.h with all the&amp;nbsp;memory declarations&amp;nbsp;or I would just use that one to start my project.&amp;nbsp; In my project I need to include the prm&amp;nbsp;or be able to create/add the processor file.&lt;/DIV&gt;&lt;DIV&gt;When I try to add or create the prm file CW gives an error on compile and says the project has been modified by an outside source and reloads the project without including my new file.&amp;nbsp; What am I doing or not doing?&amp;nbsp; Please help.&amp;nbsp; Also&amp;nbsp;anyone recommend a good book, I would be up for that too, as I would rather figure out my problems myself.&amp;nbsp; Headed to Barnes &amp;amp; Noble tonight.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Steve&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Nov 2006 04:30:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136274#M4291</guid>
      <dc:creator>mizer101</dc:creator>
      <dc:date>2006-11-12T04:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: PRM file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136275#M4292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Declare your ISR in this manner&lt;BR /&gt;&lt;BR /&gt;void interrupt 8 TIM1_OVF_ISR(void){} // the number is the position in the vector table&lt;BR /&gt;&lt;BR /&gt;and it will be independent of the PRM file.&lt;BR /&gt;&lt;BR /&gt;The 'official' way is to diddle with the PRM file, but this has side effects. For example changing targets... and your hand-modified PRM gets blown away. By the way I haven't had trouble EDITING the PRM ile that CW generates. ADDING or CREATING is a different beast, haven't tried it.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Nov 2006 04:44:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136275#M4292</guid>
      <dc:creator>Geezer</dc:creator>
      <dc:date>2006-11-12T04:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: PRM file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136276#M4293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks Geezer.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Not sure about the C code as I do not know how to do C.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Using what you talked about,&amp;nbsp;and a decent nights sleep I was able to figure out what I was doing wrong.&amp;nbsp; The example program called the prm file "default.prm" and I was trying to import it.&amp;nbsp;&amp;nbsp;My program&amp;nbsp;calls it "project.prm"&lt;/DIV&gt;&lt;DIV&gt;Opened the project.prm and there was a declared vector.&amp;nbsp; Put my vectors below it.&amp;nbsp; Compliled - Downloaded and looked at the vector memory address and there was my vectors.&lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I did find that the vectors are not declared as they are listed in the data sheet.&lt;/DIV&gt;&lt;DIV&gt;TIM Channel 0 is Vector 4 not 3 as the data sheet states.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The best I figure to get my code to auto start on power up, I will put my code at vector 0.&amp;nbsp; Is this correct?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Steve&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Nov 2006 22:39:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136276#M4293</guid>
      <dc:creator>mizer101</dc:creator>
      <dc:date>2006-11-12T22:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: PRM file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136277#M4294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;For your chip there is no vector 3, it is reserved (unused), so indeed your reference appears to have an error.&lt;BR /&gt;&lt;BR /&gt;Good luck, you are ready to move on to a grander class of frustrations, mysteries, and errors!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;INT_ADC: equ $0000FFDE&lt;BR /&gt;INT_KBI: equ $0000FFE0&lt;BR /&gt;Reserved2: equ $0000FFE2&lt;BR /&gt;Reserved3: equ $0000FFE4&lt;BR /&gt;Reserved4: equ $0000FFE6&lt;BR /&gt;Reserved5: equ $0000FFE8&lt;BR /&gt;Reserved6: equ $0000FFEA&lt;BR /&gt;Reserved7: equ $0000FFEC&lt;BR /&gt;Reserved8: equ $0000FFEE&lt;BR /&gt;Reserved9: equ $0000FFF0&lt;BR /&gt;INT_TIMOvr: equ $0000FFF2&lt;BR /&gt;INT_TIMCH1: equ $0000FFF4&lt;BR /&gt;INT_TIMCH0: equ $0000FFF6 ; VECTOR 4&lt;BR /&gt;Reserved13: equ $0000FFF8&lt;BR /&gt;INT_IRQ: equ $0000FFFA&lt;BR /&gt;INT_SWI: equ $0000FFFC&lt;BR /&gt;INT_RESET: equ $0000FFFE ; VECTOR 0&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Nov 2006 22:55:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136277#M4294</guid>
      <dc:creator>Geezer</dc:creator>
      <dc:date>2006-11-12T22:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: PRM file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136278#M4295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear minzer101&lt;BR /&gt;you do not have to declare all the int stuff in the prm file.&lt;BR /&gt;A easy way is to use absolute assembly, where no sections etc. Have to be declared.&lt;BR /&gt;If you are interested in a simple OS look at my EBS08. A sample environment&lt;BR /&gt;(also ready for the Qx family) can be found at &lt;A href="http://www.systech-gmbh.ch/"&gt;www.systech-gmbh.ch&lt;/A&gt; -&amp;gt; EBS08.&lt;BR /&gt;Simply download the project files (zipped) and try it with the CW simulator.&lt;BR /&gt;In the xxx-vec.mmw (mmw Module for Metro Werks) you can see all the definitions of the&lt;BR /&gt;interrupt vectors (only the start vector is defined in the prm file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saluti Joerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 00:28:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136278#M4295</guid>
      <dc:creator>joerg</dc:creator>
      <dc:date>2006-11-13T00:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: PRM file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136279#M4296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;"The best I figure to get my code to auto start on power up, I will put my code at vector 0. Is this correct?"&lt;BR /&gt;&lt;BR /&gt;Not really, VECTOR 0 must contain the ADDRESS of your starting code, not THE code itself.&lt;BR /&gt;&lt;BR /&gt;Your project.prm has a line similar to:&lt;BR /&gt;VECTOR 0 _Startup&lt;BR /&gt;&lt;BR /&gt;Fine, make it happy and give it this in your .ASM:&lt;BR /&gt;&lt;BR /&gt;;********************&lt;BR /&gt;XDEF _Startup&lt;BR /&gt;&lt;BR /&gt;_Startup&lt;BR /&gt;&lt;BR /&gt;;do your thing....&lt;BR /&gt;BRN * ;&lt;BR /&gt;&lt;BR /&gt;;********************&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 00:46:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136279#M4296</guid>
      <dc:creator>Geezer</dc:creator>
      <dc:date>2006-11-13T00:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: PRM file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136280#M4297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Why not use Processor Expert?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It will generate the ISR code for you.&amp;nbsp; All you have to do is add some "do this code" in the ISR created.&amp;nbsp; You also won't have to worry about the PRM file changes.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;BadDad&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 05:12:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PRM-file/m-p/136280#M4297</guid>
      <dc:creator>baddad</dc:creator>
      <dc:date>2006-11-22T05:12:34Z</dc:date>
    </item>
  </channel>
</rss>

