??? 02/23/12 13:52 Modified: 02/23/12 13:53 Read: times |
#186160 - OR Responding to: ???'s previous message |
But if the input clock speeds up, there might not be enough time for all the ten pulses. A remedy could be to output the ten pulses in a period of time which is a bit shorter then the input clock period, to have some headroom for changes of input clock period
have two independent "tasks" an ISR based 'task' that saves the time between pulses and a main() 'task' that generates the output. synchronization will not be needed: speed-up: some time measurement will be overwritten - so what slow down- some some time measurement will be used twice - so what Erik |