<?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: AC line zero detection with MCF5213 in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AC-line-zero-detection-with-MCF5213/m-p/125684#M267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;ya, i was afraid of that. i am using this as a lamp dimmer system, and was hoping that i could do it simpler. I am actually using an AC optocoupler (diodes in reverse parallel on the xmitter), but i am afraid that it isn't giving me very accurate results. I haven't been able to put it on a scope, but i do see some flickering in the lights.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Aug 2006 08:33:10 GMT</pubDate>
    <dc:creator>airswit</dc:creator>
    <dc:date>2006-08-04T08:33:10Z</dc:date>
    <item>
      <title>AC line zero detection with MCF5213</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AC-line-zero-detection-with-MCF5213/m-p/125682#M265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if it is possible to use an a/d channel of the mcf5213 as a zero detect circuit for the AC power line. I have seen a schematic for an 8-bit controller using an input port for this purpose, but i don't see how it would be good to expose the i/o line to such high voltage? they used a 1meg resistor from AC+ to the uC pin, and a 1meg resistor from AC- to ground. will this be okay on the MCF5213, and will it give accurate results? I am also using a single supply of +3.3v for my uC system&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Trevor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 20:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AC-line-zero-detection-with-MCF5213/m-p/125682#M265</guid>
      <dc:creator>airswit</dc:creator>
      <dc:date>2006-08-03T20:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: AC line zero detection with MCF5213</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AC-line-zero-detection-with-MCF5213/m-p/125683#M266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Trevor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some processors designed to accept high voltages but generally this is very dubious practice and it is best to keep clear of such short cuts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use for example an optocoupler (most have 2000...4000V isolation) and keep everything well safe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to count cycles then the output of a unidirectional optocoupler can be connected directly to a port (or better timer) input with a pull-up to the supply voltage you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note also that the ADC in the MCF5213 has a zero crossing interrupt function. Although maybe not relevant to your application, it can be programmed to automatically monitor analog input signals and trigger when a signal crosses a 'zero' threshold in either or both 'directions'. The interrupt does however have to be serviced since each time the detection occurs - it needs to be reset to enable the next trigger, but it could be used as an AC line zero detection using a suitable isolation transformer....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark Butcher&lt;BR /&gt;&lt;A href="http://www.mjbc.ch/"&gt;www.mjbc.ch&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 05:08:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AC-line-zero-detection-with-MCF5213/m-p/125683#M266</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2006-08-04T05:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: AC line zero detection with MCF5213</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AC-line-zero-detection-with-MCF5213/m-p/125684#M267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;ya, i was afraid of that. i am using this as a lamp dimmer system, and was hoping that i could do it simpler. I am actually using an AC optocoupler (diodes in reverse parallel on the xmitter), but i am afraid that it isn't giving me very accurate results. I haven't been able to put it on a scope, but i do see some flickering in the lights.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 08:33:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AC-line-zero-detection-with-MCF5213/m-p/125684#M267</guid>
      <dc:creator>airswit</dc:creator>
      <dc:date>2006-08-04T08:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: AC line zero detection with MCF5213</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AC-line-zero-detection-with-MCF5213/m-p/125685#M268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi, Airswit:&lt;BR /&gt;&lt;BR /&gt;A few years back, I did the exact same thing using an AC opto and a series resistor to detect the AC zero-crossing for an X10 receiver.&lt;BR /&gt;&lt;BR /&gt;The problem I had was that the LED of the optocoupler would turn off when the voltage got down around 4 volts (too early), and came on again when it got up to 4 volts again (too late). And the actual voltage (how early or how late) would also vary with the tolerance of the resistor and with temperature.&lt;BR /&gt;&lt;BR /&gt;My solution was to use the Input-Capture (this was an HC05) to latch the time of BOTH falling and rising edges, and then assumed the actual zero crossing was halfway between.&lt;BR /&gt;&lt;BR /&gt;A side benefit was that it could adapt to either 110v or 220v, and either 50hz or 60hz.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 09:30:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/AC-line-zero-detection-with-MCF5213/m-p/125685#M268</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2006-08-04T09:30:55Z</dc:date>
    </item>
  </channel>
</rss>

