But his fault was occuring on the FFU instruction?
However, if the previous FFL instruction did increment the count after it executed, maybe the next time it used the control structure was in the FFU and then that caused the fault?
Although, It probably wouldn't be a bad a idea to monitor that count variable in the control structure and inhibit the FFL instruction anyway if the count was at the end.
If the FIFO empties, it is supposed to return zero's.
You could use the empty bit to shut down the timer.
However, if the previous FFL instruction did increment the count after it executed, maybe the next time it used the control structure was in the FFU and then that caused the fault?
Although, It probably wouldn't be a bad a idea to monitor that count variable in the control structure and inhibit the FFL instruction anyway if the count was at the end.
If the FIFO empties, it is supposed to return zero's.
You could use the empty bit to shut down the timer.
Last edited: