In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tbest80 wrote: Is their away to change the value of LED1 To any output port I want through out the program? sorta like the example I have bellow but this wont work Thanks For Any Help DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX FREQ 4_000_000 LED VAR RC.0 BTN1 VAR RB.1 BTN2 VAR RB.2 BTN3 VAR RB.3 ' ------------------------------------------------------------------------- INTERRUPT NOPRESERVE 5000 ' ------------------------------------------------------------------------- ISR_Start: PWM LED, 200,40 RETURNINT ' ========================================================================= Program start start: IF BTN1=0 then LED1 IF BTN2=0 then LED2 IF BTN3=0 then LED3 goto start LED1: LED = RC.1 goto start LED2: LED = RC.2 goto start LED3: LED = RC.3 goto start ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=204222 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)