<?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 Capacitance on output pins? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Capacitance-on-output-pins/m-p/167492#M10804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How much is tolerable?&amp;nbsp; Specifically,&amp;nbsp;our product just reaching volume production uses&amp;nbsp;a 9S08QG (again) and has a yield problem.&amp;nbsp; The controller with that uC plugs into a somewhat specialized remote control SMPS, and transmits blinky light signals via SPI to 75HC595s on a control panel.&amp;nbsp; We risked a couple feet (0.7m) ribbon cable for this and a couple other non-critical functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a very few units over a fairly narrow range of SMPS operation, the blinky lights go crazy.&amp;nbsp; SMPS replacement eliminates the symptom.&amp;nbsp; I finally got around to characterizing a bad unit - 20 MHz chirps at the presumed SMPS PWM transitions, growing big enough to upset 3V3 logic as symptoms occur.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried some ferrite ribbon cable clamps suggested by the SMPS vendor, supposed to be ~30 ohms at&amp;nbsp;20 MHz.&amp;nbsp; No effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In desperation and with assumptions of 100 ohm pin impedance and 1 MHz OK for a cutoff frequency, we hung 1nF caps between the SPI signals and ground.&amp;nbsp; Symptom eliminated, and the signal transitions are still 2x-3x faster than the recommended '595 maximum (specified at 2V and 4.5V).&amp;nbsp; We have uC pins set to slow transitions &amp;amp; low drive (after seeing overshoot with opposite settings, trying to diagnose this earlier) so could probably reverse that if faster transitions were needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might violate the uC absolute maximum instantaneous output current rating, not by much nor for very long.&amp;nbsp; I wonder what other trouble it could get us into?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course I'm seeking support from the SMPS maker toward a fix on that end.&amp;nbsp; Just thought I would ask for advice from the forum before going to the trouble of a board spin...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Sep 2011 02:35:39 GMT</pubDate>
    <dc:creator>DSbob</dc:creator>
    <dc:date>2011-09-17T02:35:39Z</dc:date>
    <item>
      <title>Capacitance on output pins?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Capacitance-on-output-pins/m-p/167492#M10804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How much is tolerable?&amp;nbsp; Specifically,&amp;nbsp;our product just reaching volume production uses&amp;nbsp;a 9S08QG (again) and has a yield problem.&amp;nbsp; The controller with that uC plugs into a somewhat specialized remote control SMPS, and transmits blinky light signals via SPI to 75HC595s on a control panel.&amp;nbsp; We risked a couple feet (0.7m) ribbon cable for this and a couple other non-critical functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a very few units over a fairly narrow range of SMPS operation, the blinky lights go crazy.&amp;nbsp; SMPS replacement eliminates the symptom.&amp;nbsp; I finally got around to characterizing a bad unit - 20 MHz chirps at the presumed SMPS PWM transitions, growing big enough to upset 3V3 logic as symptoms occur.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried some ferrite ribbon cable clamps suggested by the SMPS vendor, supposed to be ~30 ohms at&amp;nbsp;20 MHz.&amp;nbsp; No effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In desperation and with assumptions of 100 ohm pin impedance and 1 MHz OK for a cutoff frequency, we hung 1nF caps between the SPI signals and ground.&amp;nbsp; Symptom eliminated, and the signal transitions are still 2x-3x faster than the recommended '595 maximum (specified at 2V and 4.5V).&amp;nbsp; We have uC pins set to slow transitions &amp;amp; low drive (after seeing overshoot with opposite settings, trying to diagnose this earlier) so could probably reverse that if faster transitions were needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might violate the uC absolute maximum instantaneous output current rating, not by much nor for very long.&amp;nbsp; I wonder what other trouble it could get us into?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course I'm seeking support from the SMPS maker toward a fix on that end.&amp;nbsp; Just thought I would ask for advice from the forum before going to the trouble of a board spin...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2011 02:35:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Capacitance-on-output-pins/m-p/167492#M10804</guid>
      <dc:creator>DSbob</dc:creator>
      <dc:date>2011-09-17T02:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Capacitance on output pins?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Capacitance-on-output-pins/m-p/167493#M10805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You do not say&amp;nbsp;whether the MCU is the&amp;nbsp;SPI master or slave?&amp;nbsp; Either way, you will not achieve a SPI clock frequency of 20 MHz.&amp;nbsp; The maximum limits for a 'QG8 device will be fbus/2 for&amp;nbsp;SPI master, and fbus/4 for&amp;nbsp;SPI slave.&amp;nbsp; If you are operating at the maximum bus frequency of 10MHz, this will give 5MHz maximum for a master, and 2.5MHz for a slave.&amp;nbsp; For a lower bus frequency, the upper limits will be correspondingly lower.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At&amp;nbsp;very high&amp;nbsp;clock frequencies, transmission line considerations may come into play, with the need to terminate each end with a "characteristic impedance" value, to eliminate signal reflections.&amp;nbsp; However, this is not generally feasible with low power devices due to insufficient drive current being available.&amp;nbsp; And I don't think that this is your problem since the propagation speed is about 3.3 nanoseconds per metre - a small fraction of the clock period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would seem far more likely that you have signal "crosstalk" due to the capacitance between individual conductors of the ribbon cable.&amp;nbsp; If the clock and serial data signals are in adjacent conductors, the crosstalk may be reduced by having a grounded conductor&amp;nbsp;interspersed between each of the signal leads.&amp;nbsp; Alternatively, you could utilize the lines used for other low frequency signals that already have bypass capacitance to ground.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the MCU is the master, the simplest way to reduce the effect of&amp;nbsp;signal distortion&amp;nbsp;is to reduce the SPI clock frequency below the maximum allowable value - you might try a setting of say 1 MHz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not like the idea of using 1nF shunt capacitors.&amp;nbsp; These may cause the outputs to become over-stressed, especially for high SPI clock frequencies.&amp;nbsp; If additional signal filtering is required, you might try fitting a series resistance at each output, say 100 - 300 ohms.&amp;nbsp; You would then use a much lower shunt capacitor value&amp;nbsp;at the input pins, perhaps 30-100pF.&amp;nbsp; But this should be necessary only if lthe crosstalk reduction measures outlined above were not sufficient.&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, 17 Sep 2011 22:51:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Capacitance-on-output-pins/m-p/167493#M10805</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-09-17T22:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Capacitance on output pins?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Capacitance-on-output-pins/m-p/167494#M10806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bigmac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did say transmitting to '595s. Hard to make the MCU a slave with that on the other end!&amp;nbsp; I did not say I was transmitting at 20 MHz either.&amp;nbsp; That is the SMPS-PWM noise frequency (or possibly that noise ringing due to transmission line effects?).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my previous attempts to address this issue, I had lowered the SPI frequency to 50 kHz!&amp;nbsp; Only need to send fast enough to multiplex two 7-segment digits in the driver subroutine, and very little processing between calls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Crosstalk is certainly not my problem either.&amp;nbsp; I was alert enough to put the signals on alternate conductors and the signals are absolutely clean with an inactive SMPS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thank you for the last paragraph - had thought of adding or allowing for the series resistors although that is going to make a PCB spin quite tight.&amp;nbsp; However, from the above you can see high frequency SPI operation is not an issue.&amp;nbsp; I should probably look for a much worse case to experiment on, then try 0.1n.&amp;nbsp; Don't like the idea of some "exotic" intermediate value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 20:03:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Capacitance-on-output-pins/m-p/167494#M10806</guid>
      <dc:creator>DSbob</dc:creator>
      <dc:date>2011-09-19T20:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Capacitance on output pins?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Capacitance-on-output-pins/m-p/167495#M10807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With help from Google, I found something that does not say "just don't do it!"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2434.pdf" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN2434.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From Freescale no less.&amp;nbsp; The capacitive loading section quantifies the effect on signal edges, but of course I knew that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still have not informed my SMPS vendor I can fix their problem.&amp;nbsp; I figure they deserve to find out why 2% of their product behaves so different from the rest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 01:36:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Capacitance-on-output-pins/m-p/167495#M10807</guid>
      <dc:creator>DSbob</dc:creator>
      <dc:date>2011-10-07T01:36:01Z</dc:date>
    </item>
  </channel>
</rss>

