Gast
#72239
Hi to all of you... I am using a ATmega128 at 16Mhz. And I want to measure the time duration of each logiclevel (1 and 0). At speeds of max 2500Hz. To keep my problem simple for you, I want to make a pulse on evvery edge of the input signal, so my input is on "IC1, portD,4 of the mega128". I want to use input capture because I need to measure the time as aqurate as possible. (Not using INt0 and INT1 !!). After each capture I want to change the edge detection, some fist time rising, then falling, then rising again etc.. But the problem is that this changing of edge is not working. please take a look at my test programm, and try to find why it's not working. thanks for taking you time to read me... qyuip