<?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>S12 / MagniV MicrocontrollersのトピックRe: HCS12: Resistance for SCI loopback</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-Resistance-for-SCI-loopback/m-p/144327#M3731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;For that to happen, you would need RAM noise / highly unlikely bugs first disabling the SCI, and then setting the correct pin in the DDRS register to output (they are inputs oor).&lt;BR /&gt;&lt;BR /&gt;To protect against that extremely unlikely case, simply write to the SCI enable flag continously from the main() loop of the program. As long as the SCI is enabled all I/O logic will be disabled. They cannot be enabled at the same time on HCS12.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2007 18:51:18 GMT</pubDate>
    <dc:creator>Lundin</dc:creator>
    <dc:date>2007-09-07T18:51:18Z</dc:date>
    <item>
      <title>HCS12: Resistance for SCI loopback</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-Resistance-for-SCI-loopback/m-p/144324#M3728</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'm working on a project with an HCS12 (MC9S12DP512) MCU.&amp;nbsp; One of the SCI ports of the MCU will normally be used for communication.&amp;nbsp; However, there will be times when&amp;nbsp;we want to loopback the TX port to the RX port (it's a bit of a long story whywe want to do this.)&amp;nbsp; When we do this loopback, we need the SCI to function so that the MCU will receive the data that it sends.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Rather than just short the two ports together, I want to put a resistor between them&amp;nbsp;to protect against the software wrongly configuring the ports and causing a logic conflict&amp;nbsp;(firstly to protect the ports but also to keep the power consumption to a minimum should this occur.)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My question is, is there anything I need to be wary of when doing this?&amp;nbsp; I'm looking at using a 10K resistor to restrict the current to 0.5mA in worst case scenario.&amp;nbsp; It's worked fine in the testing that I've done but I want to be sure that I haven't missed anything.&amp;nbsp; I haven't found anything to suggest that there is a limit on the&amp;nbsp;resistance you can place on an SCI line.&amp;nbsp; The only issue I can think of is the capacitance of the line and RX port which, for 115kbs communcation, shouldn't be affected by 10K resistance.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Red&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 17:38:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-Resistance-for-SCI-loopback/m-p/144324#M3728</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2007-09-04T17:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12: Resistance for SCI loopback</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-Resistance-for-SCI-loopback/m-p/144325#M3729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Red,&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;There is no conflict between the TXD and RXD pins of the MCU, since RXD is always an input.&amp;nbsp; The potential conflict would be between the receive buffer output (perhaps RS232 or RS485 receiver) and TXD output.&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;The use of a series resistor, as you describe,&amp;nbsp;will work only if the receive buffer output can be disabled (high-Z)&amp;nbsp;when the loopback test is required, and provides a low-Z drive to over-ride the loopback path, when it is&amp;nbsp;operational.&amp;nbsp; If the receive buffer cannot be disabled, you will probably need to use a separate multiplexer device to select the data path required for either normal or loopback operation.&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;I would expect that a resistor value of 4k7 or 10k should be satisfactory.&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>Wed, 05 Sep 2007 20:55:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-Resistance-for-SCI-loopback/m-p/144325#M3729</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-09-05T20:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12: Resistance for SCI loopback</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-Resistance-for-SCI-loopback/m-p/144326#M3730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi bigmac,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the reply.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Something that I should have mentioned in my first post is that, during the loopback, there will only be the resistor connected to the TX and RX pins.&amp;nbsp; The SCI port is&amp;nbsp;directly accessed from a connector so we can physically disconnect what would normally be connected (ie. some sort of transceiver or another SCI device) and plug in a loopback connector&amp;nbsp;that has the resistor across the required contacts.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I appreciate that, in normal operation, there should never be a conflict between the TX and RX pins.&amp;nbsp; What I want to project against is any software problem that results in the SCI channels being disabled and the corresponding general i/o pins being set as outputs with different logic levels.&amp;nbsp; It is admittedly a highly unlikely scenario but we are in a low quantity, niche market so the cost of adding a resistor is pretty insignificant.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 15:23:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-Resistance-for-SCI-loopback/m-p/144326#M3730</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2007-09-06T15:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12: Resistance for SCI loopback</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-Resistance-for-SCI-loopback/m-p/144327#M3731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;For that to happen, you would need RAM noise / highly unlikely bugs first disabling the SCI, and then setting the correct pin in the DDRS register to output (they are inputs oor).&lt;BR /&gt;&lt;BR /&gt;To protect against that extremely unlikely case, simply write to the SCI enable flag continously from the main() loop of the program. As long as the SCI is enabled all I/O logic will be disabled. They cannot be enabled at the same time on HCS12.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 18:51:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-Resistance-for-SCI-loopback/m-p/144327#M3731</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2007-09-07T18:51:18Z</dc:date>
    </item>
  </channel>
</rss>

