Questions tagged [digital-logic]
Digital electronics treats discrete signals, unlike analog electronics which treats continuous signals. Digital logic is used to perform arithmetic operations with electric signals and constitutes the base for building CPUs.
5,004 questions
-4
votes
0
answers
80
views
Simplify circuit for a uni assignment [closed]
I am three weeks into my first semester at uni and have been given a truth table, and asked to prepare a circuit with the minimum number of gates. This is my attempt at a circuit, I need to reduce the ...
0
votes
2
answers
89
views
Signal on/off from MC is analog or digital signal?
Maybe it's very dumb question. But I'm just curious. For example I have On/Off switcher for some LED for indicate that you can start using some device. So this LED turning On from MC and signal rising ...
3
votes
1
answer
100
views
Moore state diagram
According to the table, is my Moore state diagram correct?
3
votes
1
answer
192
views
Control voltages for for driving a CD4067B multiplexer
What control (address, enable) voltages do i need if i want to drive a CD4067B that is powered with +/-12V? The datasheet is confusing. Is it 0V to VDD or is it VSS to around 0V?
The part only accepts ...
0
votes
2
answers
131
views
How to make a negative edge triggered design?
I saw this gate implementation of a circuit using a NOT gate as one of the inputs for an AND gate. This meant that when the input goes from high to low, the AND gate output goes high for a fraction of ...
1
vote
4
answers
192
views
How to modify a 4-bit D-Flip-Flop counter to count only 0–9? (Synchronic)?
I’m a computer science student currently building a 4-bit D-Flip-Flop counter.
With the basic structure, the counter normally counts from 0 to 15 (a full 4-bit cycle).
However, for my lab tomorrow I ...
5
votes
2
answers
353
views
High Speed Interfaces - Termination resistors vs Characteristics Impedance
I’m trying to understand the reasoning behind termination requirements in different differential signaling interfaces.
For example, USB uses differential signaling (D+ and D–), but the standard does ...
2
votes
0
answers
52
views
Elmore delay equivalent for delay calculation [closed]
I am trying to understand the concept of Elmore delay calculating delay factor of the CMOS circuitries using RC approximation.
According to CMOS VLSI Design : A Circuits and Systems Perspective ...
9
votes
4
answers
2k
views
In a seven segment display, why does my "6" looks like a small letter "b"
I have made this circuit on Proteus, a simple BCD to 7-segment display:
But the segments for 6 and 9 are not completely lit. What could be the potential reasons? The decoder IC is CD4511 and a common ...
-3
votes
0
answers
29
views
Parallel Bus interface on SOM module [duplicate]
I have this SOM module. I initially planned to boot the SOM module from a NAND Flash IC that uses a parallel interface (requiring address, clock, enable, and data signals). According to the datasheet, ...
1
vote
2
answers
84
views
Invert output from PCF8574 using a SN74HC05N to drive a 2N7000
Circuit design using PCF8574, SN74HC05 and 2N7000
I (a hobbyist) would be glad if you can help me with following:
I want to switch multiple external relays. In lack of ports, I decided to use the ...
0
votes
1
answer
92
views
Propagation delay in a ripple carry adder depends on the bit pattern
Please help me understand how propagation delay changes depending upon the input bit pattern in a ripple-carry adder.
Take 2 cases:
100+011. here no carry generated or propagated
001+111. here carry ...
3
votes
1
answer
82
views
Confused Between PTL and CMOS Implementation in OR(A,B,C) Logic
I’m a test checker for an Introduction to Digital Electronics course, and I’m currently reviewing student tests.
The students were asked to implement the logic function OR(A, B, C) using PTL (Pass ...
2
votes
3
answers
463
views
Design a system that receives X and X+2 as inputs and outputs X+1, without using adders or subtractors
I was asked to design a digital system that receives two inputs: X and X+2, and must output X+1, without using any adders or subtractors. (We weren't told what is the number of bits for X and X+2)
I ...
3
votes
3
answers
326
views
3 or 4-digit BCD to binary converter [duplicate]
While working on Digital logic, I encountered the problem of using a BCD switch to enter a binary number. For example, using a BCD switch, I can enter the number 117, which would be inserted into the ...
2
votes
3
answers
309
views
Can I provide ADC's DVDD to power other digital components in the pcb
I am using AD5941 in my design. AD5941 AVDD and DVDD are powered separately using two regulators . Same LDO P/N is used.One for powering AVDD and the other for Powering DVDD.
In my board, I have ...
0
votes
1
answer
69
views
Why are pull-up resistors provided on the UART lines of the AM62L EVM?
I was reviewing the AM62L EVM (Evaluation Module) schematic and noticed that the UART lines (TX, RX) have external pull-up resistors to 3.3 V.
However, when I checked the AM62L datasheet and technical ...
4
votes
2
answers
180
views
NMOS and PMOS in a series with VDD as voltage source, what will be the voltage between them?
I have an argument with a friend regarding the voltage between N and P and the voltage at OUT.
I say that for A = '1' and B = '0':
If Kn > Kp, so the voltage between the NMOS and PMOS is Vdd-Vtn ...
6
votes
3
answers
1k
views
12 Volt Logic Gates
Are there any such components as a 12 volt NOR gate or similar?
2
votes
3
answers
165
views
How to bypass auto off on digital scale PCB?
I have a digital scale with built in auto off timeout function pictured, is there a way to hack modify this PCB to bypass the auto off function after timeout? So when batteries are inserted it will ...
1
vote
1
answer
70
views
Controlling a motor driver with a single push button
I would like to have a circuit that could control an existing DC motor driver (without any datasheet) from a single push button. A long press would activate the driver, and short presses would switch ...
0
votes
5
answers
306
views
How to do 24V to 3.3V logic level shifting? [closed]
I'm getting into electrical circuits. I have a RGB LED strip with a 24 V common. I want to input the RGB signals into a microcontroller that has a 3.3V logic. What I have found online is to either use ...
3
votes
2
answers
134
views
JK flip flop behavior on startup in Verilog
I've tried to implement a JK flip flop in Verilog, but while testing, I found that whatever inputs of j and k I give on startup, until I reset the flip flop (j=0, k=1), the outputs will not be seen ...
1
vote
3
answers
160
views
Is it possible to simplify 555 delay circuit?
Is it possible to simplify the circuit by removing the logical NOTs while maintaining the identical output response to the input signal?
1
vote
2
answers
164
views
How to design a circuit to level-shift a 3.3V MCU output to selectable push-pull or open-drain outputs (3.3V / 5V / 12V / 24V)?
I need to design a circuit that can take a digital output from an MCU (3.3V) and amplify it to a selectable output voltage. The output voltage should be configurable between 3.3V, 5V, 12V, and 24V.
...
0
votes
2
answers
113
views
How to drive the base of a PNP with a thyristor?
There are some reference and logic circuits before the opamp. When the opamp output = HIGH, it triggers the thyristor. I used a thyristor because I want it to not only latch but stays constantly ...
5
votes
8
answers
1k
views
How to design a circuit that outputs the binary position of the 3rd set bit from the right in an 8-bit input?
I was asked to design a digital system that receives an 8-bit binary input and outputs the binary position of the third '1' bit from the right (LSB side).
The output should be a 3-bit binary number ...
4
votes
6
answers
1k
views
Is this a good way to switch frequencies?
This is part of a bigger circuit where I have two frequencies coming from U1 and U2.
Sometimes I want U1 to go to U3 and sometimes U2 to go to U3. I have used a transistor pair to hopefully enable ...
1
vote
1
answer
81
views
Why is the waveform not matching? (2 clock delay in FSM code)
Context : I have been tasked with testing a HC-04 Ultrasonic sensor with Verilog, and below is the Verilog code, the testbench and the waveform that I am getting,
...
0
votes
2
answers
86
views
Understanding Tready Timing with EEPROM Connected to PHY (Max Tready 120ms)
I’m working with a PHY device as described in the datasheet (p. 158) of this PHY, and I’m trying to understand the Tready timing with an EEPROM connected to the device.
According to the datasheet, the ...
1
vote
3
answers
145
views
Controlling 5V logic using a 12V control signal
I am not so experienced in designing circuits. I have a circuit I need to reorient the logic in:
I need to connect a timer's timeout output signal so that it switches the input of an Integrated ...
1
vote
3
answers
118
views
Can I use the output of a push-pull inverter as a digital input on a STM uC, or does it have to be a open-drain inverter with pull-up resistor?
I want to implement some buttons in my controll scheme to controll the operatings of the system controlled by a NUCLEO-H723ZG uC.
For the switches i will be using ones actually rated for 230 V AC, ...
5
votes
1
answer
253
views
Digital output (open collector)
I have a controller with a digital output configured as open collector. The wiring diagram in the manual is shown in the image below. The manual indicates that the diagram is internal (if I'm ...
-1
votes
1
answer
118
views
FSM to latch first of three pulses and hold winner until reset - interview question [closed]
Interview Question:
I have a small “race” problem to implement as an FSM using D flip-flops only. There are three lanes. At the end of each lane there is a pushbutton circuit that outputs a clean one-...
2
votes
2
answers
564
views
Design of 16:4 priority encoder from 4:2 priority encoder
I was asked to build a 16:4 priority encoder using 4:2 encoders.
I’ve seen the solution with four first-stage P.E.s feeding a fifth P.E., plus two muxes. My problem is the intuition:
When I connect ...
0
votes
2
answers
184
views
How to derive an FSM from this timing diagram (clk, in, out)?
I have a timing diagram with clk, input, and output signals (see image above).
I was able to sketch a circuit implementation using flip-flops and logic gates,
but I am struggling to describe it as a ...
2
votes
2
answers
386
views
How does this (active low triggered) circuit work?
I suspect this question will be trivial for many of you, but I haven't been able to find any answer online that satisfies my curiosity.
I have an ACTIVE LOW relay module that connects to a GPIO [...
1
vote
1
answer
117
views
Can I do multi bit CDC using synchronizers without handshake or FIFO?
I know that asynchronous FIFO and handshake can do CDC, but the FIFO consume more resource, and handshake is a little complicated.
If I have a multi bit signal "src", and it vary slowly, I ...
2
votes
1
answer
241
views
Using a PMOS as a level shifter from 12V to 5V
I am currently using an Arduino board and I need to connect an external 12V digital signal source to it.
I have done it using an N-MOS. The external switch can provide 12 V to the gate pin. I am using ...
-1
votes
1
answer
126
views
Latch based clock mux
I have been studying the clock muxed from this source:
https://vlsitutorials.com/glitch-free-clock-mux/
In this and many other websites, the clock mux is a flip-flop-based circuit. From what I ...
0
votes
1
answer
90
views
Redirecting flow of electrons to another branch
I am self taught programmer, so never really grasp the fundamentals and deeper understanding for computer. So for last few weeks i been learning about digital processing and how everything works ...
0
votes
1
answer
128
views
Interfacing resistive matrix of 40*40 sensor with MCU throughout exciting the rows and reading out the columns
I am designing the hardware necessarily for interfacing resistive matrix of 40×40 sensor with MCU.
I maintained 3 of 1×16 DEMUX (via selection pins, input routes to one channel out of 16 channels at ...
1
vote
1
answer
296
views
Controlling 7-Segment Display
I am redesigning the control panel for a project I have been working on. I am using a rotary encoder to replace a set of 3 rotary dials, but I cannot use any microcontrollers or programming.
I plan on ...
1
vote
1
answer
111
views
Different outputs for RTL and gate level netlist simulations for a latch used in clock gating
I am trying to implement clock gating logic manually using a latch and an AND gate as shown in the figure.
The latch has an enable (en) and a done signal which are ...
0
votes
0
answers
82
views
Voltage amplifier circuit
Before we start, I am a complete newbie and I am not an electrical engineer at all.
I have to synchronize two cameras. One is a Realsense D435 and the other one is an EVK1 HD. The D435 outputs a ...
4
votes
4
answers
913
views
Effect of strong static magnetic field on logic integrated circuit
What's the effect of a strong* static magnetic field on a modern CMOS logic integrated circuit, like a CPU ?
Can it significantly reduce noise margin or increase power consumption, ultimately causing ...
-1
votes
1
answer
100
views
Bidirectional synchronous modulo‑16 counter using two modulo‑8 counters – confused about direction control
I want to design a bidirectional synchronous mod‑16 counter using two mod‑8 counters, with synchronous reset and direction control.
I began with a straightforward bidirectional mod‑16 counter and its ...
1
vote
2
answers
175
views
Cascading 16‑to‑1 MUXes to build a 64‑to‑1 in Logisim: what to do with the 12 unused inputs and how to interpret the S[7:4]/S[5:4] notation?
I’m working in Logisim‑evolution 2.7.1 and I have to implement a 64‑to‑1 multiplexer using ONLY the built‑in 16‑to‑1 MUX components (I imposed this restriction).
The standard two‑level tree seems ...
0
votes
0
answers
78
views
Designing an FSR 40*40 Matrix that resolves ghosting and other medical problems
I'm not that good at electronics, coming from software background but I studied EE.
I'm trying to replicate and use the same sensor matrix as shown in the product here
T-Scan Training Software 9.0 | ...
1
vote
2
answers
128
views
Why does the 2‑wire asynchronous handshake use this exact edge sequence?
1. Control Models
Master / Slave
The master controls the communication line (decides when to transmit or receive).
The slave transmits or receives under the master’s command.
Peer‑to‑Peer (symmetric)
...