the register
U1 is a 64 bit serial in shift register. One bit goes in per price move. The grid shows the word that is filling right now, first bit at the top left, reading across and then down. A gold cell is a 1, a dark cell is a 0, and a cell that is only an outline has not been written yet.
The page reads the price once a second. When a reading is higher than the one before, a 1 goes in. When it is lower, a 0 goes in. When it is the same, nothing goes in, so a quiet coin leaves the register exactly where it was.
The word that is filling. It clears the moment the 64th bit lands.
this word so far
| measure | reading |
|---|---|
| bits in the word | |
| ones | |
| zeros | |
| bits to latch | |
| longest run of ones | |
| longest run of zeros | |
| changes of direction | |
| burn parts if it latched at this count |
On the 64th bit the word latches. The register hands the word to the EEPROM, hands the count of 1s to the regulator, and clears itself for the next word.
the bits as a signal
Top: the last word that latched. Bottom: the word filling now. High is a 1, low is a 0, oldest bit on the left.
A page that opens halfway through a word has to rebuild the bits it missed. It does that from the one minute price record, which is coarser than one second readings, so two open pages can differ by a few bits until the word latches. The latched word is written once and after that everyone reads the same one.
what every count does
| ones | burn | holders | buyback | carried | K1 |
|---|---|---|---|---|---|
| 0 | 0 | 16 | 48 | 0 | closed |
| 1 | 0 | 16 | 48 | 0 | closed |
| 2 | 1 | 16 | 47 | 0 | closed |
| 3 | 2 | 16 | 46 | 0 | closed |
| 4 | 3 | 16 | 45 | 0 | closed |
| 5 | 3 | 16 | 45 | 0 | closed |
| 6 | 4 | 16 | 44 | 0 | closed |
| 7 | 5 | 16 | 43 | 0 | closed |
| 8 | 6 | 16 | 42 | 0 | closed |
| 9 | 6 | 16 | 42 | 0 | closed |
| 10 | 7 | 16 | 41 | 0 | closed |
| 11 | 8 | 16 | 40 | 0 | closed |
| 12 | 9 | 16 | 39 | 0 | closed |
| 13 | 9 | 16 | 39 | 0 | closed |
| 14 | 10 | 16 | 38 | 0 | closed |
| 15 | 11 | 16 | 37 | 0 | closed |
| 16 | 12 | 16 | 36 | 0 | closed |
| 17 | 12 | 16 | 36 | 0 | closed |
| 18 | 13 | 16 | 35 | 0 | closed |
| 19 | 14 | 16 | 34 | 0 | closed |
| 20 | 15 | 16 | 33 | 0 | closed |
| 21 | 15 | 16 | 33 | 0 | closed |
| 22 | 16 | 16 | 32 | 0 | closed |
| 23 | 17 | 16 | 31 | 0 | closed |
| 24 | 18 | 16 | 30 | 0 | closed |
| 25 | 18 | 16 | 30 | 0 | closed |
| 26 | 19 | 16 | 29 | 0 | closed |
| 27 | 20 | 16 | 28 | 0 | closed |
| 28 | 21 | 16 | 27 | 0 | closed |
| 29 | 21 | 16 | 27 | 0 | closed |
| 30 | 22 | 16 | 26 | 0 | closed |
| 31 | 23 | 16 | 25 | 0 | closed |
| 32 | 24 | 16 | 0 | 24 | open |
| 33 | 24 | 16 | 0 | 24 | open |
| 34 | 25 | 16 | 0 | 23 | open |
| 35 | 26 | 16 | 0 | 22 | open |
| 36 | 27 | 16 | 0 | 21 | open |
| 37 | 27 | 16 | 0 | 21 | open |
| 38 | 28 | 16 | 0 | 20 | open |
| 39 | 29 | 16 | 0 | 19 | open |
| 40 | 30 | 16 | 0 | 18 | open |
| 41 | 30 | 16 | 0 | 18 | open |
| 42 | 31 | 16 | 0 | 17 | open |
| 43 | 32 | 16 | 0 | 16 | open |
| 44 | 33 | 16 | 0 | 15 | open |
| 45 | 33 | 16 | 0 | 15 | open |
| 46 | 34 | 16 | 0 | 14 | open |
| 47 | 35 | 16 | 0 | 13 | open |
| 48 | 36 | 16 | 0 | 12 | open |
| 49 | 36 | 16 | 0 | 12 | open |
| 50 | 37 | 16 | 0 | 11 | open |
| 51 | 38 | 16 | 0 | 10 | open |
| 52 | 39 | 16 | 0 | 9 | open |
| 53 | 39 | 16 | 0 | 9 | open |
| 54 | 40 | 16 | 0 | 8 | open |
| 55 | 41 | 16 | 0 | 7 | open |
| 56 | 42 | 16 | 0 | 6 | open |
| 57 | 42 | 16 | 0 | 6 | open |
| 58 | 43 | 16 | 0 | 5 | open |
| 59 | 44 | 16 | 0 | 4 | open |
| 60 | 45 | 16 | 0 | 3 | open |
| 61 | 45 | 16 | 0 | 3 | open |
| 62 | 46 | 16 | 0 | 2 | open |
| 63 | 47 | 16 | 0 | 1 | open |
| 64 | 48 | 16 | 0 | 0 | open |