manush30
Member level 1
Hi everyone,
I try to write a code with 4 lines of I2C.
I want to make delay for 1us and measure it through oscilloscope.
( SCL1 & SDA1 and after the delay SCL2 & SDA2 and compare them)
i have I2C master and a 8 GPIO to measure it with a scope.
I have 50M CLK on the board.
I try to do it like this:
the same to the SDA line.
IT DOESN'T WORKKKK:???:
I try to write a code with 4 lines of I2C.
I want to make delay for 1us and measure it through oscilloscope.
( SCL1 & SDA1 and after the delay SCL2 & SDA2 and compare them)
i have I2C master and a 8 GPIO to measure it with a scope.
I have 50M CLK on the board.
I try to do it like this:
Code:
PROCESS(SCL_OE, SCL)
BEGIN
IF (DELAY <= 50) THEN
IF SCL_OE='0' THEN
SCL <= 'Z';
ELSE
SCL <= '0';
END IF;
DELAY<= DELAY +1;
ELSE
IF SCL_OE='0' THEN
SCL_O <= 'Z';
ELSE
SCL_O <= '0';
END IF;
DELAY<=0;
END IF;
IT DOESN'T WORKKKK:???: