<?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: How to output Synchronous Data for MC9S12NE64 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-output-Synchronous-Data-for-MC9S12NE64/m-p/132857#M1769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hi Chandra&lt;BR /&gt;&lt;BR /&gt;If the bus speed of the NE64 is 25MHz, the slowest clock which the SPI interface can generate is 12.21kHz and so is faster than the rate that you would like for your synchronous output. Running the NE64 at slower clock rates will not allow its Ethernet interface to work correctly.&lt;BR /&gt;&lt;BR /&gt;It may be possible to use at timer interrupt to generate the clock timing and then 'bit-bang' the CLK and DATA lines at the speed which you require. This will involve an interrupt of around 100us period to produce a square wave on the clock line. If the external circuit can hanlde a pulse at the appropriate speed the interrupt could be reduced to half of the speed.&lt;BR /&gt;&lt;BR /&gt;A further possibility would be to use the SPI in slave mode and drive its CLK input (output from the circuit) from a timer output. The timers can be programmed to generate an accurate frequency of 4800Hz (for example). By generating 8 pulses at the required frequency, an SPI byte can be clocked out of the SPI.&lt;BR /&gt;&lt;BR /&gt;I am sorry but I don't have code to do these since it is a rather special solution but perhaps one of the methods will be appropriate for your needs.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.uTasker.com" rel="nofollow" target="_blank"&gt;www.uTasker.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 01:38:48 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2007-05-08T01:38:48Z</dc:date>
    <item>
      <title>How to output Synchronous Data for MC9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-output-Synchronous-Data-for-MC9S12NE64/m-p/132856#M1768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to output synchronous data(data on one pin&amp;nbsp; and&amp;nbsp; clk on other) at 4.8Kbps /5.4 kbps from MC9S12NE64. Kindly suggest on how to do this ? Also a sample code will be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chandra Prakash&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 12:58:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-output-Synchronous-Data-for-MC9S12NE64/m-p/132856#M1768</guid>
      <dc:creator>Chandra</dc:creator>
      <dc:date>2007-05-07T12:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to output Synchronous Data for MC9S12NE64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-output-Synchronous-Data-for-MC9S12NE64/m-p/132857#M1769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hi Chandra&lt;BR /&gt;&lt;BR /&gt;If the bus speed of the NE64 is 25MHz, the slowest clock which the SPI interface can generate is 12.21kHz and so is faster than the rate that you would like for your synchronous output. Running the NE64 at slower clock rates will not allow its Ethernet interface to work correctly.&lt;BR /&gt;&lt;BR /&gt;It may be possible to use at timer interrupt to generate the clock timing and then 'bit-bang' the CLK and DATA lines at the speed which you require. This will involve an interrupt of around 100us period to produce a square wave on the clock line. If the external circuit can hanlde a pulse at the appropriate speed the interrupt could be reduced to half of the speed.&lt;BR /&gt;&lt;BR /&gt;A further possibility would be to use the SPI in slave mode and drive its CLK input (output from the circuit) from a timer output. The timers can be programmed to generate an accurate frequency of 4800Hz (for example). By generating 8 pulses at the required frequency, an SPI byte can be clocked out of the SPI.&lt;BR /&gt;&lt;BR /&gt;I am sorry but I don't have code to do these since it is a rather special solution but perhaps one of the methods will be appropriate for your needs.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.uTasker.com" rel="nofollow" target="_blank"&gt;www.uTasker.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 01:38:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-output-Synchronous-Data-for-MC9S12NE64/m-p/132857#M1769</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2007-05-08T01:38:48Z</dc:date>
    </item>
  </channel>
</rss>

