Forum Discussion
Altera_Forum
Honored Contributor
9 years agoQuestion for SPI
Hello! Please tell me how to check the status of the pin MISO. unsigned long int Get7794_Data(alt_u8 channel) { unsigned long int data; alt_u8 cfg_reg; cfg_reg = (channel...
Altera_Forum
Honored Contributor
9 years agoOne way is to add a PIO peripheral with an input connected to the MISO pin and monitor that directly.
The code you pasted is just showing (normal) byte-wise access of the peripheral so there is no direct way to poll the MISO pin status.