"S. Baglatzis" writes: > I want to build an electronic speed controller with pic 16c84 . > The PIC has to generate A PWM and to measure an impuls coming from > receiver. I took the easy way out with this problem: I used a 16C63, and measured the incoming pulse widths in an ISR with the capture modules. The outgoing pulses are generated with straightforward code with interrupts disabled. I might miss an incoming pulse while I generate the outgoing pulses, but for my application, missing one pulse doesn't matter. The drawback to this scheme is that I can only handle two channels, since the 16C63 only has two capture/compare modules. If I want more, I'll have to either multiplex the capture/compare pins (and reduce my sampling rate), or stick in another 16C63 and SPI them together. Brian