Hi Fredrick,
The code is hopefully not to critical....
The way I would start is to measure the smallest pulse and use this as the clock.
Set up one of the timers to interupt at this interval. Then just clock through 8 bit (byte) numbers that match the waveform.
ie. $8A = 10001010
BobP




Bookmarks