Forum Discussion
Altera_Forum
Honored Contributor
12 years agoReading external data using On-chip FIFO and NIOS II
Hi all, I'm trying to read a 8-bit ADC with parallel output using NIOS II. I need to read the ADC at 24MHz to capture correct samples. I have been trying a 1K On-Chip FIFO to capture this data....
Altera_Forum
Honored Contributor
12 years agoI tried
while(1)
{
alt_u32 level = altera_avalon_fifo_read_level(0x2001800);
printf("LEVEL = %d\n", level);
}
and received "LEVEL = 0" in the polling.