Dean Manion

S12 pins output

Discussion created by Dean Manion on Jan 20, 2008
Latest reply on Jan 31, 2008 by Umit YILMAZ
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?