<?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: SH8 problem. in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910188#M22908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your guess is correct. I checked the three devices I normally use and they all had RAMStart pointing at $100; above the immediate address range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Derek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2019 19:23:04 GMT</pubDate>
    <dc:creator>derekjones</dc:creator>
    <dc:date>2019-05-29T19:23:04Z</dc:date>
    <item>
      <title>SH8 problem.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910182#M22902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having troubles with PWM on the HCS08SH8. I have a simple program to control the brightness of an led. I wrote it a couple of months ago using a QD4 demo board. When all was working as I wanted it to, I loaded the program on to an HCS08QG8 where it worked fine. Needing another couple of I/O's, I decided to switch to the HCS08SH8 device. On this device the program fails in a strange way. When the modulation reaches about 50%, the waveform collapses to a spike, only to recover again at about 55%. What is going on? The program works fine on the other two devices.&lt;/P&gt;&lt;P&gt;Hope someone can shed some light on this problem.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Derek Jones.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2019 14:40:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910182#M22902</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2019-05-27T14:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: SH8 problem.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910183#M22903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any scope of the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please give me more information about the problem&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2019 16:40:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910183#M22903</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2019-05-27T16:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: SH8 problem.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910184#M22904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a copy of the code which worked perfectly on the QD4 and the QG8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I monitored the waveform on an oscilloscope and watched the pulse widen as I altered the potentiometer. When the pulse was about 50% of the duty cycle, it collapsed into a pulse of about 5% wide. But as I increased the pot., the pulse reappeared at about 55% and grew as I continued to increase the pot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference I can find between the QD/QG devices and the SH is that the SH runs at twice the speed, and the SH has a different revision of TPM module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps to resolve this problem as I like to use the SH in many of my projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Derek Jones.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2019 19:11:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910184#M22904</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2019-05-27T19:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: SH8 problem.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910185#M22905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For one thing, there is no RAM at $60 for the SH8.&amp;nbsp; You need to relocate your variable (anval) elsewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 15:07:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910185#M22905</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2019-05-28T15:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: SH8 problem.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910186#M22906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for spotting that; I wonder why CodeWarrior did not pick that up. The program now works correctly.&lt;/P&gt;&lt;P&gt;Whilst I have your attention I wonder if you could enlighten me as to what the difference is between RAMStart and Z_RAMStart? Other than several location in memory.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Derek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 18:42:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910186#M22906</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2019-05-28T18:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: SH8 problem.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910187#M22907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although I don't use CW (but my own &lt;A class="link-titled" href="http://www.aspisys.com/asm8.htm" title="http://www.aspisys.com/asm8.htm"&gt;ASM8 HC08/9S08 Assembler&lt;/A&gt;), and I'm not too sure about their naming conventions, I can safely guess by the name that Z_RAMStart is the beginning of zero-page RAM, i.e., RAM whose most significant byte is zero.&amp;nbsp; For the SH8, that would be between $80 and $FF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zero-page RAM is normally used for variables (e.g., bit-mapped flags) that need to be accessed with B[R]SET/B[R]CLR instructions and, in general, for any variables that are referenced the most number of times in your code as this results in smaller object size with zero-page operand instructions being one byte smaller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad it worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 21:47:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910187#M22907</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2019-05-28T21:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: SH8 problem.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910188#M22908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your guess is correct. I checked the three devices I normally use and they all had RAMStart pointing at $100; above the immediate address range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Derek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 19:23:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SH8-problem/m-p/910188#M22908</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2019-05-29T19:23:04Z</dc:date>
    </item>
  </channel>
</rss>

