Applied
Applied
Applied
Traffic Signal
Applied Control Controller:
Part 1 AND 2
System
DLD
1
Logic Gates
2
• There are many types of digital counters, but their basic purpose is to count events represented by
changing levels or pulses.
• To count, the counter must “remember” the present number so that it can go to the next proper
number in sequence. Therefore, storage capability is an important characteristic of all counters, and
flip-flops are generally used to implement them.
• Figure 1–16 illustrates the basic idea of counter operation. Counters are covered in Chapter 4.
The system controls the number of tablets into each bottle and displays a continually updated
readout of the total number of tablets bottled.
➢ To begin, the tablets are fed into a large funnel-type hopper.
• The narrow neck of the hopper creates a serial flow of tablets into a bottle on the
conveyor belt below.
• Only one tablet at a time passes the sensor, so the tablets can be counted.
By Abdulaziz J. Introduction To Digital Systems. 6/6/2024
Logic Gates
5
➢ The maximum number of tablets per bottle is entered from the keypad, changed to a code by
the Encoder, and stored in Register A.
• Decoder A changes the code stored in the register to a form appropriate for turning on
the display.
• Code converter A changes the code to a binary number and applies it to the A input of
the Comparator (Comp).
➢ An optical sensor in the neck of the hopper detects each tablet that passes and produces a
pulse. This pulse goes to the Counter and advances it by one count; thus, any time during the
filling of a bottle, the binary state of the counter represents the number of tablets in the
bottle. The binary count is transferred from the counter to the B input of the comparator
✓ The A input of the comparator is the binary number for the maximum tablets per bottle. Now, let’s say that the present
number of tablets per bottle is 50.
✓ When the binary number in the counter reaches 50, the A = B output of the comparator goes HIGH, indicating that the bottle
is full. The HIGH output of the comparator causes the valve in the neck of the hopper to close and stop the flow of tablets.
✓ At the same time, the HIGH output of the comparator activates the conveyor, which moves the next empty bottle into place
under the hopper.