Padu wrote: > From: "Sergey Dryga" > >> PIC10F* should fit the bill. Any logic you want to implement. >> >> Sergey >> >> > > I liked the idea, except that I'll have to use a 12F because my compiler > does not support 10F, but since that's a one time deal, no big problems > betweem 50 cents and 1 dollar. > > So, my program would have one line only in its main loop: > > OUTPUT = RF_PWM and not CTRL or CTRL and PIC_PWM; > > It is simple enough and I've already tested on my 18F452 (at least on my > simulator) and logic works exactly as I want. > > How couldn't I think of this by myself? > > I don't know what you're timing requirements are, but I just build an exor to mix an RS232 signal with a soundcard signal, using a 12F675 and a full blown JAL compiler. Because of the signal amplitudes RS232: -12V .. +12V, soundcard -1V .. +1V, a pic seemed to be the ideal solution: analog input and substrate diodes. In the simulator it worked great, in practice it was very lousy, because the time jitter was much to large. After moving all the code to the interrupt section, it indeed worked great !! So finally somewhat more than 1 line of code ;-) cheers, Stef > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist