The input signal is applied to a gate G and then to a counter for a precise period of time. After this period, the input signal is stopped for a while, and then the cycle is repeated. During the break, the counter's content is transferred to buffer memory and displayed. After loading the buffer memory, the counter is reset to begin a new counting cycle. The sequence of these signals follows the diagram: COUNT, LE, and RESET are generated from a timing base. A simple timing base can be constructed using two integrated circuits (ICs) according to the provided schematic. However, this schematic has a long cycle time (Tc) of 2 seconds. To shorten this time, modifications can be made to times Tle and Treset, which may require additional ICs or the use of a microcontroller with necessary software. A PIC microcontroller, specifically the PIC16F84A, has been utilized due to its ease of programming and low power consumption. The program is written for the PIC16F84A, but cheaper PICs like the PIC16C61 can also be used. The timing base configuration includes specific settings for the microcontroller, such as disabling code protection, enabling the power-on timer, and turning off the watchdog timer. The initialization section sets up the ports and starts the counting process with defined wait times. The counter utilizes two specialized ICs, the MMC22926, which operates up to 6 MHz, with the National Semiconductor alternative being the 74C926. For higher frequency processing, an ECL or ACH divider can be used at the gate input.
The described circuit operates by applying an input signal to a gate, which subsequently drives a counter for a defined period. The timing of the signal is crucial for the operation of the system. Once the counting period elapses, the input signal is halted temporarily, allowing the counter's output to be captured and stored in buffer memory. This stored data is then displayed, providing a visual representation of the count achieved during the active signal period.
The timing base, composed of two integrated circuits, generates the necessary signals (COUNT, LE, RESET) to control the operation of the counter. The initial design has a cycle time of 2 seconds, which may be too long for certain applications. Adjustments to the timing parameters Tle and Treset can effectively reduce the overall cycle time, although this might necessitate the addition of more ICs or a transition to a microcontroller-based solution for enhanced flexibility and control.
The PIC16F84A microcontroller is chosen for its programming simplicity and efficiency in power consumption. The code written for this microcontroller initializes the necessary ports and sets the timing intervals for the counting process. The program includes specific wait times, allowing for accurate timing of the signal transitions. The use of specialized ICs like the MMC22926 enables the system to handle frequencies up to 6 MHz, ensuring that the counter can operate effectively within this range.
For applications requiring higher frequency processing, the introduction of an ECL or ACH divider at the input stage of the gate can facilitate the handling of faster signals, thus expanding the operational capabilities of the circuit. This design provides a robust framework for signal counting applications, combining the reliability of integrated circuits with the flexibility of microcontroller programming.The input signal it is applied to a gate G and then to a counter, for a precisely period of time After this period of time, the input signal it is stopped for a while and then the cycle it is repeated. In the time of break the content of counter it is transferred in buffer memory and then it is displayed.
After the load of buffer memory, the con tains of counter is reset of reason to can begin a new count cycle. The successions of this signals are conform the follows diagram : The signals COUNT, LE, RESET are generated from the base of time. A very simple base of time which contains 2 ICs can be build using the folow schematic: Unfortunately this schematics have a long time of cycle Tc = 2s.
In order to make this time shorter we can modified only the times Tle and Treset. But that means to use more CIs or another solution is to use a microcontroller with the necessary software. I have used a PIC microcontroller type PIC16F84A because it is easy to programm and the power consumption is low.
The program is written for the PIC16F84A but cheaper PICs (as PIC16C61) can be used. ;= Base of time =18/06/00= ; rb0 1s ; rb1, rb2. 75ms ; internal clock ; standard crystal 4 MHz XT ; ;- ; configure programmer list p=16f84A;f=inhx8m _CP_OFF equ H`3FFF` ;code protect off _PWRTE_ON equ H`3FFF` ;Power on timer on _WDT_OFF equ H`3FFB` ;watch dog timer off _XT_OSC equ H`3FFD` ;crystal oscillator _CONFIG _CP_OFF & _PWRTE_ON & _WDT_OFF & _XT_OSC ;- ; cpu init portb equ 06 count1 equ 0C count2 equ 0D count3 equ 0E ;- ; bit init w equ 0 f equ 1 ;- org 0 ; ;- init movlw 0 tris portb ; set portb as output movwf portb start bsf portb, 0 ;rb0=1 call pause ;wait 1s bcf portb, 0 ;rb0=0 bsf portb, 1 ;rb1=1 call pauza ;wait. 75 ms bcf portb, 1 ;rb1=0 bsf portb, 2 ;rb2=1 call pauza ;wait. 75 ms bcf portb, 2 ;rb2=0 goto start pause movlw. 8 ; load count3 with decimal 8 movwf count3 d3 movlw. 250 ; load count1 with decimal 250 movwf count1 d1 movlw. 165 ; load count2 with decimal 165 movwf count2 nop ; compensation 1us d2 decfsz count2, f ; decrement and skip next line if zero goto d2 ; if not zero decfsz count1 ; decrement count1 if count2 is zero goto d1 ; do inside loop again if count1 nz decfsz count3 ; decrement count3 if count1 is zero goto d3 ; do inside loop again if count3 nz retlw 00 pauza movlw.
250 movwf count1 lop1 decfsz count1, f goto lop1 retlw 00 ;- end ;= Download project from here. For the counter I have used two specialized IC`s type MMC22926, that works up to 6 Mhz, the National Semiconductor alternative to MMC22926 is 74C926. If a higher frequency is need to be processed, a ECL or ACH divider can be used at gate input. 🔗 External reference
Q1 is a PNP power transistor used in conjunction with a ferrite transformer to form a blocking-type oscillator. This oscillator operates at a fixed frequency, with feedback for sustaining oscillations provided by capacitor C1. Due to the turns ratio...
This circuit is a wideband signal strength meter designed to respond to small variations in RF energy within the VHF spectrum. It is capable of detecting AM or FM modulation as well as a simple carrier wave. The circuit...
Convert a feedforward operational amplifier PID loop to C code. Assistance is needed for this conversion, as the process is unfamiliar. Input values can be obtained through an ADC, such as voltage or current, but coding a feedforward PID...
220V AC voltage is transformed by transformer T to 19V. After passing through a full-wave bridge rectifier and filter capacitor C, the voltage is regulated to DC using a 7812 voltage regulator. When the battery indicator light is illuminated,...
This simple FM radio receiver circuit utilizes the TDA7000 integrated circuit (IC), which incorporates nearly all the necessary functions to construct an FM receiver, requiring only a few external capacitors and a tuning circuit. The design employs a straightforward...
A 500A-6V single-phase power supply circuit designed for thyristor electroplating. This circuit can output a continuous DC current of 500A at 6V, which is adjustable for plating processes. It incorporates a single-junction transistor as part of the trigger circuit,...
Warning: include(partials/cookie-banner.php): Failed to open stream: Permission denied in /var/www/html/nextgr/view-circuit.php on line 713
Warning: include(): Failed opening 'partials/cookie-banner.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/nextgr/view-circuit.php on line 713