Forum Discussion
Altera_Forum
Honored Contributor
9 years agoUsing a SPI module.
I have a SPI module. Code: But how do I actually use it? In order to write to it I should load some data to SPI_Wr_Data and apply high signal to SPI_Wr_Start_Trig. When the trigger applied the da...
Altera_Forum
Honored Contributor
9 years agoI see. Thank you. I thought so. Is it right to do so?
--first byte SPI_Wr_Data <= "00000001"; trigger <= '1'; SPI_Wr_Start_Trig <= trigger; --??? delay? trigger <= '0'; SPI_Wr_Start_Trig <= trigger; --second byte SPI_Wr_Data <= "00000011"; trigger <= '1'; SPI_Wr_Start_Trig <= trigger; trigger <= '0'; SPI_Wr_Start_Trig <= trigger; --and so on...