FIFO problems

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

After six monthes my first major Atmel project is going fairly well. :P The problem is that I don't think I completely understand how the FIFO works. I assumed that once the FIFO is completly read I can input more data into the device. Now after carefully reading the datasheet I see that I can resend the data that has all ready been read which means that it isn't actually empty when the empty flag is on. That means I need to reset the FIFO in order to clear the buffer. Is this the correct reasoning or am I missing something?

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, You need to rest the FIFO in order to write new data for reading into it. What the resend does it just resets the read pointer back to the beginning of data buffer.

The wriute pointer can only be reset by the reset. This is a FIFO not a circular buffer.

Very interesting chip BTW

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

eskoilola wrote:
Yes, You need to rest the FIFO in order to write new data for reading into it.

Thank you so much. That does actually validate the problem that I was having with the chip. I just didn't thoroughly read the data sheet.
eskoilola wrote:
Very interesting chip BTW

The chip Im using is obsolete now. :cry: Fortunatly, the chip with a larger buffer is still available. :P