<?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>S12 / MagniV MicrocontrollersのトピックSubject: External Program Memory</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Subject-External-Program-Memory/m-p/125307#M296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;"&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT size="2"&gt;This message contains an entire topic ported from a separate forum. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value to you as you search for answers to your questions.&lt;NAMESPACE ns="http://www.lithium.com/unique/URI" prefix="o"&gt;&lt;/NAMESPACE&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Posted: Mon Feb 7, 2005 5:35am &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Subject: External Program Memory&lt;BR /&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hi,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I want to use a HCS12 (a 9S12E128 would fit very well) for my project and I need one thing of which I'm unsure that the HCS12 supports it.&lt;BR /&gt;For my project I do not want to use the flash as memory for the program, I want to put the programm in an external OTP ROM. I read that I can switch this sowmehow through the BDM Interface, but is it possible to compile the program the same way I do it for the internal flash and then just "put" it in the ROM ?&lt;BR /&gt;In which way is the flag which says that the uC has to work in "get proggie from extern" mode ? Is it also possible to hardwire this, somehow ?&lt;BR /&gt;Are there also HCS08 which are able to do that "get proggie from extern" mode ?&lt;BR /&gt;Thanks for your answers in advance.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;With best regards.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Posted: Mon Feb 7, 2005 8:29am&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;What you're looking for is expanded mode. Check the HCS12 docs.&lt;BR /&gt;There are a couple of mode pins that you can strap high or low at reset&lt;BR /&gt;to select whether the chip comes up in single-chip mode, which is how&lt;BR /&gt;most people use it, or in expanded mode. In expanded mode, the chip&lt;BR /&gt;has an external bus to which memories can, in principle, be attached.&lt;BR /&gt;More about that in a moment...&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The BDM interface does not come into play in the single-chip/expanded&lt;BR /&gt;mode equation, except in two ways: First, the state of the BKGD pin at&lt;BR /&gt;power-up can select between "normal" and "special" modes. Special mode&lt;BR /&gt;turns on various debugging features of the chip. Secondly, it's possible&lt;BR /&gt;to use the BDM interface to change the chip's mode between single-chip&lt;BR /&gt;and expanded. The chip's own code can change the modes, too, but there&lt;BR /&gt;are restrictions on that ability (for system stability reasons) that are&lt;BR /&gt;loosened in special mode. Despite all of this, special mode is really&lt;BR /&gt;not relevant to your question -- what you're looking for is expanded mode.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Now, the bad news about expanded mode: The 9S12s are designed for&lt;BR /&gt;single-chip operation. It is *very* difficult to interface to their&lt;BR /&gt;external busses. There was a recent thread on this list, in just the&lt;BR /&gt;last week or so, discussing the challenges involved.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The other alternative is to use one of the HC12 members that is designed&lt;BR /&gt;to have a usable external bus. The older 68HC812A4 is one choice,&lt;BR /&gt;though it's hard to meet all of its timing specs above 5 or 6 MHz.&lt;BR /&gt;Doron tells us that the 9S12X series has a much-improved external bus.&lt;BR /&gt;Unfortunately that series won't be marketed to us small-fry customers&lt;BR /&gt;for another year or so.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;With the 9S12 parts available today, you'd be best off using the internal&lt;BR /&gt;flash, which is both easier to design for and more versatile than OTP.&lt;BR /&gt;Perhaps, if you described the reasons you want to use an external OTP&lt;BR /&gt;PROM, some folks on the list could help you figure out how to get the&lt;BR /&gt;same effects with the internal flash.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;HR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Posted: Mon Feb 7, 2005 10:42am&lt;/STRONG&gt; &lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Some thoughts:&lt;BR /&gt;One thing you would have to work out is mapping the external space. If&lt;BR /&gt;you know how to map it to the right address so they will be the same&lt;BR /&gt;addresses you load to internal Falsh, you're set. If not, try to work&lt;BR /&gt;out mapping so that at least the vectors table is in the right spot&lt;BR /&gt;(0xff80..0xffff).&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Another method that could avoid any problem of mapping could be to&lt;BR /&gt;have a bootstrap in internal Flash, which you would have to load once.&lt;BR /&gt;That code can switch the mcu to expanded mode, maybe disable internal&lt;BR /&gt;rom, then star the program in the external rom.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;HR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Posted: Mon Feb 7, 2005 10:45am &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I beleive the E128 is much better than this for expanded mode timing,&lt;BR /&gt;but you might need to change some more settings to meet your external&lt;BR /&gt;timing needs&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2006 01:02:04 GMT</pubDate>
    <dc:creator>Dietrich</dc:creator>
    <dc:date>2006-01-30T01:02:04Z</dc:date>
    <item>
      <title>Subject: External Program Memory</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Subject-External-Program-Memory/m-p/125307#M296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;"&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT size="2"&gt;This message contains an entire topic ported from a separate forum. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value to you as you search for answers to your questions.&lt;NAMESPACE ns="http://www.lithium.com/unique/URI" prefix="o"&gt;&lt;/NAMESPACE&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Posted: Mon Feb 7, 2005 5:35am &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Subject: External Program Memory&lt;BR /&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hi,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I want to use a HCS12 (a 9S12E128 would fit very well) for my project and I need one thing of which I'm unsure that the HCS12 supports it.&lt;BR /&gt;For my project I do not want to use the flash as memory for the program, I want to put the programm in an external OTP ROM. I read that I can switch this sowmehow through the BDM Interface, but is it possible to compile the program the same way I do it for the internal flash and then just "put" it in the ROM ?&lt;BR /&gt;In which way is the flag which says that the uC has to work in "get proggie from extern" mode ? Is it also possible to hardwire this, somehow ?&lt;BR /&gt;Are there also HCS08 which are able to do that "get proggie from extern" mode ?&lt;BR /&gt;Thanks for your answers in advance.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;With best regards.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Posted: Mon Feb 7, 2005 8:29am&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;What you're looking for is expanded mode. Check the HCS12 docs.&lt;BR /&gt;There are a couple of mode pins that you can strap high or low at reset&lt;BR /&gt;to select whether the chip comes up in single-chip mode, which is how&lt;BR /&gt;most people use it, or in expanded mode. In expanded mode, the chip&lt;BR /&gt;has an external bus to which memories can, in principle, be attached.&lt;BR /&gt;More about that in a moment...&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The BDM interface does not come into play in the single-chip/expanded&lt;BR /&gt;mode equation, except in two ways: First, the state of the BKGD pin at&lt;BR /&gt;power-up can select between "normal" and "special" modes. Special mode&lt;BR /&gt;turns on various debugging features of the chip. Secondly, it's possible&lt;BR /&gt;to use the BDM interface to change the chip's mode between single-chip&lt;BR /&gt;and expanded. The chip's own code can change the modes, too, but there&lt;BR /&gt;are restrictions on that ability (for system stability reasons) that are&lt;BR /&gt;loosened in special mode. Despite all of this, special mode is really&lt;BR /&gt;not relevant to your question -- what you're looking for is expanded mode.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Now, the bad news about expanded mode: The 9S12s are designed for&lt;BR /&gt;single-chip operation. It is *very* difficult to interface to their&lt;BR /&gt;external busses. There was a recent thread on this list, in just the&lt;BR /&gt;last week or so, discussing the challenges involved.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The other alternative is to use one of the HC12 members that is designed&lt;BR /&gt;to have a usable external bus. The older 68HC812A4 is one choice,&lt;BR /&gt;though it's hard to meet all of its timing specs above 5 or 6 MHz.&lt;BR /&gt;Doron tells us that the 9S12X series has a much-improved external bus.&lt;BR /&gt;Unfortunately that series won't be marketed to us small-fry customers&lt;BR /&gt;for another year or so.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;With the 9S12 parts available today, you'd be best off using the internal&lt;BR /&gt;flash, which is both easier to design for and more versatile than OTP.&lt;BR /&gt;Perhaps, if you described the reasons you want to use an external OTP&lt;BR /&gt;PROM, some folks on the list could help you figure out how to get the&lt;BR /&gt;same effects with the internal flash.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;HR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Posted: Mon Feb 7, 2005 10:42am&lt;/STRONG&gt; &lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Some thoughts:&lt;BR /&gt;One thing you would have to work out is mapping the external space. If&lt;BR /&gt;you know how to map it to the right address so they will be the same&lt;BR /&gt;addresses you load to internal Falsh, you're set. If not, try to work&lt;BR /&gt;out mapping so that at least the vectors table is in the right spot&lt;BR /&gt;(0xff80..0xffff).&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Another method that could avoid any problem of mapping could be to&lt;BR /&gt;have a bootstrap in internal Flash, which you would have to load once.&lt;BR /&gt;That code can switch the mcu to expanded mode, maybe disable internal&lt;BR /&gt;rom, then star the program in the external rom.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;HR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Posted: Mon Feb 7, 2005 10:45am &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I beleive the E128 is much better than this for expanded mode timing,&lt;BR /&gt;but you might need to change some more settings to meet your external&lt;BR /&gt;timing needs&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 01:02:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Subject-External-Program-Memory/m-p/125307#M296</guid>
      <dc:creator>Dietrich</dc:creator>
      <dc:date>2006-01-30T01:02:04Z</dc:date>
    </item>
  </channel>
</rss>

