Altera_Forum
Honored Contributor
12 years agoNewbie - FT245 driver and 1 second period timer issue
Hello,
I am a newbie in FPGA programming and VHDL, however I did some projects on Altera boards (simple 7 segments, etc). I am using wayengineer.com Cyclone IV board and FT245 breakout board for it. It runs on 50Mhz clock. I did a code that can read a single byte from the FT245 and then it will send it back. Problem is that every 1 second, I want the data - last byte received to be sent back. However, code constantly sends data out. It does read it correctly, so if you type 'a' it will send 'a' all the time and not when PeriodS_Reg = '1'. Debug led that blinks every 1 second, does blink in that interval. If I comment out in idle state elsif(PeriodS='1') and in reading_end I go to writing_prepare state, code correctly echo's back the last read character. So I think this elsif(PeriodS='1') in idle state is the problem since it always goes in it. Do you have any suggestions?