Hi all,
I have an application where I'm using a FIFO to store values for an average calculation. When the line shuts down I want to clear out the array (which I'm achieving with a FLL to fill the array with zero) and reset the FIFO. I'm wondering if it's as simple as just pointing a RES command at the FIFO Control?
I figure to properly reset the FIFO Control, the following things need to happen:
- DN bit turned off
- EM bit turned on (perhaps not strictly speaking necessary, but I'm pedantic like that)
- POS reset to zero
If I use the RES command and point it at the FIFO control, will it do all of these things? Or only some? I just want to keep the logic as simple as possible.
Thanks!
I have an application where I'm using a FIFO to store values for an average calculation. When the line shuts down I want to clear out the array (which I'm achieving with a FLL to fill the array with zero) and reset the FIFO. I'm wondering if it's as simple as just pointing a RES command at the FIFO Control?
I figure to properly reset the FIFO Control, the following things need to happen:
- DN bit turned off
- EM bit turned on (perhaps not strictly speaking necessary, but I'm pedantic like that)
- POS reset to zero
If I use the RES command and point it at the FIFO control, will it do all of these things? Or only some? I just want to keep the logic as simple as possible.
Thanks!