Description: The choice of material to read or drive is the definition of three digits (Bit), RA0, 1,2 PORTA of the PIC at the entrance of 74HC138A. To select a material for reading or driving an output of 78HC138 is '0 '(Low), forcing the transistor (2SA1015) to conduct and thus is the material with the feet of PORTB. This function ensures that there will never be found simultaneously connected to PORTB two materials, since the remaining transistors are off. Switches BCD (inputs), the start button (input) and LED Display (outputs) are controlled solely by the pins RB0 - RB7 of PORTB. Depending on what material is selected and modified the state of PORTB (If it is input or output).
More:
Prevention of short circuit through the breakers PORTB BCD
Because through the contacts of BCD switches may be shorted pins of PORTB when it acts as output (driving), have been placed in preventive circuit pathways to prevent flow of current.
Pull up Operation
Since the BCD switches on this circuit give reasonable '0 'in closed contacts, to identify the microprocessor has the entrance to each leg to be used consistently logical '1'. Internal Pull-up operation is applied only when the situation in the PORTB pins made from output, input, and if you specify zero '0 'in place of the registrar RPBI OPTION. If the PORTB output serves as the pull-up function does not.
At the stop button of the timer is connected to PORTA added external resistor Pull-up, because this function is only supported on the feet of PORTB.
Relay Output
At the foot of RA3 PORTA is connected to a relay coil, a switched contact, where you can drive any secondary low power device. Each leg of the PIC can provide power in the range of 25-mA. If the relay used in the circuit for the power consumed by the coil is 23-mA, which is very close to the limit. Therefore to avoid possible destruction of the PIC to drive the relay is not directly but through a transistor can provide current in the range of 150-mA.
Timing Circuit
For the timing of the processor used a ceramic filter (Resonator) or 10MHz crystal and two 22pF ceramic capacitors
Feeder circuit
The IC3 stabilize the voltage from 12VDC to 5VDC and capacitors to smooth and filter. Since the consumption of the circuit is too low a stabilizer of about 100mA is enough. The LED Display and looks like it is constantly lit, actually lit one at a time so that the power consumed is relatively small. For the relay mentioned above, so the table below you can see the consumption of the circuit LED Display 7 segments: 50mA A switched relay contact: 25mA Balance circuit: 10mA
The described circuit is a microcontroller-based system utilizing a PIC microcontroller interfaced with a 74HC138A demultiplexer to manage multiple input and output devices. The configuration uses three bits from PORTA (RA0, RA1, RA2) to select which of the multiple outputs is active, ensuring that only one output is activated at any time to avoid conflicts. The outputs are connected to PORTB, which is managed through a combination of input and output states, controlled by the microcontroller's firmware.
To prevent short circuits when the BCD switches are used as inputs, the circuit incorporates protective pathways that mitigate the risk of current flow through the pins of PORTB. This design consideration is crucial for maintaining the integrity of the microcontroller and the overall system.
The BCD switches are designed to provide a logical '0' when closed. To ensure reliable operation, internal pull-up resistors are utilized, allowing the microcontroller to read a logical '1' when the switches are open. This functionality is contingent on the configuration of the RPBI register, which defines the operational mode of the PORTB pins.
A stop button is connected to PORTA, with an external pull-up resistor added to enhance the reliability of the input signal. This is particularly important as the pull-up function is limited to PORTB pins in this design.
A relay is connected to RA3 of PORTA, allowing control of secondary low-power devices. Since the output current from each PIC pin is limited to 25 mA, a transistor (2SA1015) is employed to drive the relay, which requires 23 mA for its coil. This method ensures that the microcontroller operates within safe limits, as the transistor can handle higher current levels (up to 150 mA).
The timing circuit employs a ceramic resonator or a 10 MHz crystal oscillator, with two 22 pF ceramic capacitors to stabilize the clock signal for the microcontroller, ensuring accurate timing operations.
The power supply circuit includes an IC3 voltage regulator that steps down the voltage from 12 VDC to 5 VDC, with additional capacitors for filtering and smoothing the output. The low overall power consumption of the circuit allows for a 100 mA regulator to be sufficient. The LED display utilizes a multiplexing technique, where only one segment is lit at any given time, reducing overall power consumption. The current draw for various components is specified, indicating 50 mA for the seven-segment LED display, 25 mA for the relay, and 10 mA for the balance circuit, ensuring efficient operation of the entire system.The choice of material to read or drive is the definition of three digits (Bit), RA0, 1,2 PORTA of the PIC at the entrance of 74HC138A. To select a material for reading or driving an output of 78HC138 is '0 '(Low), forcing the transistor (2SA1015) to conduct and thus is the material with the feet of PORTB.
This function ensures that there will never be found simultaneously connected to PORTB two materials, since the remaining transistors are off. Switches BCD (inputs), the start button (input) and LED Display (outputs) are controlled solely by the pins RB0 - RB7 of PORTB.
Depending on what material is selected and modified the state of PORTB (If it is input or output).
Prevention of short circuit through the breakers PORTB BCD
Because through the contacts of BCD switches may be shorted pins of PORTB when it acts as output (driving), have been placed in preventive circuit pathways to prevent flow of current. Pull up Operation
Since the BCD switches on this circuit give reasonable '0 'in closed contacts, to identify the microprocessor has the entrance to each leg to be used consistently logical '1'.
Internal Pull-up operation is applied only when the situation in the PORTB pins made from output, input, and if you specify zero '0 'in place of the registrar RPBI OPTION. If the PORTB output serves as the pull-up function does not. At the stop button of the timer is connected to PORTA added external resistor Pull-up, because this function is only supported on the feet of PORTB.
Relay Output
At the foot of RA3 PORTA is connected to a relay coil, a switched contact, where you can drive any secondary low power device. Each leg of the PIC can provide power in the range of 25-mA. If the relay used in the circuit for the power consumed by the coil is 23-mA, which is very close to the limit.
Therefore to avoid possible destruction of the PIC to drive the relay is not directly but through a transistor can provide current in the range of 150-mA. Timing Circuit
For the timing of the processor used a ceramic filter (Resonator) or 10MHz crystal and two 22pF ceramic capacitors
Feeder circuit
The IC3 stabilize the voltage from 12VDC to 5VDC and capacitors to smooth and filter.
Since the consumption of the circuit is too low a stabilizer of about 100mA is enough. The LED Display and looks like it is constantly lit, actually lit one at a time so that the power consumed is relatively small. For the relay mentioned above, so the table below you can see the consumption of the circuit
LED Display 7 segments: 50mA
A switched relay contact: 25mA
Balance circuit: 10mA
Most car door switches are single-pole switches, with one side grounded. When the door is opened, the switch grounds the other line, completing the light circuit. In vehicles where the negative terminal of the battery is connected to the chassis,...
This circuit utilizes three transistors (2SC945, 2C1815, or 2SC828) as the primary components, functioning as a typical low-noise transistor amplifier. It offers a gain of approximately 200 to 300 times and has a frequency response ranging from 50Hz to 100KHz....
This amplifier employs a 2N6367 transistor as a driver along with a pair of 2N6368 transistors. The 2N6367 is rated for a maximum output of 9 W (PEP) and is required to deliver 5 W (PEP) at 30 MHz, achieving...
This is a new design of a tutorial board based on the popular PIC16F84A microcontroller. It features eight single LEDs, a 7-segment display, an LCD display, and five push buttons. It is an ideal solution for beginners to take their...
A small bias on the bases of Q1 and Q2 through R1 and R2 assists in initiating the circuit. This provides each transistor's base with a slight forward bias, enabling both transistors to conduct when the circuit is initially powered...
This device functions as a simple timer that keeps the vehicle's headlights on for approximately 1 minute and 30 seconds, allowing access to dark areas without the need to return and switch off the lights. Pressing switch P1 enables capacitor...
Bipolar junction transistors transfer a current from a lower-resistance emitter to a higher-resistance collector. This property can be utilized to measure inductance.
Bipolar junction transistors (BJTs) are semiconductor devices that play a crucial role in electronic circuits by enabling the control...
Electronic horn circuit diagram. When the power line is switched on, a basic tone is produced by transistor T2 and transformer X1, which is frequency-modulated by a wandering voltage generator affected by a low-frequency square wave generator. This is a...
The circuit illustrated in Figure 3-81 employs a transistor delay circuit to facilitate start-stop cycle control. It can operate in both manual and automatic modes. The circuit is primarily governed by the motor run time circuit, which includes transistors VTi...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more