In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zamuel_a wrote: Here is the code. I'm just waiting for a signal to go low on RA pin 3 and it works if the clock is lower then around 30MHz DEVICE SX28,OSCHS3,TURBO IFDEF __SASM ;SASM Directives DEVICE STACKX,OPTIONX IRC_CAL IRC_SLOW ELSE ;Parallax Assembler Directives DEVICE STACKX_OPTIONX ENDIF RESET Initialize ;---------------------------- DEBUG SETTINGS --------------------------- FREQ 70_000_000 ;------------------------ INITIALIZATION ROUTINE ----------------------- initialize mode $0F ;Set Mode to allow Direction configuration mov !RA,#%1100 ;Port A bits 0-1 to output, rest inputs mov RA,#%1110 ;Disable BUSY and LOAD_ADDR main wait jb RA.3,wait jmp start start clrb RA.1 jmp start ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=398400#m398422 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)