Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHi Daxiwen,
This code (if(data_temp&0x100==0x100)) is for synchronization, I keep reading the port, if the 9th bit is high, it means data is coming. For the speed, I got the same result when I use 500K and 2M clock in my verilog code. So I guess it is not the reason. Is there any special mechanism for PIO 16bits? --- Quote Start --- I don't see any synchronization system in your code, so you have no way of defining or detecting when you read the PIO port. If the PIO port input changes faster than your software can read it, then you'll miss some values. --- Quote End ---