When we try to read the FIFO counter register (FIFOCNTSTA) right after the fifo is enabled it returns a value but after fifo gets full the counter register keeps returning zero. What does zero mean for this register? We would appreciate your help.
This looks like a question for the Precision ADCs group.
We typically handle the drivers part.
Moved to Precision ADCs subforum,
The FIFOCNTSTA returns the number of 32 bit words that are stored in the FIFO. Zero means there is no data in the FIFO. The maximum number is 1024 assuming 4kB is allocated to the data FIFO as is the default in our many example projects on GitHub.
Thanks for the quick answer. The problem is that we see data in the fifo and the overflow flag, fifo full flag, and fifo threshold flag are all 1 but FIFOCNTSTA keeps returning 0 instead of 1024 (set to 4kB).
Are you using an example project from out GitHub repo?