In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sawmiller wrote: ok folks, i'm tired of beating my head agaisnt a wall... im tring to move a motor using a HB25 controller. i have the hb25 hooked up to a 7.5 v wall wart green light there its hooked up to a small motor that i tested against the input to the hb25 fuse is good running a sx tech board with a 2 wires coming over to the servo connections on the hb25 one is on vss other is RA.3 heres the code ' ------------------------------------------------------------------------- ' Program Description hb25 motor controller ' ------------------------------------------------------------------------- ' ------------------------------------------------------------------------- ' Device Settings ' ------------------------------------------------------------------------- DEVICE SX28,OSC4MHZ,TURBO,STACKX,OPTIONX FREQ 4_000_000 ' ------------------------------------------------------------------------- ' IO Pins ' ------------------------------------------------------------------------- HB25 PIN RA.3 ' ------------------------------------------------------------------------- ' Constants ' ------------------------------------------------------------------------- ' ------------------------------------------------------------------------- ' Variables ' ------------------------------------------------------------------------- cnt VAR Byte temp1 VAR Byte counter VAR Byte ' ========================================================================= PROGRAM Start ' ========================================================================= ' ------------------------------------------------------------------------- ' Subroutine Declarations ' ------------------------------------------------------------------------- ' ------------------------------------------------------------------------- ' Program Code ' ------------------------------------------------------------------------- Start: PAUSE 5 ' Wait For HB-25 To Initialize Main: LOW HB25 ' Make I/O Pin Output/Low pulsout hb25,200 pause 5000 pulsout hb25,150 pause 1000 GOTO Main ' ------------------------------------------------------------------------- ' Subroutine Code ' ------------------------------------------------------------------------- ' ------------------------------------------------------------------------- ' Data ' ------------------------------------------------------------------------- is my pulsout correct ? what am i doing wrong ? dan ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=191206 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)