<?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: Problems with P&amp;E's simulator</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-with-P-E-s-simulator/m-p/130130#M2329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;These two issues have now been acknowledged by Mark Cukier of P&amp;amp;E and have been noted for correction in the next release.&lt;/P&gt;&lt;P&gt;BR Peg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Apr 2006 07:47:16 GMT</pubDate>
    <dc:creator>peg</dc:creator>
    <dc:date>2006-04-08T07:47:16Z</dc:date>
    <item>
      <title>Problems with P&amp;E's simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-with-P-E-s-simulator/m-p/130127#M2326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi all,&lt;/DIV&gt;&lt;DIV&gt;I believe I have found 2 problems with P&amp;amp;E Micro's ICS08QT/QY ICS V1.16&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The first is that the OSC2EN bit of PTAPUE register is implemented in reverse.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The second is that level sensitive KB interrupts are implemented for both levels, i.e. interrupt triggers constantly.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here is the minimal code that exposes both problems:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 1;"&gt;$Include 'qtqy_registers.inc'&lt;BR /&gt;&amp;nbsp;ORG&amp;nbsp;$F800&lt;BR /&gt;* compile this then start simulator on this&lt;BR /&gt;* issue var porta&lt;BR /&gt;* issue var ptapue&lt;BR /&gt;* issue inputa ff&lt;BR /&gt;* now step through code&lt;BR /&gt;Start&amp;nbsp;NOP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;at this point porta in variables window shows %00111111&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;this is correct as only lower 6 bits are implemented&lt;BR /&gt;&amp;nbsp;lda&amp;nbsp;#$00&amp;nbsp;&amp;nbsp;&amp;nbsp;;keeps simulator quiet when interrupt occurs&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ldhx&amp;nbsp;&amp;nbsp;&amp;nbsp; #$0000&amp;nbsp;&amp;nbsp;&amp;nbsp;;ditto&lt;BR /&gt;&amp;nbsp;CLR&amp;nbsp;PORTA&amp;nbsp;&amp;nbsp;&amp;nbsp;;not really required here&lt;BR /&gt;&amp;nbsp;mov&amp;nbsp;#%00000000,DDRA&amp;nbsp;&amp;nbsp;;Port A all ins&lt;BR /&gt;&amp;nbsp;mov&amp;nbsp;#%00111111,PTAPUE&amp;nbsp;;pullup all&lt;BR /&gt;&amp;nbsp;NOP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;at this point porta in variables window shows %00101111&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;this is wrong as bit 4 should work as an input&lt;BR /&gt;&amp;nbsp;mov&amp;nbsp;#%10111111,PTAPUE&amp;nbsp;;pullup all and enable OSC2 on PTA4&lt;BR /&gt;&amp;nbsp;NOP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;at this point porta in variables window shows %00111111&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;this is wrong as bit 4 should be outputting OSC&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;now continue to expose next problem&lt;BR /&gt;&amp;nbsp;bset&amp;nbsp;1,KBSCR&amp;nbsp;&amp;nbsp;&amp;nbsp;;mask keyboard interrupts&lt;BR /&gt;&amp;nbsp;bset&amp;nbsp;0,KBSCR&amp;nbsp;&amp;nbsp;&amp;nbsp;;set to edge and low level sensitive&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;if you comment out the above line edge sensitive KBI works as advertised&lt;BR /&gt;&amp;nbsp;bset&amp;nbsp;2,KBIER&amp;nbsp;&amp;nbsp;&amp;nbsp;;enable ints on A2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 1;"&gt;*&amp;nbsp;blah,blah&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 1;"&gt;&amp;nbsp;bset&amp;nbsp;2,KBSCR&amp;nbsp;&amp;nbsp;&amp;nbsp;;ack int just in case&lt;BR /&gt;&amp;nbsp;bclr&amp;nbsp;1,KBSCR&amp;nbsp;&amp;nbsp;&amp;nbsp;;unmask kbd ints&lt;BR /&gt;&amp;nbsp;CLI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;as soon as you get to here you will be locked in KBI int no matter what&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;;level is on A2&lt;BR /&gt;&amp;nbsp;bra&amp;nbsp;*&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 1;"&gt;kbi_int&lt;BR /&gt;&amp;nbsp;BSET&amp;nbsp;2,KBSCR&amp;nbsp;&amp;nbsp;;ack int&lt;BR /&gt;&amp;nbsp;NOP&lt;BR /&gt;&amp;nbsp;rti&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 1;"&gt;&amp;nbsp;org&amp;nbsp;$FFE0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 1;"&gt;&amp;nbsp;dw&amp;nbsp;kbi_int&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 1;"&gt;&amp;nbsp;org&amp;nbsp;$FFFE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 1;"&gt;&amp;nbsp;dw&amp;nbsp;Start&amp;nbsp;&amp;nbsp;; Reset&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 3;"&gt;This is the current version (i believe) and seems to be a couple of years old.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 3;"&gt;Has anybody else experienced this?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 3;"&gt;Or am I missing something?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 3;"&gt;BR Peg&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Mar 2006 15:11:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-with-P-E-s-simulator/m-p/130127#M2326</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-03-25T15:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with P&amp;E's simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-with-P-E-s-simulator/m-p/130128#M2327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;Hello Peg,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Are you operating&amp;nbsp;with "simulation only", or are you driving some hardware?&amp;nbsp; I am reminded that, for the MMEVS with the M68EML08QTQY emulation module, two of the vector locations have been moved, including the KBI vector (to $FFE4).&amp;nbsp; I wonder if part of your problem might be of this nature.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;BR /&gt;Mac&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Mar 2006 23:44:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-with-P-E-s-simulator/m-p/130128#M2327</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-03-26T23:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with P&amp;E's simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-with-P-E-s-simulator/m-p/130129#M2328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi Mac,&lt;/P&gt;&lt;P&gt;Simulation only!&lt;/P&gt;&lt;P&gt;The KBI problem I found several months ago and&amp;nbsp; know my code works on real hardware. In full simulation you only get to simulate your KBI interrupt code over and over once you set level sensitive.&lt;/P&gt;&lt;P&gt;The OSC2EN problem I only discovered the other day after I sent every device I had out for field testing. They reported an issue so I was doing a full simulation and found 1 input didn't work in the simulation.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Peg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 17:27:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-with-P-E-s-simulator/m-p/130129#M2328</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-03-27T17:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with P&amp;E's simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-with-P-E-s-simulator/m-p/130130#M2329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;These two issues have now been acknowledged by Mark Cukier of P&amp;amp;E and have been noted for correction in the next release.&lt;/P&gt;&lt;P&gt;BR Peg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Apr 2006 07:47:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-with-P-E-s-simulator/m-p/130130#M2329</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-04-08T07:47:16Z</dc:date>
    </item>
  </channel>
</rss>

