<?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: S12 pins output</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-pins-output/m-p/180895#M6588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Also the 25 mA is the current&amp;nbsp; we can sink&amp;nbsp;&lt;FONT color="#666666"&gt;&amp;nbsp;instaneously, so even with such a small motor using a driver is safer.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2008 06:39:23 GMT</pubDate>
    <dc:creator>coscos</dc:creator>
    <dc:date>2008-02-01T06:39:23Z</dc:date>
    <item>
      <title>S12 pins output</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-pins-output/m-p/180892#M6585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to directly drive a small stepper motor with an C32. I found the Freescale paper AN2974 that explains how to do it. Basicly they are creating an AC waveform by configuring the GPIO ports (I'm using PT) as output and moving a byte value to the PPT IO register alternating adjacent pins between 1 and 0. Can a pin configured as output sink current? I would think you would have to alternate the pin direction while you are doing it. I'm not having any luck getting it to work. If look on a scope I don't get anything unless I ground the scope lead and then I get a normal + square wave as you would expect. Can anyone enlighten me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2008 07:35:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-pins-output/m-p/180892#M6585</guid>
      <dc:creator>deaninkc</dc:creator>
      <dc:date>2008-01-20T07:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: S12 pins output</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-pins-output/m-p/180893#M6586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;You would set the pin to output, but I strongly recommend you &lt;B&gt;NOT drive the motor directly&lt;/B&gt;.&lt;BR /&gt;&lt;BR /&gt;If you don't turn on the pull up, and have no pull up on the pin you may not see anything.&lt;BR /&gt;Also the motor could be basically shorting the pin or forcing it to 5v.&lt;BR /&gt;Hopefully, you haven't killed the chip yet. Remove the motor, turn on the pull ups and you should see the pulses.&lt;BR /&gt;&lt;BR /&gt;For one thing, the outputs are only rated at something like 25ma. For another a motor is an inductive load and will put high voltage on the the pin (when you switch an inductor, as the magnetic field collapses, it generates a high voltage).&lt;BR /&gt;&lt;BR /&gt;A SN754410 is a good choice for 5v systems.&lt;BR /&gt;&lt;A href="http://focus.ti.com/lit/ds/symlink/sn754410.pdf" rel="nofollow" target="_blank"&gt;SN754410&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;They can be purchased from &lt;A href="http://www.mouser.com/Search/Refine.aspx?Ntt=*sn754410*&amp;amp;N=1323038&amp;amp;Ntx=mode%2bmatchall&amp;amp;Ns=P_SField&amp;amp;OriginalKeyword=sn754410&amp;amp;Ntk=Mouser_Wildcards" rel="nofollow" target="_blank"&gt;mouser&lt;/A&gt; for 1.87 qty 1. You can use all 4 outputs to drive a stepper.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2008 08:57:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-pins-output/m-p/180893#M6586</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-01-20T08:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: S12 pins output</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-pins-output/m-p/180894#M6587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks for the help. The stepper is a Switec X25 micro steeper and it only draws 20ma max. The literature indicates it was designed to be driven directly by a microcontroller. I was trying to use an A3967 driver IC on the Easydriver board but was running into problems and decided to try it direct as a proof of concept. Long term I'm going to be using a HC08 but I'm more familar with the HCS12 so I'm using it to test out the logic. I'll probably use a driver chip of some sort but wanted to get a basic understanding of how to control the stepper motor first. I'll try setting the pullups.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 02:38:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-pins-output/m-p/180894#M6587</guid>
      <dc:creator>deaninkc</dc:creator>
      <dc:date>2008-01-21T02:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: S12 pins output</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-pins-output/m-p/180895#M6588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Also the 25 mA is the current&amp;nbsp; we can sink&amp;nbsp;&lt;FONT color="#666666"&gt;&amp;nbsp;instaneously, so even with such a small motor using a driver is safer.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 06:39:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-pins-output/m-p/180895#M6588</guid>
      <dc:creator>coscos</dc:creator>
      <dc:date>2008-02-01T06:39:23Z</dc:date>
    </item>
  </channel>
</rss>

