News:

  • September 25, 2026, 06:31:22 AM

Login with username, password and session length

Author Topic: FIFORESET not setting Empty bit  (Read 7254 times)

Bolt

  • Hero Member
  • *****
  • Posts: 598
FIFORESET not setting Empty bit
« on: December 09, 2021, 02:35:07 AM »
I was working on a project tonight, and I did a DEVCLEAR, STRCLEAR, and FIFORESET (clear user block) all triggered by one bit.  It did everything, but it did not reset the FIFO.Empty flag to TRUE.  I have not troubleshooted it further.  Is this expected behavior?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: FIFORESET not setting Empty bit
« Reply #1 on: December 09, 2021, 08:57:22 AM »
I was working on a project tonight, and I did a DEVCLEAR, STRCLEAR, and FIFORESET (clear user block) all triggered by one bit.  It did everything, but it did not reset the FIFO.Empty flag to TRUE.  I have not troubleshooted it further.  Is this expected behavior?

Should set Depth to 0, Empty to true, and Full to false. I did a quick test and it seems to work. Could be something else going on though.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: FIFORESET not setting Empty bit
« Reply #2 on: December 09, 2021, 09:31:49 AM »
It set Depth to 0, but not Empty to TRUE.  I did not have it completely Full, so not sure what it would have done there.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: FIFORESET not setting Empty bit
« Reply #3 on: December 09, 2021, 09:41:21 AM »
It set Depth to 0, but not Empty to TRUE.  I did not have it completely Full, so not sure what it would have done there.

If you can dupe it with a small bit of code, please send it to us.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO