FIFO Reset

ASF

Lifetime Supporting Member
Join Date
Jun 2012
Location
Australia
Posts
3,907
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!
 
A reset should do all of those things, but it will not clear out the data, as it is ignored until the pointer advances actually point to a location in the stack, at which point it is relatively moot, as it is being loaded with fresh data, and without the .DN bit being set, you shouldn't be unloading anything from it.
 
Great, thanks! Yeah, I'm using a FLL (not FFL) to clear out the data first, so that's not a problem.

Thanks!
 

Similar Topics

I am not sure if this is possible but if there is a way, you guys would be the ones to know. I am currently working on a project where we are...
Replies
7
Views
184
Hello all, I'm using a 5069-L330ER in a project and I need to essentially capture some data that will be shown as a trend on a screen. The data...
Replies
9
Views
942
Hello! I have a network of conveyors bringing raw product to 4 machines. A sensor in the hopper of each machine calls for more product. I'm...
Replies
15
Views
5,689
Hello everyone, has anyone out there ever made a FIFO using an FFL and FFU instructions on a Micro800? I have tried setting it up just as I would...
Replies
9
Views
3,066
I have a bottle capper that is using an encoder and FIFO logic to track the free standing bottles passing through a bottle capper. I have checked...
Replies
31
Views
11,603
Back
Top Bottom