In SX Microcontrollers, SX/B Compiler and SX-Key Tool, uptonryan wrote: After much fiddling I decided to change over to BASIC. Which is a lot easier to program in. I added the Mini SSC II Mode jumper I changed the baud to T9600 I powered the servo from its own lab power supply. I powered the Pololu off the SX Tech Vdd and Vss and it works.! But it seams to only work for about 2min and then crashes with the pololu going dead, No led nothing. ANy ideas on why this is so? ' ------------------------------------------------------------------------- ' Program Description ' ------------------------------------------------------------------------- ' ' This program scans the 1-Wire bus and when a device is detected it will ' read and display its serial number. ' ------------------------------------------------------------------------- ' Device Settings ' ------------------------------------------------------------------------- DEVICE SX28, OSCXT2, TURBO, STACKX, OPTIONX FREQ 4_000_000 ID "Servo" ' ------------------------------------------------------------------------- ' IO Pins ' ------------------------------------------------------------------------- SOut PIN RA.3 OUTPUT ' output to pololu ' ------------------------------------------------------------------------- ' Constants ' ------------------------------------------------------------------------- Baud CON "T9600" ' ------------------------------------------------------------------------- ' Variables ' ------------------------------------------------------------------------- ' ========================================================================= PROGRAM Start ' ========================================================================= ' ------------------------------------------------------------------------- ' Subroutine Declarations ' ------------------------------------------------------------------------- TX_BYTE SUB 1, 2 ' transmit byte ' ------------------------------------------------------------------------- ' Program Code ' ------------------------------------------------------------------------- Start: Main: serout SOut, Baud,$FF 'set pos servo 0 serout SOut, Baud,$00 'set pos servo 0 serout SOut, Baud,$55 'set pos servo 0 PAUSE 50 serout SOut, Baud,$FF 'set pos servo 0 serout SOut, Baud,$00 'set pos servo 0 serout SOut, Baud,$F5 'set pos servo 0 PAUSE 50 GOTO Main ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=337418#m337441 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)