<?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 RF 433 transmitter and receiver modules with MC9S08SH8 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-RF-433-transmitter-and-receiver-modules-with-MC9S08SH8/m-p/147071#M7426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I need to add &lt;STRONG&gt;rf 433 communication&lt;/STRONG&gt; between some modules, driven by &lt;STRONG&gt;MC9S08SH8&lt;/STRONG&gt; microcontrollers, and a server with an Arduino architecture.&lt;/P&gt;&lt;P&gt;For the Arduino part of this project I am going to use a VirtualWire library for this communication but I haven't found a similar library for the freescale microcontroller.&lt;/P&gt;&lt;P&gt;My plan is to duplicate the VirtualWire library, using&amp;nbsp; I/O pins for the receiver and transmitter signals and a timer for synchronizing the transfer of the previously coded data.&lt;/P&gt;&lt;P&gt;Anyone can give me some &lt;STRONG&gt;suggestion&lt;/STRONG&gt;? There is some &lt;STRONG&gt;code&lt;/STRONG&gt; I could use for this project?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2011 15:05:10 GMT</pubDate>
    <dc:creator>Sireta</dc:creator>
    <dc:date>2011-07-07T15:05:10Z</dc:date>
    <item>
      <title>Using RF 433 transmitter and receiver modules with MC9S08SH8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-RF-433-transmitter-and-receiver-modules-with-MC9S08SH8/m-p/147071#M7426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I need to add &lt;STRONG&gt;rf 433 communication&lt;/STRONG&gt; between some modules, driven by &lt;STRONG&gt;MC9S08SH8&lt;/STRONG&gt; microcontrollers, and a server with an Arduino architecture.&lt;/P&gt;&lt;P&gt;For the Arduino part of this project I am going to use a VirtualWire library for this communication but I haven't found a similar library for the freescale microcontroller.&lt;/P&gt;&lt;P&gt;My plan is to duplicate the VirtualWire library, using&amp;nbsp; I/O pins for the receiver and transmitter signals and a timer for synchronizing the transfer of the previously coded data.&lt;/P&gt;&lt;P&gt;Anyone can give me some &lt;STRONG&gt;suggestion&lt;/STRONG&gt;? There is some &lt;STRONG&gt;code&lt;/STRONG&gt; I could use for this project?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 15:05:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-RF-433-transmitter-and-receiver-modules-with-MC9S08SH8/m-p/147071#M7426</guid>
      <dc:creator>Sireta</dc:creator>
      <dc:date>2011-07-07T15:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using RF 433 transmitter and receiver modules with MC9S08SH8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-RF-433-transmitter-and-receiver-modules-with-MC9S08SH8/m-p/147072#M7427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, and welcome to the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should not be too difficult to adapt the code written by Mike McCauley, that I presume you already have, to suit the 'SH8 device.&amp;nbsp; Of course you will need to alter vw_setup() to suit the HCS08 timer, presumably a TPM channel, to generate the sampling rate.&amp;nbsp; Additionally, the various&amp;nbsp;pin allocation functions will also not suit, but I cannot see a disadvantage in using fixed allocations within your code for receiver input, transmitter output, and PTT control.&amp;nbsp; And the ISR function would also need modification to suit CodeWarrior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code sample seems to mostly&amp;nbsp;assume a RF bit rate of 2000 bits/s&amp;nbsp;(166.7 bytes per&amp;nbsp;second after decoding), but the noise detection process within the receive algorithm requires sampling at eight times this rate,&amp;nbsp; i.e. a timer interrupt every 62.5 microseconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a trimmed bus frequency between 16MHz and 20MHz, this would give a period of 1000 to 1250 bus cycles between interrupts.&amp;nbsp; The ISR code needs to be completed in considerably less than this period.&amp;nbsp; With the rather complex code within vw_pll(), the receiver sampling function,&amp;nbsp;I am not sure whether this is feasible.&amp;nbsp; If not, you would need to reduce the RF bit rate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have some gut held reservations about the robustness of the signalling when&amp;nbsp;using on-off keyed (OOK) modulation.&amp;nbsp; I might have preferred a self-clocking arrangement, such as Manchester encoding, or perhaps a PWM scheme.&amp;nbsp; These can also potentially require a lower number of samples per bit, but do have a greater number of RF transitions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A characteristic of OOK receivers is that, due to the action of a "bit slicer" circuit, and its minimum threshold level, when the received RF level&amp;nbsp;reduces toward&amp;nbsp;the threshold limit, the decoded pulse width will become narrower.&amp;nbsp; Depending on the modulation scheme and the decodeing method, this may impose a sensitivity limit, rather than the noise level.&amp;nbsp; Typically, the pulse narrowing effect will be worse on receivers that have &lt;U&gt;less&lt;/U&gt; noise outpur in the absence of a signal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With a maximum packet&amp;nbsp;payload of 27 or 30 bytes, the use of a 16-bit CRC might seem excessive - I would have thought an 8-bit CRC would suffice.&amp;nbsp; In practice, I would probably restrict the packet&amp;nbsp;payload to about eight bytes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2011 23:51:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-RF-433-transmitter-and-receiver-modules-with-MC9S08SH8/m-p/147072#M7427</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-07-09T23:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using RF 433 transmitter and receiver modules with MC9S08SH8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-RF-433-transmitter-and-receiver-modules-with-MC9S08SH8/m-p/147073#M7428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help, I will think about your commentary about the frequency and timing... this is always a difficult part of microcontroller programming for me.&lt;/P&gt;&lt;P&gt;I am already working on the code so I will post again with the results... soon, I hope&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jul 2011 01:38:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-RF-433-transmitter-and-receiver-modules-with-MC9S08SH8/m-p/147073#M7428</guid>
      <dc:creator>Sireta</dc:creator>
      <dc:date>2011-07-10T01:38:09Z</dc:date>
    </item>
  </channel>
</rss>

