Hi,
I'm new to Arduino and have been having a tough time figuring out how to read a stream of 9 16bit words. Each 16bit word has a start and stop bit. The signal is an output from a 2.4Ghz RC Satelite Receiver that normally feeds the main receivers decoder and represents the pulse width of each servo/channel. The 9th word is a checksum. The signal repeats every 20ms, pulse width is 25us (40KB).
What have you written so far?
Post it, and maybe we can comment.
Better still, post the specification of the serial stream, or a link to it.
Maybe have a look at the software serial library source, and work out from that.
I haven't written anything yet, I'd like to use the software serial library or a modified one but don't think I'll get the 40Kb rate I need. The newsoftserial library gets 50K on a 16Mhz atmega but at 8bit rate, if I modify it for 16bits I don't think it will work. I'm trying to understand interupts and timers but so far haven't found a good example.
I woke up this morning with a fresh mind and was able to solve my problem. I used a timer and interrupt to read the signal and have it working well. The more I learn about the Arduino/Atmega the more I am impressed. I have some experience with PICAXE, BASIC Stamps, and Propellers and am finding the Arduino/Atmega hard to beat. I don't have the time or patience to learn assembler, but suspect someday I may need to.