--- Quote Start ---
originally posted by ericbaker@Dec 4 2006, 04:12 PM
opps!
provided that you are interested in rx only ....
//spi rx
while (1) {
//if new byte arrived via spi
if ((iord_altera_avalon_spi_status(spi_0_base) & altera_avalon_spi_status_rrdy_msk) == 1){
//read the byte and print it to screen
printf("%x\n", (iord_altera_avalon_spi_rxdata(spi_0_base) & 0x0ff));
//clears the status register
iowr_altera_avalon_spi_status(spi_0_base, 0);
}
}
thanx for the advice, but it did not work. any other ideas?
eric
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19815)
--- quote end ---
--- Quote End ---
Hi,
trivial: did you enable spy rx_rdy flag?