What BB said. Just set a short loop test for signal on your input pin - if signal during the loop, don't start decoding sequece, repeat until you hit the sync pulse/pause.
There is some BASIC code that illustrates this for the SX chip here: http://forums.parallax.com/forums/default.aspx?f=7&m=175498
(he is using it to decode the Vex Robotics RX pulse stream, which is a standard Futaba, neg shift, I believe).
Depending on your application, might be easier/cheaper to just use an inexpensive RX with the decoder built in and just read the channels with pulsins sequentially. Seems to work fine for 2-3 channels at standard (4mhz) speeds. For 6 channels, you are running into timing constraints for doing the maths and outputs, as you have to get it all done in the sync pause.
6 channels be done this way and manipulated with an SX chip (see the Crawler code on the Parallax site), but it is a lot faster.
I am currently working on decoding 3 channels with an 08M (on the Servo controller board) to get information to change or pass through the signal going to one of the 3. Works pretty well, but the first pulsin is a little flakey yet. You do need to pick up the pulses in order doing it this way, or you will be getting every other pulse streams.
Oh. Another thing. Micron in England makes decoder boards with DSP for under 7 quid. just built one up, but haven't tested it with my Vex RX yet. Nice little board - 2 flavours.
Hopefully that made sense.
Wreno
Edited by - Wrenow on 01/04/2007 14:41:07