Use 001 for idle, 010 for one high seen, and 100 for two or more consecutive highs. A low input returns to idle. Invalid encodings also recover to idle.
Use 001 for idle, 010 for one high seen, and 100 for two or more consecutive highs. A low input returns to idle. Invalid encodings also recover to idle.