In SX Microcontrollers, SX/B Compiler and SX-Key Tool, les_blue wrote: Wreno, Sorry for the delay, I'm trying to get several projects wrapped up at the same time. This is the hard coded version for 8 switches on a 2 channel radio, should give you some idea of the program flow. It will be implemented as a VP at some point. It is just the 'Buddy box' test signal generator at this point. Basic setup is: In: 8 inputs on port B, pull to ground for 'on' state Out: RC.0 is the composite (Buddy Box) signal RC.1 is a 'clock bit', constant '1' (2mS servo out)- I thought i needed this, but it is unused RC 2 is the serial data bit (1/2 mS servo out) contains the 8 encoded switches Notes: Ignore the LCD stuff, it is my standard 'debug out' for this board and is jumped over in this code. RC.1 (RC channel 1) is were I would wedge in an attempt at a servo 'RCTIME' input. In this build, if no switch is pulled low (RB.0-7), a walking bit is sent on channel 2 for my testing purposes. You may need to invert the output signal on RC.0, depending on your hardware. Sorry for the crude nature of the code, I've got my hands full getting the hydroplane that this code feeds ready for it's season opener in a few short months. Larry ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=106994#m108101 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)