<?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 Using the 68HC908QB8 SCI ISR with CW 5 and the MCUInit.c file in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-68HC908QB8-SCI-ISR-with-CW-5-and-the-MCUInit-c-file/m-p/135856#M4152</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;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am working with the 68HC908QB8 and trying to get the receive interrupt running. I have a few questions about working with the SCI Receive ISR generated by the "Device Initialization" code:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1. What&amp;nbsp;is the best way to clear the SCIS1_RDRF bit and how to reference it?&lt;/DIV&gt;&lt;DIV&gt;2. How do I get the received byte back to the main.c file? ( I have tried extern byte data&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Has anyone converted the receive circular buffer example referenced in another post to the QB8?&lt;/DIV&gt;&lt;DIV&gt;(AppNote430-03.pdf)&lt;/DIV&gt;&lt;DIV&gt;If so, can you please send or post it?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;TIA,&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Nov 2006 11:14:52 GMT</pubDate>
    <dc:creator>datamstr</dc:creator>
    <dc:date>2006-11-09T11:14:52Z</dc:date>
    <item>
      <title>Using the 68HC908QB8 SCI ISR with CW 5 and the MCUInit.c file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-68HC908QB8-SCI-ISR-with-CW-5-and-the-MCUInit-c-file/m-p/135856#M4152</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;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am working with the 68HC908QB8 and trying to get the receive interrupt running. I have a few questions about working with the SCI Receive ISR generated by the "Device Initialization" code:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1. What&amp;nbsp;is the best way to clear the SCIS1_RDRF bit and how to reference it?&lt;/DIV&gt;&lt;DIV&gt;2. How do I get the received byte back to the main.c file? ( I have tried extern byte data&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Has anyone converted the receive circular buffer example referenced in another post to the QB8?&lt;/DIV&gt;&lt;DIV&gt;(AppNote430-03.pdf)&lt;/DIV&gt;&lt;DIV&gt;If so, can you please send or post it?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;TIA,&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 11:14:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-68HC908QB8-SCI-ISR-with-CW-5-and-the-MCUInit-c-file/m-p/135856#M4152</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-11-09T11:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 68HC908QB8 SCI ISR with CW 5 and the MCUInit.c file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-68HC908QB8-SCI-ISR-with-CW-5-and-the-MCUInit-c-file/m-p/135857#M4153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I answered my own question #1, I was using the the defs from another 08 processor.&lt;/DIV&gt;&lt;DIV&gt;Now the following&amp;nbsp;compiles OK.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;__interrupt void isrINT_SCIReceive(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;/* Write your interrupt code here ... */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;byte rec_char;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;if(SCS1_SCRF)&amp;nbsp; // 1st half of SCRF clear procedure&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;rec_char = SCDR;&amp;nbsp; // 2nd half of SCRF clear procedure&lt;BR /&gt;}&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Still have question #2.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;TIA,&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 11:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-68HC908QB8-SCI-ISR-with-CW-5-and-the-MCUInit-c-file/m-p/135857#M4153</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-11-09T11:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 68HC908QB8 SCI ISR with CW 5 and the MCUInit.c file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-68HC908QB8-SCI-ISR-with-CW-5-and-the-MCUInit-c-file/m-p/135858#M4154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello David,&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;You have declared &lt;FONT face="Courier New"&gt;rec_char&lt;/FONT&gt; as a local variable.&amp;nbsp; For visibility of its contents outside the ISR, it must be declared as a global variable.&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;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 00:30:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-68HC908QB8-SCI-ISR-with-CW-5-and-the-MCUInit-c-file/m-p/135858#M4154</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-11-10T00:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 68HC908QB8 SCI ISR with CW 5 and the MCUInit.c file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-68HC908QB8-SCI-ISR-with-CW-5-and-the-MCUInit-c-file/m-p/135859#M4155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Mac,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So would I have to make it Static Global because it is in an ISR?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;BR /&gt;David&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 05:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-68HC908QB8-SCI-ISR-with-CW-5-and-the-MCUInit-c-file/m-p/135859#M4155</guid>
      <dc:creator>datamstr</dc:creator>
      <dc:date>2006-11-10T05:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using the 68HC908QB8 SCI ISR with CW 5 and the MCUInit.c file</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-68HC908QB8-SCI-ISR-with-CW-5-and-the-MCUInit-c-file/m-p/135860#M4156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello David,&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;If you made the variable a static global, it would only have visibility in the file in which it was declared.&amp;nbsp; This may not be what you require.&amp;nbsp; An ordinary global will have visibility for all files.&amp;nbsp; Both types would be permanently allocated to RAM.&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, 10 Nov 2006 05:57:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-the-68HC908QB8-SCI-ISR-with-CW-5-and-the-MCUInit-c-file/m-p/135860#M4156</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-11-10T05:57:40Z</dc:date>
    </item>
  </channel>
</rss>

