Variable-modulus counter
By designing a variable modulus counter and utilizing the coordinated operation of a reset circuit, counting circuit, key circuit, comparison circuit, conversion circuit, and display circuit, the problem that existing counters cannot adapt to different counting requirements is solved, and the counting modulus can be flexibly adjusted, thus improving the flexibility and practicality of the counter.
Patent Information
- Application Number
- CN202520181713.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-06
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2035-02-06
AI Technical Summary
Existing counters have a fixed counting modulus, which cannot adapt to changes in different counting requirements.
A variable modulus counter was designed, including a reset circuit, a counting circuit, a key circuit, a comparison circuit, a conversion circuit, and a display circuit. The counting modulus can be flexibly adjusted through the coordinated operation of these circuits.
This enables the counter to adapt to different counting needs, improving its flexibility and practicality.
Smart Images

Figure CN223772033U_ABST
Abstract
Description
Technical Field
[0001] This utility model belongs to the field of counter technology, specifically relating to a variable modulus counter. Background Technology
[0002] Counting is a simple and basic operation. A counter is a logic circuit that implements this operation. In digital systems, counters mainly count the number of pulses to achieve measurement, counting, and control functions, and also have frequency division functions. A counter consists of a basic counting unit and some control gates.
[0003] Counters are widely used in digital systems. For example, they are used in computer controllers to count instruction addresses to sequentially fetch the next instruction, and in arithmetic logic units to record the number of additions and subtractions during multiplication and division. Counters can also be used to display the working status of products; the key indicator is the number of bits in the counter.
[0004] Existing counters typically have a fixed counting modulus, which cannot adapt to changes in different counting requirements.
[0005] Based on this, a variable modulus counter is proposed. Utility Model Content
[0006] The technical problem to be solved by this utility model is to provide a variable modulus counter to address the shortcomings of the prior art mentioned above.
[0007] To solve the above-mentioned technical problems, the technical solution adopted by this utility model is: a variable modulus counter, including a reset circuit, a counting circuit, a key circuit, a comparison circuit, a conversion circuit, a decoding circuit and a display circuit;
[0008] The output of the reset circuit is connected to the counting circuit, and the reset circuit is used to clear the counting circuit.
[0009] The counting circuit is used to count the input pulse signal. The key circuit is connected to the counting circuit and a comparison circuit is connected to adjust the counting modulus of the counter.
[0010] The output of the counting circuit is connected to a comparison circuit, which compares the output signal of the counter with the signal input by the key.
[0011] The counting circuit is also connected to a conversion circuit, which is connected to a decoding circuit. The decoding circuit is connected to a display circuit. The conversion circuit converts binary values into 8421BCD codes, the decoding circuit converts the 8421BCD codes into decimal values, and the display circuit displays the output value of the decoding circuit.
[0012] As a further explanation of this utility model, the counting circuit records the number of pulses and outputs the number of pulses in 4-bit binary form.
[0013] As a further explanation of this utility model, the key circuit dynamically adjusts the counting modulus of the counter by inputting a 4-bit signal.
[0014] As a further explanation of this utility model, the comparison circuit compares the output signal of the counter with the signal input by the key; if they are the same, it outputs a feedback signal to set the counter to 0 and starts a new round of counting.
[0015] As a further explanation of this utility model, the conversion circuit uses an adder to convert a 4-bit binary value into a 2-bit 8421 BCD code, and the decoding circuit converts the 2-bit 8421 BCD code converted by the conversion circuit into decimal values respectively.
[0016] This utility model has the following advantages compared with the prior art:
[0017] 1. This utility model consists of a reset circuit, a counting circuit, a key circuit, a comparison circuit, a conversion circuit, a decoding circuit, and a display circuit. Working together, they can achieve flexible adjustment of the counting modulus.
[0018] 2. This invention allows for dynamic adjustment of the counter's counting modulus via key input signals in the key circuit. This enables the counter to adapt to different counting needs, improving its flexibility and practicality. Attached Figure Description
[0019] Figure 1 This is a schematic diagram of the principle framework of this utility model;
[0020] Figure 2 This is the overall circuit diagram of this utility model.
[0021] Explanation of reference numerals in the attached figures:
[0022] 1-Reset circuit; 2-Counting circuit; 3-Key circuit; 4-Comparison circuit; 5-Conversion circuit; 6-Decoding circuit; 7-Display circuit. Detailed Implementation
[0023] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present utility model.
[0024] like Figure 1 and Figure 2 As shown, this utility model provides a technical solution: a variable modulus counter, including a reset circuit 1, a counting circuit 2, a key circuit 3, a comparison circuit 4, a conversion circuit 5, a decoding circuit 6, and a display circuit 7;
[0025] The output of the reset circuit 1 is connected to the counting circuit 2. The reset circuit 1 realizes the zeroing operation of the counting circuit 2, so that the counter starts counting from zero and the display circuit displays all zeros.
[0026] The counting circuit 2 is used to count the input pulse signal, record the number of pulses, and output the number of pulses in 4-bit binary form.
[0027] The button circuit 3 is connected to the comparison circuit 4. The counting modulus of the counter is adjusted by the button circuit 3. Specifically, the counting modulus of the counter is dynamically adjusted by inputting a 4-bit signal. The decimal number of the input 4-bit signal is the counting modulus of the counter.
[0028] The output of the counting circuit 2 is connected to a comparator circuit 4. The comparator circuit 4 compares the output signal of the counter with the signal input by the key. If they are the same, a feedback signal is output to set the counter to 0 and start a new round of counting. That is, the counting range of the counter is controlled to be consistent with the key input modulus, so that the counter can adapt to different counting needs and realize flexible adjustment of the counting modulus.
[0029] The counting circuit 2 is also connected to a conversion circuit 5, which is connected to a decoding circuit 6. The decoding circuit 6 is connected to a display circuit 7. The conversion circuit 5 uses an adder to convert a 4-bit binary value into a 2-bit 8421 BCD code. The decoding circuit 6 converts the 2-bit 8421 BCD code converted by the conversion circuit into decimal values. The output value of the decoding circuit 6 is displayed by the display circuit 7.
[0030] Applying the variable modulus counter in this embodiment to industrial automation control systems such as motor control and logistics system control can help achieve digitalization, intelligence and automation in industrial production processes.
[0031] When used in electronic devices such as electronic clocks, electronic timers, and electronic scales, it can provide digital timing control or display.
[0032] It can be applied in scientific experiments, circuit design and communication testing in laboratory research, helping researchers to achieve various digital tests, controls and measurements. It is highly flexible, has low production costs, and is easy to promote and use.
[0033] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.
[0034] Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the present invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A variable modulus counter, characterized by: It comprises a reset circuit (1), a counting circuit (2), a button circuit (3), a comparison circuit (4), a conversion circuit (5), a decoding circuit (6) and a display circuit (7). The output end of the reset circuit (1) is connected to the counting circuit (2), and the zero operation of the counting circuit (2) is realized through the reset circuit (1). The counting circuit (2) is used for counting the input pulse signal, the comparison circuit (4) is connected between the counting circuit (2) and the button circuit (3), and the counting modulus of the counter is adjusted through the button circuit (3). The output end of the counting circuit (2) is connected with the comparison circuit (4), and the output signal of the counter and the signal input by the button are compared through the comparison circuit (4). The counting circuit (2) is also connected with the conversion circuit (5), the conversion circuit (5) is connected with the decoding circuit (6), the decoding circuit (6) is connected with the display circuit (7), the binary value is converted into 8421BCD code through the conversion circuit (5), the 8421BCD code is converted into decimal value through the decoding circuit (6), and the output value of the decoding circuit (6) is displayed through the display circuit (7).
2. A variable modulus counter as claimed in claim 1, characterized in that The counting circuit (2) records the number of pulses and outputs the number of pulses in the form of 4-bit binary.
3. A variable modulus counter as claimed in claim 1, wherein, The button circuit (3) dynamically adjusts the counting modulus of the counter by inputting 4-bit signals.
4. A variable modulus counter as claimed in claim 1, wherein, The comparison circuit (4) compares the output signal of the counter and the signal input by the button; if they are the same, a feedback signal is outputted to make the counter 0, and a new round of counting is started.
5. A variable modulus counter as claimed in claim 1, wherein, The conversion circuit (5) is used for converting 4-bit binary value into 2-bit 8421BCD code by using adder, and the decoding circuit (6) is used for converting the 2-bit 8421BCD code converted by the conversion circuit into decimal value.