Hello friends,
i'm trying to make a very simple program in which i'm feeding two signals (basically frequency,square waves) to at89c51 uC to measure time difference between them(one on INT0 and other on INT1 ), but i'm unable to get correct value. I've tried everything, can't understand what mistake i'm making. I'm sending my program (done in Keil c51) along with. someone please help me to find out my mistake.
lats,
Maybe the time different of the 2 signals is to long, you have to use long int for timer and count the timer 0 overflow rate manually, like this:
you can not measure difrence between square signals using external interrupt.
As I undersatand you conect the waves on 2 pins generating 2 interrupts, but an exernal interrupt is generated when meets an edge. So you need to find another method to do this.