Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Bolt on June 11, 2018, 03:12:42 PM
-
I have a high speed counter, $FlowMeter. In my counter reset logic, Using both a MATH command, and a COPY, I copy the the $FlowMeter.Acc to registers, and then reset the counter. Usually this works successfully. Sometimes it does not, it will copy a 0 to the registers, as if the counter was reset before the the copy occurred.
Please see attached screenshot of logic. Can someone point me in the right direction? What am I doing wrong here?
-
Don't know of any reason why that would fail. Make sure nothing else is writing the register and make sure the reset logic is only being invoked one time. Other than that, I'm not sure.
-
Try moving your SGRST's before the JMP. See if that makes a difference. I got caught a few times not having things in the "right" order.