??? 03/07/07 02:44 Read: times |
#134433 - Divide and conquer! Responding to: ???'s previous message |
Too many issues are running at the same time, that you cannot easily analyze the problem. My advice: Write a test program, that only reads the input and sets a free port to the read value of input, like an echo. Then, look by the help of a two channel scope at the input signal and the echoed port signal. If both channels show the same signal (taking into account the triggering uncertainty due to the time discrete sampling), then your triggering is working properly.
Then, add another test routine, which counts the pulses. Compare this with the input signal. By this scheme add more and more of your intended code and look, when the things go wrong. I could imagine, that the PWM and/or UART routines interfere with the triggering and counting routines, which very easily happens when interrupts are involved... Kai |
Topic | Author | Date |
some assistance in input capture | 01/01/70 00:00 | |
what is an ICB? | 01/01/70 00:00 | |
input capture B | 01/01/70 00:00 | |
How are you getting the values? | 01/01/70 00:00 | |
Divide and conquer! | 01/01/70 00:00 | |
Will try that | 01/01/70 00:00 | |
example | 01/01/70 00:00 | |
How to perform subtract/multiple | 01/01/70 00:00 | |
Code Library![]() | 01/01/70 00:00 |