<?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>topic Re: Problems getting SCI Module on a S08PT60 to work ASM in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-getting-SCI-Module-on-a-S08PT60-to-work-ASM/m-p/495203#M21947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All bit instructions (BSET, BCLR, BRSET, BRCLR) expect a zero-page operand (i.e., a variable mapped somewhere in page 0, RAM address 0 through 255).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently, in your case, SCI1_S1 is located outside this range.&amp;nbsp; So, you need to emulate the bit instructions.&amp;nbsp; Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;BCLR 7,XXX&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is (practically) equivalent to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;LDA XXX&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;AND #$7F&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;STA XXX&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while a BRCLR 7,XXX,Address can be emulated with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;LDA XXX&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;BIT #$80&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;BEQ Address&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Similarly for the rest, except that you need ORA for BSET and inverted mask, and BNE for BRSET.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jan 2016 16:31:31 GMT</pubDate>
    <dc:creator>tonyp</dc:creator>
    <dc:date>2016-01-17T16:31:31Z</dc:date>
    <item>
      <title>Problems getting SCI Module on a S08PT60 to work ASM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-getting-SCI-Module-on-a-S08PT60-to-work-ASM/m-p/495202#M21946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have Problems with the following code:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="128452_128452.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120990iC7270A367E31E3FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="128452_128452.png" alt="128452_128452.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35732i7B77C44333D195A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I always get warnings like&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"A13003 Value is truncated to one byte main.asm /TWR-S08PT60/Sources line 119 C/C++ Problem" and&lt;/P&gt;&lt;P&gt;"A1415 Cutting constant: Value 12428 ($308C) is not in range [0..255] main.asm /TWR-S08PT60/Sources line 119 C/C++ Problem&lt;/P&gt;&lt;P&gt;in my code. I can not understand why. I think that´s also the reason why I am not able to reset the "TDRE" Flag in the SCI1_S1 Register.&lt;/P&gt;&lt;P&gt;So my complete code is not working and I am not able to send some chars out to my terminal program on my PC.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;-Ingo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 15:20:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-getting-SCI-Module-on-a-S08PT60-to-work-ASM/m-p/495202#M21946</guid>
      <dc:creator>Ingo_Michael</dc:creator>
      <dc:date>2016-01-17T15:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problems getting SCI Module on a S08PT60 to work ASM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-getting-SCI-Module-on-a-S08PT60-to-work-ASM/m-p/495203#M21947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All bit instructions (BSET, BCLR, BRSET, BRCLR) expect a zero-page operand (i.e., a variable mapped somewhere in page 0, RAM address 0 through 255).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently, in your case, SCI1_S1 is located outside this range.&amp;nbsp; So, you need to emulate the bit instructions.&amp;nbsp; Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;BCLR 7,XXX&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is (practically) equivalent to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;LDA XXX&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;AND #$7F&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;STA XXX&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while a BRCLR 7,XXX,Address can be emulated with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;LDA XXX&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;BIT #$80&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;BEQ Address&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Similarly for the rest, except that you need ORA for BSET and inverted mask, and BNE for BRSET.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 16:31:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-getting-SCI-Module-on-a-S08PT60-to-work-ASM/m-p/495203#M21947</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2016-01-17T16:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problems getting SCI Module on a S08PT60 to work ASM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-getting-SCI-Module-on-a-S08PT60-to-work-ASM/m-p/495204#M21948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, but in CW 6.3 it was possible. Now I use CW 10.6.4 and it does not. Is there another way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;-Ingo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 17:43:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-getting-SCI-Module-on-a-S08PT60-to-work-ASM/m-p/495204#M21948</guid>
      <dc:creator>Ingo_Michael</dc:creator>
      <dc:date>2016-01-17T17:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problems getting SCI Module on a S08PT60 to work ASM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-getting-SCI-Module-on-a-S08PT60-to-work-ASM/m-p/495205#M21949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ingo,&lt;/P&gt;&lt;P&gt;CW10 is much more cumbersome than old good CW6.3 but in that case the result would be the same.&lt;/P&gt;&lt;P&gt;You simply cannot do bit instruction outside of page zero.&lt;/P&gt;&lt;P&gt;In the case of PT60 this include all SCI, SPI, FTM2 timer registry, Port i/o enable and pullup.&lt;/P&gt;&lt;P&gt;For these you are forced to translate bit instruction as Tony suggested: there are no short codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Salvatore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 19:00:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Problems-getting-SCI-Module-on-a-S08PT60-to-work-ASM/m-p/495205#M21949</guid>
      <dc:creator>Encoder1</dc:creator>
      <dc:date>2016-01-17T19:00:07Z</dc:date>
    </item>
  </channel>
</rss>

