<?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: SPI, Unable to Clear SPRF in Simulator</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139898#M5485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The compiler is not throwing away accesses to volatile registers. So if the registers are correctly declared as volatile as in the delivered header file MC68HC908JW32.h, then the compiler does translate them even if the values are not used.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;    4:  unsigned char DataOut;    5:  void code() {Function: code  0000          [5]     L0:         6:      7:    while (SPSCR_SPTE==0);  //Wait for SPI transmit data register to empty  0000 0700fd   [5]             BRCLR 3,_SPSCR,L0 ;abs = 0000    8:    SPDR = DataOut;         //Send data to be written  0003 c60000   [4]             LDA   DataOut  0006 b700     [3]             STA   _SPDR  0008          [5]     L8:         9:    while (SPSCR_SPRF==0);  //Wait for SPI receive data  0008 0f00fd   [5]             BRCLR 7,_SPSCR,L8 ;abs = 0008   10:    SPSCR;                  //Clear SPRF per data sheet  000b b600     [3]             LDA   _SPSCR   11:    SPDR;                   // by reading SPSCR and SPDR  000d b600     [3]             LDA   _SPDR   12:       13:  }  000f 81       [4]             RTS  &lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 08:40:00 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2020-10-29T08:40:00Z</dc:date>
    <item>
      <title>SPI, Unable to Clear SPRF in Simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139895#M5482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;Using the 68HC908JW32 with CodeWarrior full chip simulation debugger, after successfully sending data out with the SPI module, I am unable to clear the bit for the receiver full SPRF in the SPSCR register.&amp;nbsp; I read the Status and Control Register and the Data Register as directed by the data sheet, but the bit won't go away.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;&amp;nbsp; while (SPSCR_SPTE==0);&amp;nbsp; //Wait for SPI transmit data register to empty&amp;nbsp; SPDR = DataOut;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Send data to be written&amp;nbsp; while (SPSCR_SPRF==0);&amp;nbsp; //Wait for SPI receive data&amp;nbsp; SPSCR;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Clear SPRF per data sheet&amp;nbsp; SPDR;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // by reading SPSCR and SPDR&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;&amp;nbsp;&lt;BR /&gt;I have also tried multiple reads of the SPSCR and SPDR and looping while waiting for the bit to clear.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;Please pardon my C; I was raised on assembly language.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: 'Courier New';"&gt;Any assistance would be greatly appreciated!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:39:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139895#M5482</guid>
      <dc:creator>krump</dc:creator>
      <dc:date>2020-10-29T08:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: SPI, Unable to Clear SPRF in Simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139896#M5483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello and welcome to the forum.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;To read SPDR, I would suggest you do either of the following -&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Assign the value of SPDR to a byte variable&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;temp = SPDR;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;or return the value of SPDR on exit from a function&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;return SPDR;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Note that SPSCR is read within the following line, so nothing further is necessary&amp;nbsp;-&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;while (SPSCR_SPRF==0);&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;A SPI function might be as follows -&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;byte SPI_trans(byte DataOut)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;{&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp; while (SPSCR_SPTE==0);&amp;nbsp; // Wait for&amp;nbsp;transmit data register&amp;nbsp;empty&lt;BR /&gt;&amp;nbsp; SPDR = DataOut;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Send&amp;nbsp;byte value&lt;BR /&gt;&amp;nbsp; while (SPSCR_SPRF==0);&amp;nbsp; // Wait for SPI receive&amp;nbsp;flag&lt;BR /&gt;&amp;nbsp; return SPDR;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Return received value&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;}&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 02:29:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139896#M5483</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-07-13T02:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: SPI, Unable to Clear SPRF in Simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139897#M5484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hi Krump,&lt;BR /&gt;&lt;BR /&gt;Just to expand on Mac's suggestion, I believe your code:&lt;BR /&gt;&lt;BR /&gt;SPSCR;&lt;BR /&gt;SPDR;&lt;BR /&gt;&lt;BR /&gt;is valid C code, and should read the designated registers. However, the optimizations in the CodeWarrior compiler are probably removing the resulting code, as the results are not used. Mac's code forces the compiler to treat the register reads as necessary, and prevents them from being optimized out.&lt;BR /&gt;&lt;BR /&gt;It might be interesting to look at the final code in the debugger.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 06:03:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139897#M5484</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2007-07-13T06:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: SPI, Unable to Clear SPRF in Simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139898#M5485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The compiler is not throwing away accesses to volatile registers. So if the registers are correctly declared as volatile as in the delivered header file MC68HC908JW32.h, then the compiler does translate them even if the values are not used.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;    4:  unsigned char DataOut;    5:  void code() {Function: code  0000          [5]     L0:         6:      7:    while (SPSCR_SPTE==0);  //Wait for SPI transmit data register to empty  0000 0700fd   [5]             BRCLR 3,_SPSCR,L0 ;abs = 0000    8:    SPDR = DataOut;         //Send data to be written  0003 c60000   [4]             LDA   DataOut  0006 b700     [3]             STA   _SPDR  0008          [5]     L8:         9:    while (SPSCR_SPRF==0);  //Wait for SPI receive data  0008 0f00fd   [5]             BRCLR 7,_SPSCR,L8 ;abs = 0008   10:    SPSCR;                  //Clear SPRF per data sheet  000b b600     [3]             LDA   _SPSCR   11:    SPDR;                   // by reading SPSCR and SPDR  000d b600     [3]             LDA   _SPDR   12:       13:  }  000f 81       [4]             RTS  &lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:40:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139898#M5485</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2020-10-29T08:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: SPI, Unable to Clear SPRF in Simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139899#M5486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Oops. Your right.&lt;BR /&gt;&lt;BR /&gt;Thanks for the correction, Daniel, and for the assembly code.&lt;BR /&gt;&lt;BR /&gt;Krump, Daniel's compiled code looks like it should be clearing the receiver-full bit. Can you generate the assembler code from your project and see if it looks the same?&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 06:55:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139899#M5486</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2007-07-13T06:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: SPI, Unable to Clear SPRF in Simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139900#M5487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Knowing, and having been reminded of, the above, it seems that the best way to code this is like the OP krump has done. This immediately lets the reader know that this is just being done "because it has to be" rather than because the returned value is required or it is being transferred into another variable for use elsewhere.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Having said that it would appear the only explanation for it not working is that the read has been optimised away, perhaps because it has not been declared as volatile. Further optimisations perhaps? (not a compiler expert here).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 08:00:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139900#M5487</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-07-13T08:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: SPI, Unable to Clear SPRF in Simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139901#M5488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I tried the above code, using CW08 V5.0,&amp;nbsp;under full chip simulation for the JW32.&amp;nbsp; In my case, the SPRF flag never became set whilst within the wait loop (COP timeout eventually occurred within the&amp;nbsp;loop).&amp;nbsp; This is the opposite problem to that described above.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;It is possible that the debugger itself is clearing the flag, by monitoring the state of&amp;nbsp;SPSCR and SPDAT.&amp;nbsp; On the other hand, it may be a limitation or bug within the full chip simulator.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I wonder if this issue might be dependent on the version of CW?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 22:19:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139901#M5488</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-07-13T22:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: SPI, Unable to Clear SPRF in Simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139902#M5489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks for the responses from all!&lt;/DIV&gt;&lt;DIV&gt;I've tried the suggestions and the bit still won't clear.&lt;/DIV&gt;&lt;DIV&gt;From the disassembly, it appears as though the SPSCR and SPDR are being read:&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;   55:   unsigned char DataOut;   56:      57:   while (SPSCR_SPTE==0);  //Wait for SPI transmit data register to empty  000b 0700fd   [5]             BRCLR 3,_SPSCR,LB ;abs = 000b   58:   SPDR = DataOut;   //Send data to be written  000e 95       [2]             TSX     000f e602     [3]             LDA   2,X  0011 b700     [3]             STA   _SPDR  0013          [5]     L13:       59:    while (SPSCR_SPRF==0);  //Wait for SPI receive data  0013 0f00fd   [5]             BRCLR 7,_SPSCR,L13 ;abs = 0013   60:   SPSCR;  0016 b600     [3]             LDA   _SPSCR   61:   SPDR;  0018 b600     [3]             LDA   _SPDR&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I'll keep plugging at this one.&lt;/DIV&gt;&lt;DIV&gt;Thanks again!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:40:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139902#M5489</guid>
      <dc:creator>krump</dc:creator>
      <dc:date>2020-10-29T08:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: SPI, Unable to Clear SPRF in Simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139903#M5490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Eureka!&lt;/DIV&gt;&lt;DIV&gt;Copied my code to a new project using the 68HC908GR16.&lt;/DIV&gt;&lt;DIV&gt;The SPRF clears properly in the simulator.&lt;/DIV&gt;&lt;DIV&gt;For some reason it doesn't&amp;nbsp;clear with the 68HC908JW32.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks again for your feedback!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-krump&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2007 00:56:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139903#M5490</guid>
      <dc:creator>krump</dc:creator>
      <dc:date>2007-07-14T00:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: SPI, Unable to Clear SPRF in Simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139904#M5491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;At the present time, the most that can be said is that a problem exists during simulation of the SPI.&amp;nbsp; I would think that, when the code is tested using the real hardware, there would not be a flag clearing problem.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2007 00:59:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139904#M5491</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-07-14T00:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: SPI, Unable to Clear SPRF in Simulator</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139905#M5492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I confirm that the JW simulator IS broken in CW5.0 and 5.1 in regard to reading SPI data register does not clear SPRF.&lt;/DIV&gt;&lt;DIV&gt;I do not see what bigmac has mentioned!&lt;/DIV&gt;&lt;DIV&gt;Doing EXACTLY the same test with GP32 and S08GB, the simulator works as expected.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2007 09:38:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-Unable-to-Clear-SPRF-in-Simulator/m-p/139905#M5492</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2007-07-15T09:38:12Z</dc:date>
    </item>
  </channel>
</rss>

