In SX Microcontrollers, SX/B Compiler and SX-Key Tool, metron9 wrote: Well I have good news and bad news. Bad news first: The chips were not in the plastic case, good thing you used bubble envelope they are ok, I fixed the bent pins. I tested it on a BS2, runs fine I tested it on the SX and had very odd starts and stops, sometimes it worked sometimes it did not work. From my experience that can mean two things. Power to the chip, or loose connections. I checked the power, the chip is only drawing 24mA and the power from the SX board is fine. The good news: Loose connections, that was my problem, the pin headers on my SX totally suck, RB4 I had to use an extra thick wire to even make a connection. When I got all the connections tight, I cranked her up to 50MHZ. No problem with the original code, I removed all pause commands and dropped the WR pulsout in the subs to 1 instead of 10. No problem at 50MHZ You have loose connections or you have some wires crossed. I also did not use the .1 cap I ran a test at 50mhz sending to portC with no delay the first loop (too fast to see) then with 1mS delay alternating between loop 1 and loop 2. No glitches runs perfect. Let me know what you find. Test Code: turns on 8 led's in sequence from nit 0 to bit 7 on PORT C [code] REDOIT: PATTERN3=1 FOR X=1 TO 8 GOSUB PortC_8255 pause 1 pattern3=pATTERN3*2 NEXT pattern3=1 FOR X=1 TO 8 GOSUB PortC_8255 PAUSE 100 pattern3=pATTERN3*2 NEXT GOTO REDOIT [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=150716#m152849 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)