Forum Discussion
Altera_Forum
Honored Contributor
15 years agoIsn't the code in TI AN SBAA094?
It's not actually SPI, simply a clock and a serial data stream:process(MCLK, RESn)
begin
if RESn = '0' then
DELTA1 <= (others => '0');
elsif MCLK'event and MCLK = '1' then
if MOUT = '1' then
DELTA1 <= DELTA1 + 1;
end if;
end if;
end process;