<?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>CodeWarrior for MCUのトピックRe: Trying to simulate a input value in ports on MC9S12A64 com codewarrior Full Chip Simulation</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Trying-to-simulate-a-input-value-in-ports-on-MC9S12A64-com/m-p/139052#M2255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi CrasyCat,&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;This only works if port is set to output. If port is set to input i can't simulate any value. There are some way to simulate a value in a port set as input?&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2007 22:05:39 GMT</pubDate>
    <dc:creator>Gustavowd</dc:creator>
    <dc:date>2007-07-04T22:05:39Z</dc:date>
    <item>
      <title>Trying to simulate a input value in ports on MC9S12A64 com codewarrior Full Chip Simulation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Trying-to-simulate-a-input-value-in-ports-on-MC9S12A64-com/m-p/139050#M2253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I'm used with I/O simulation in Codewarrior for HCS08 with inputs command or "inputa 10", "inputb 23", etc. How can I do that in Codewarrior 4.6 for HCS12?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gustavo&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 11:55:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Trying-to-simulate-a-input-value-in-ports-on-MC9S12A64-com/m-p/139050#M2253</guid>
      <dc:creator>Gustavowd</dc:creator>
      <dc:date>2007-07-04T11:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to simulate a input value in ports on MC9S12A64 com codewarrior Full Chip Simulation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Trying-to-simulate-a-input-value-in-ports-on-MC9S12A64-com/m-p/139051#M2254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Simulator for HC12 is based on a different technology than simulator for HC08.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The commands to write to a port (or to memory) are&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wb for write byte,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ww for write word,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wl for write long.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For example&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; wb 0x0 0x01 will write 1 at address 0x0 (Which is PORTA).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 13:41:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Trying-to-simulate-a-input-value-in-ports-on-MC9S12A64-com/m-p/139051#M2254</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-07-04T13:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to simulate a input value in ports on MC9S12A64 com codewarrior Full Chip Simulation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Trying-to-simulate-a-input-value-in-ports-on-MC9S12A64-com/m-p/139052#M2255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi CrasyCat,&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;This only works if port is set to output. If port is set to input i can't simulate any value. There are some way to simulate a value in a port set as input?&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 22:05:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Trying-to-simulate-a-input-value-in-ports-on-MC9S12A64-com/m-p/139052#M2255</guid>
      <dc:creator>Gustavowd</dc:creator>
      <dc:date>2007-07-04T22:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to simulate a input value in ports on MC9S12A64 com codewarrior Full Chip Simulation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Trying-to-simulate-a-input-value-in-ports-on-MC9S12A64-com/m-p/139053#M2256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Sorry I missed the point that the port was defined as input.&lt;/DIV&gt;&lt;DIV&gt;You are right if the port&amp;nbsp;is defined as input port you cannot write to&amp;nbsp;the memory mapped register.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The full chip simulator has internal objects defined, representing the CPU Pins.&lt;/DIV&gt;&lt;DIV&gt;In your case you have to use this internal object name.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You can check the pin internal names used by the simulator in the following way:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Start the simulator&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Select "Component" -&amp;gt; "Open". The "Open window Component" dialog is opened.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Double click on "Inspect". The Inspect component is opened.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Expand the "Object Pool" Tree&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;PORTA is defined in the MEBI block.&lt;/DIV&gt;&lt;DIV&gt;The name of the simulator internal object for Pin0&amp;nbsp;from PORTA is Mebi.PORTAPin0&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;The name of the simulator internal object for whole PORTA register is Mebi.PORTAVal&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In order to be able to&amp;nbsp;stimulate this Pin, you have 3 solution:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; 1. Use the command a (for assign) as follows&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a Mebi.PORTAPin0 = 0x1&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Be careful the simulator is case sensitive on internal object names.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; 2. Use the visualization tool&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you prefer to have a graphical interface to toggle the pin you can use the visualization tool.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Add a LED component&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Set Kind of port to "subscribe"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Set Port to display to&amp;nbsp;&amp;nbsp;Mebi.PORTAPin0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Set Visualization tool to Display Mode&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Starting from here you can toggle the Pin by clicking on the LED in the component.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; 3. Use the stimulation component and a stimulation file where you refer to the same&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object. Note that this will only work with a professional edition license.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please refer to {Install}\Help\PDF\Debugger_HC12.pdf, chapter "HC(S)12(X) Debug Connections"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;section&amp;nbsp;"HC(S)12(X) Full Chip Simulation Connection" -&amp;gt; "True Time I/O Stimulation" for&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; information on how to use/create a stimulation file&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 14:24:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Trying-to-simulate-a-input-value-in-ports-on-MC9S12A64-com/m-p/139053#M2256</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-07-05T14:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to simulate a input value in ports on MC9S12A64 com codewarrior Full Chip Simulation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Trying-to-simulate-a-input-value-in-ports-on-MC9S12A64-com/m-p/139054#M2257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Very Thanks for your help.&lt;BR /&gt;Now I can simulate input port.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Gustavo&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 10:12:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Trying-to-simulate-a-input-value-in-ports-on-MC9S12A64-com/m-p/139054#M2257</guid>
      <dc:creator>Gustavowd</dc:creator>
      <dc:date>2007-07-06T10:12:29Z</dc:date>
    </item>
  </channel>
</rss>

