Please tell me why this doesnt work well.
radialrandy
Posts: 78
This is a simple program to read the time between 3 low to high transistions.
pin 1 is used to start it via a button.
pin 2 in input for the signal.
im using the pulse generator output on the professional development board ran through a button.
when i run the program i push the button on pin 1 to start the rest of the program. then i push the button to let the signal from the pulse generator feed to pin 2. program takes measurements on the first 3 low to high. Problem is that using the terminal to view the result I'm seeing inconsistant results. I would think if I feed the measurement with a pulse generator signal then the counts between pulses should be very close. But there off from alittle bit to sometimes alot. I dont know what I doing wrong. I'm very new at this. Please help.
thanks
pin 1 is used to start it via a button.
pin 2 in input for the signal.
im using the pulse generator output on the professional development board ran through a button.
when i run the program i push the button on pin 1 to start the rest of the program. then i push the button to let the signal from the pulse generator feed to pin 2. program takes measurements on the first 3 low to high. Problem is that using the terminal to view the result I'm seeing inconsistant results. I would think if I feed the measurement with a pulse generator signal then the counts between pulses should be very close. But there off from alittle bit to sometimes alot. I dont know what I doing wrong. I'm very new at this. Please help.
thanks
Comments
See how repeat is used in the propeller manual and how the lines under it you want to repeat are spaced over.