In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Joe, Okay, a couple suggestions... You will need to devise a way to measure the 15V input. You MIGHT get away with a voltage divider, but you will probably need an analog to digital converter. You could try running the 15V input thru at 100K resistor then to the pin and a 10K resistor to ground. That would make 15V = 1.36 volts (pin detects at about 1.4v). There is no way you have have microsecond pulses when operating the SX at 32KHz. Even at 4MHz it will be tricky. I would go with 20MHz. You also need to define the actual pin location on the SX chip for example: Pin1 VAR RC.0 Pin2 VAR RC.1 Pin3 VAR RC.2 Pin4 VAR RC.3 I would keep the outputs on one port and the input on a different port. That will make the code easier because you can change all four outputs with one command. Did you want to write the code in SX/B ? Or in assembly ? Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=125729#m126562 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)