|
The value entered from the logic inputs is seen from the displays below. When the button is pressed, the entered BCD value is shifted to the right with each pulse. The system creates the value with 18 pulses. The first pulse is for control and the second pulse is for shifting. Think of the pulses in pairs. When the button is pressed, the first entered value is recorded via the counters. Since this is the first step, it is shifted one bit to the right. Then, it is checked with the incoming pulse and if it is equal to or greater than the binary 1001 value, the binary 11 subtraction process is performed. It is shifted to the right again with the other incoming pulse. This process is done with 9x2 pulses. At the end of the process, the binary value is shown via the LEDs and the hexadecimal value is shown via the two displays below. The red display standing alone shows the number of process steps. At the end of the process, it stops producing 555 pulses and the button must be pressed for the value calculation again. When the button is pressed, the previously displayed values in the algorithm's working phase are reset. Since the circuit has 8-bit BCD input, a value over 255 and A-B-C-D-E-F input produces incorrect results. You can see these values from the Hexadecimal output.
|