Jim Kueneman wrote: > > I have been trying to come up with the best (ok..ANY) solution to my > problem. I want to use a 16F84 for this. I have seen a product on the > market using the '84 that does what I want to do so I know it can be done. > > I need to generate a PWM with 128 steps of Duty Cycle, the frequency is > up to me it can be low. At the same time I need to watch an input pin that > has a serial stream encoded using a pulse width scheme. The width of a "1" > is between 52us and 64us and a "0" is between 90us and 10000us. Are you gowing to write an NMRA DCC dekoder ??? Kind regards Stefan Sczekalla-Waldschmidt ssw@oikossw.de >