------------2C73BC18D86C3 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello guys I have a strange problem when trying to use the attached circuit as a small forward-only driver for a DC motor. The Mosfet is an IRF 540 and the PIC is 18F452. The pin RC2 in set as output from TRISC and i made a small program in C18 to issue a "zero-logic" for one second and then "one-logic" (+5v) for another second and so on. My problem is that the motor starts turning when the 1 is issued on RC2 but instead of stopping when i issue 0 it just turns a bit slowly... After 1 second the 1 is sent again on RC2 and the motor turns again fast. Can you guys help me with a suggestion ? What should i do ? Dumitru Stama ------------2C73BC18D86C3 Content-Type: image/gif; name="mosfet.GIF" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="mosfet.GIF" R0lGODlhlgI4AfcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/ /////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/ MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/ mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/ /5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJl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hBVNe9Im1jMJ2rid27oNO4Dc vb0txL/Nx85ryHJMyHtM3ILsxIO83Mrd3Hjs3IVs3IcM3ce929Z93did3dq93dzd3d4U/d3gHd7i Pd7kXd7mfd7ond7lERAAOw== ------------2C73BC18D86C3 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist ------------2C73BC18D86C3--