MC3102 Pulse On Rollover
LadyCailinBot opened this issue ยท 8 comments
CRAFTBOOK-2538 - Reported by awollangk
If MC3102 pulsed when it rolled over it could feed to another MC3102 to create an extended counter. Just a thought.
Comment by awollangk
With the MC3102 it counts up to a maximum and then resets. That is the point I am talking about: when the counter goes back to zero. The term "roll over" comes from the old-style car odometers. The dials with numbers would roll and at some point they would go from nine to zero which would trigger the next dial to advance one. Eventually all the digits on the odometer would be nines and when they all went to zero it was said that this odometer "rolled over".
Comment by me4502
To me it seems like what you want is what it's supposed to do, if it doesn't, I'll fix that.
Comment by awollangk
Just tested it on the test server where I have version "2051-390888b" installed. I set it up so a button fired up some redstone wire which went to the input of an MC3102. That MC3102 then output to some redstone wire which went to a block and on that block I put a redstone torch so I could easily see what was going on there. The way it behaved was not what I expected. The sign counted up to the max and when it hit its max the output turned on so that was fine. Unfortunately it never reset.
There are two ways this behavior could be improved:
-
As soon as it hits the maximum it turns the output on and then resets the count back to zero turning the output back off again. The count for a MC3102 with 10 would then go from 0 to 9. This would then reset every 10 pulses which is usually what makes the most sense would be the way most programmers and engineers would engineer it. That would also make it consistent with similar real world hardware.
-
Right now it is SISO. You could make it 2ISO instead so that everything would work exactly the way it does now, but if you powered the second input THAT would reset the counter. (I suppose you could make it 3ISO so you could power it from either side to reset it or even have one side that resets it and another that decrements the count by one.) This option has the advantage of not changing the behavior of any existing devices. This would also have the advantage of being able to make it work like the first option by simply wiring the output to the reset.