Questions tagged [circuit]

In a programming context, a circuit usually refers to a combination of logical operators to achieve a desired response. Use this tag to ask about basic logical implementations and loops you can't get your head around.

In a programming context, a circuit usually refers to a combination of logical operators to achieve a desired response. This could be implemented in hardware (see: electronic/electrical engineering) but in software the key issue is the logic.

Use this tag to ask about basic logical implementations and loops you can't get your head around.

Logical operators include AND, OR, NOT, NAND and NOR gates, and judicious combinations of these can be used to construct just about any possible structures.

303 questions
1
vote
0 answers

Boolean theorems: Specific cases and inverter placement questions (3)

If `D'=Z', then does D=Z? Does (A+B)' = A' + B? If an inverter is placed before the AND/OR then does it still act as a NOT/NAND?
1
vote
1 answer

send command to pic18f2550 relay circuti via bash

i have a usb relay circuit that uses pic18f2550, which's vendor id : 0461 and product id: 0020 i tried to communicate this device via python via pyusb, i could connect the device but could not send any command, always get busy error. How can i send…
Mae Ares
  • 11
  • 2
1
vote
2 answers

FreeRTOS built on windows xp to run on a Atmega32

I downloaded FreeRTOS and I want to put it on a microcontroller (ATMega32) on a PCB (I'll do it on a breadboard 1st) like this. How can I achieve this? Thanks
Coder404
  • 742
  • 2
  • 7
  • 21
1
vote
2 answers

Custom PCB Blink light in c

Is there a way/tutorial to take a PCB (Printed Circuit Board) and make an LED Blink? Im basically asking: Is there a DIY tutorial for making a mini os for a PCB (not Arduino like). I want to put an LED on this PCB and I want to write in C/C++ a…
Coder404
  • 742
  • 2
  • 7
  • 21
1
vote
1 answer

4 bit binary number multiplier by 3 (mod 16)

I have a question in a past paper which asks to design as a minimised sum of products, and using only NAND gates, a circuit which takes 4 bit binary input and multiplies that number by 3 (mod 16) Here is the truth table I have derived Inputs …
sam
  • 2,469
  • 8
  • 37
  • 57
0
votes
1 answer

How to mininize expression using boolean algebra?

Here is expression that we have to minimize with boolean algebra: y = /A/B/C/D + /A/B/CD + /AB/CD + A/B/C/D + A/B/CD + A/BC/D + A/BCD. I know little bit about that, please help!!! The answer is /A/CD + /B/C + A/B
user1090944
  • 445
  • 1
  • 8
  • 16
0
votes
1 answer

negative numbers floating point subtraction circuit

probably wrong place to ask but I will try. I have to design a circuit that would add/subtract floating point I tried to do it using signed magnitude numbers in IEE 754 standard. They are quite large so I decided to start with something smaller…
user682217
  • 283
  • 2
  • 15
0
votes
0 answers

How to construct XOR of A and B

I am having trouble turning this truth table into a logic…
geek_n
  • 1
0
votes
0 answers

Design A Circuit That Can Detect 4 Consecutive 1'S. Draw State Diagram & State Table

Using the design procedure for sequential circuits, we have to design a circuit that can detect 4 consecutive 1s or more, there was a similar question but with 3 consecutive 1s or more, in that question, we had to make a state table and diagram with…
Qartzai
  • 27
  • 2
0
votes
0 answers

Raspberry Pi Pico not executing main.py upon 5V

I have a Raspberry Pi Pico W with code on it that lights up the onboard LED once it has successfully connected to WiFi, otherwise the onboard LED will blink. Most times upon start up however, (I have a 9V battery connected to a 5V breadboard power…
0
votes
1 answer

Choosing the appropriate diode for TLV1117 regulator

Can I use 1N4148 or 1N4150 diode for D2 to connect it before the TLV1117 regulator?
nyal
  • 13
  • 2
0
votes
1 answer

Circuits , Hazards/Karnaugh diagram || Can a Karnaugh-Vetch diagram consisting of 2 variables x and y even contain a hazard?

i dont understand completely but to me it seems like there cant be a problematic/hazardous path. So its about hazards that can occur in a half-adder circuit with Inverters XORs and Ands. Cant get to create the structural term and diagram. Would…
0
votes
2 answers

How to create a circuit that outputs only 1, regardless of inputs

So this is the truth table: In_1 In_2 In_3 Out 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1 How do I create a circuit that…
randomUser786
  • 1,527
  • 3
  • 13
  • 25
0
votes
1 answer

Short-Circuit property C

According to the short-circuit property in C:0&&(anything) gives 0 and 1||(anything) gives 1. so according to the property-0&&5||6&&7||4&&!6,this should give us 0. But when I tried to run this in a C compiler this gave 1 as the answer. [Update:…
0
votes
1 answer

Get the result of sim in matlab code with input parameter returns not found

I have this circuit in Matlab simulation As you can see I have R7 variable in my picture . I want to run this simulink using Matlab script as you can see here : simOut = sim('ehsaaan.slx','R7','1e-100') As you can see I pass R7 to my circuit. But…
Ehsan Akbar
  • 6,977
  • 19
  • 96
  • 180