Questions tagged [binary]

Related to binary arithmetic and number system - Base-2 system which represents numeric values using two symbols 0(zero) and 1(one). Use `boolean` tag for logical operations related questions that does not involve binary arithmetic.

Filter by
Sorted by
Tagged with
1 vote
1 answer
68 views

First time schematic for USB-C power detection

Hey all I am creating a PCB that allows me to detect when I plug in a tablet, laptop, etc. to my home made tablet organizer. It's difficult to see if it made a connection in the back since you place ...
StealthRT's user avatar
  • 697
0 votes
0 answers
26 views

Problem sending MIDI message using Proteus Simulation Software

Im trying to send a MIDI message using Proteus Simulation Software. The idea is to send a NOTE ON, channel 1, C4 music note with velocity of 127. This three bytes are the following. (Note ON/channel 1 ...
Zlmanuel87's user avatar
0 votes
1 answer
69 views

Binary to BCD conversion besides double dabble

I'm looking for a logic circuit to convert 16-bit binary to 5-digit BCD, but one that is smaller / uses less gates than double dabble. Are there any other binary-to-BCD conversion circuits besides ...
Jason C's user avatar
  • 578
0 votes
0 answers
30 views

24VAC Binary Encoder / Decoder for Sprinkler System

I have a typical sprinkler system that runs on 24VAC. My sprinkler controller is in my garage and my sprinkler valves are across the yard with a cable running underground with 5 wires. One wire is the ...
Chet's user avatar
  • 111
1 vote
2 answers
50 views

Problem with the smallest negative number using Signed-2's-Complement

I have a problem figuring out why the smallest negative number we can represent in 3 bits, using Signed-2's-Complement is -4. I understand that in S2C format, we can create numbers from 2x-1-1 (...
Ali A's user avatar
  • 11
0 votes
0 answers
77 views

Can a CD40110 start counting from 1?

I have a small assignment to made a century clock (which includes year, month, day, hour, minute, and second) without using a microcontroller. I decided to use a CD40110 to drive a common-cathode 7-...
Jay's user avatar
  • 1
1 vote
1 answer
96 views

Demonstration of Unsigned to Signed Binary Multiplication

I am trying to deepen my knowledge about multiplication with signed binary numbers (in two's complement) and as I was following along a video about the multiplication of 4-bit signed binary numbers, I ...
Filipe Almeida's user avatar
0 votes
1 answer
93 views

Does electricity linger in small electronics?

I'm designing a very tiny 8 bit CPU as a concept first in CircuitVerse. I designed components to eventually design this 4 bit 0-15 binary counter. Only thing I found weird is when the ALU is enabled, ...
Rayyan Khan's user avatar
2 votes
1 answer
70 views

Are there different versions of 4060 counter IC available?

I was searching for datasheet of 4060 IC (my part number is HEF4060BT, made by NXP) and found different versions with different stages. Is this just a vast typo in labeling pins in datasheets or some ...
Bikay's user avatar
  • 35
6 votes
7 answers
3k views

Why is a register initialised through bitwise operations instead of a binary string?

I'm learning microcontrollers, and have picked AVRs to start with. In many AVR tutorials I find the registers are initialised by performing some bitwise operations on the assignment, for example ...
Somanna's user avatar
  • 317
4 votes
2 answers
442 views

Transmitting binary data from scratch via radio (wireless)

What is the basic concept of transmit binary data wirelessly or from radio? Here are so far my knowledge about it. Any digital data (image, sound, video) is represented by binary digit (bit). Binary ...
Muhammad Ikhwan Perwira's user avatar
0 votes
1 answer
145 views

5-digit binary code lock

I am trying to design a two-button, 5-digit binary code entry lock. For simplicity, I have designed below a 4-digit lock, without a reset. I wanted the LED to turn off once the pin "1101" ...
Johnny depp's user avatar
0 votes
1 answer
76 views

Digital signals - multiplication of Bits ( number of bits ) - How to do it? ( binary bits ) [closed]

Let us say I have a number with p bits: x = [___...___] >> p Bits. and I want to multiply it by another p bits. will I receive: ...
Ben Shaines's user avatar
1 vote
1 answer
1k views

How can I use CDC_TRANSMIT_FS() correctly?

I am trying to develop a sensor driver on the STM32F401CCU6. I have already worked out the sensor data acquisition on the STM. The problem I am facing is getting that over USB to my host system. ...
Harit's user avatar
  • 73
1 vote
2 answers
171 views

What is the size of the variables declared as macros in C Programming?

I am currently trying to receive and process serial data from an STM32F401CCU6. I am receiving binary data from the STM over USB and I would like to re-assemble the raw data into what was originally ...
Harit's user avatar
  • 73
1 vote
0 answers
125 views

How do I stabilize the pulse widths of the 4029 Binary Counter?

I am working with a CD4029BE on a breadboard. The connections are as follows: VDD to +12VDC VSS to ground The clock input receives a 3Hz 0 to +12V clock pulse J1-J4 are shorted together, and then ...
Thomas Wilk's user avatar
0 votes
0 answers
113 views

Manchester encoding where the initial state is low

Is this correct? I thought in Manchester encoding the 0's had to be high-low transition, even if the initial state is assumed to be low and 1's low-high.
MALLU's user avatar
  • 29
0 votes
0 answers
147 views

Delay of ripple carry adder

I denote delay timing as "@ value". As you can see the picture above, C_in0(carry in 0), A0(input A's 0th bit), and B0 are initially ready so there is no delay which means they all have @0 ...
Seung Hwan Kim's user avatar
0 votes
2 answers
632 views

How can I combine 4 separate bits into one 4 bit output?

Say I hypothetically have four switches 0-3. I want each switch to represent a bit in a four bit long number, switch 0 being the first bit and switch 3 being the last. The end goal is to be able to ...
Bob Jones's user avatar
1 vote
1 answer
145 views

Why is there a cutoff on these accelerometer measurement values? - ADXL375

I'm using a Teensy 3.2 to read data from an ADXL375 using SPI. In general the communication is going just fine and I can activate settings etc. However, when I try to read X, Y or Z data it seems like ...
daniel's user avatar
  • 319
0 votes
1 answer
50 views

I know how to do it with K Maps but how to solve it without using them

Let X=X1X0 and Y=Y1Y0 be unsigned 2-bit numbers. The output function F = 1 if X is equal to or less than Y and F = 0 otherwise. Find the minimized expression for F?
Dr Patrick Bateman MD's user avatar
-1 votes
1 answer
124 views

UTD 2052 oscilloscope: read data from .sav file

I just recently got an oscilloscope and was happy to try it out. Now I have a problem with reading the data. The model I am using is the UTD2052 50 Mhz scope. I can save the data to a USB drive in the ...
SebNik's user avatar
  • 109
0 votes
1 answer
126 views

Boolean function of digital comparator

The boolean equation or function for a binary digital comparator is (A3&~B3)|| (x3&A2&~B2)|| (x3&x2&A1&~B1)|| (x3&x2&x1&A0&~B0). This equation is considered to ...
Ermac's user avatar
  • 21
1 vote
2 answers
298 views

Representation of 2 and 7 in 5211 binary code

In 5211 binary code 2 is represented as 0011 and 7 is represented as 1100. My question is why can't we represent 2 as 0100 and 7 as 1011 in 5211 code?
ecneics's user avatar
  • 113
1 vote
0 answers
41 views

Capturing overflow in twos complement addition

I am trying to implement 8-bit twos complement addition. I am doing this by splitting the 8 bit inputs into 4 bit parts and then implementing 4 bit complement addition. A well known diagram is where ...
a6623's user avatar
  • 111
2 votes
1 answer
78 views

Theory of operation of MM74C922N

I have been studying the datasheet of the MM74C922N , a 4x4 matrix keypad, but I cannot seem to understand how it works under the 'Theory of Operation'. I know it outputs a 4-bit binary code depending ...
BeatriceUK's user avatar
1 vote
3 answers
364 views

Is there a standard way to convert from a fixed point notation to a floating point notation?

Fixed point numbers can be in many different forms depending on the number of bits before and after the decimal expressed as Qm.n. Floating point numbers can be in many forms depending on the number ...
quantum231's user avatar
  • 10.6k
0 votes
0 answers
101 views

Can I have some help compacting this?

I am trying to build a transistor computer, and I want to save as much resources as possible. However, I also want it to be practical, so I am implementing a binary-decimal conversion. In order to ...
Nip Dip's user avatar
  • 271
0 votes
2 answers
2k views

How does the OV(Overflow flag) of the 8051 work and how does it differentiate between signed and unsigned digits?

If a number is 8 bit, the maximum value it can have is 2^8 or (1111 1111). In the OV flag, the last digit or the MSB decides the sign, but how does the overflow flag know if it is the "signed MSB&...
Circuit_Breaker0.7's user avatar
1 vote
0 answers
39 views

Any good resources to practice efficiency of code modulation?

I want some resources to practice code efficiency problems like this: I looked around online and could not find anything. I also looked in two books and only found a section concerning code ...
Super MaxLv4's user avatar
0 votes
1 answer
421 views

JK Flip-Flop 0-9 up/down counter [closed]

I designed a 4-bit JK up/down counter. I want the circuit to be reset to 0 when counting up when it reaches 9, and to be reset to 9 when counting down when it reaches 0. Anyone know how ? I tried a ...
Mohamad Khoder's user avatar
0 votes
2 answers
410 views

Extension vectors in an array in a VHDL code

Given : ...
LenaPark's user avatar
0 votes
1 answer
123 views

Logical Bitwise Operations Problem

I am reading data from an IR sensor array (8 sensors) and converting the ADC result to binary via a set threshold. If n is the current result, for example: (N.B: n-1 is the previous result) ...
Simon Sultana's user avatar
1 vote
0 answers
44 views

How to know whether addition has been done in a parallel binary adder?

I am little new to electronics and getting some high level overview of digital electronics. The question is that how to know whether addition has been performed in a logic circuit. For example I have ...
Mr. Explorer explorer's user avatar
0 votes
3 answers
240 views

Are carry flags set even when we discard the carry in an arithmetic logic unit?

Currently I am learning simple binary math for a microprocessors course and have a trivial question on signed addition in 2's complement notation. My professor mentioned that when we substract two ...
pccasio's user avatar
0 votes
0 answers
1k views

Is it possible to build a binary divider with this design?

So I am working on this ALU, and I have made this 8-bit multiplier based on this design: . Is it possible to adapt this design into a binary divider by using Subtractors instead of Adders, and maybe ...
Jamie Engel's user avatar
1 vote
1 answer
230 views

Convert a Ngspice rawfile to binary format [duplicate]

I have these NgSpice rawfiles that are generated in ASCII format instead of binary format. I would like to know please what command to use to force their generation in binary instead or ASCII format ...
Wallflower's user avatar
1 vote
1 answer
66 views

How to find what circuitry is required for synthesis of following digital VLSI design problem?

My thoughts: Here price of chocolate is increasing in Geometric progression with common ratio 2 and first term 1, so on nth day price of chocolate will be $T_{n}=2^{n-1}$\ irrespective of wheather ...
MR LUN's user avatar
  • 15
-4 votes
2 answers
116 views

Conceptual vs real world signal transmission [closed]

When data or information is sent through any medium, (be it through phone lines, cable, fiber optics or through empty space or some other means), is it volts, current of charges, 0s and 1s, codes, ...
Meta_Alchemy's user avatar
2 votes
5 answers
854 views

Is it possible to set starting count on binary counters like CD4020?

Can I set starting count on binary counters like CD4020, CD4060? Only solution I know is to use reset pin and increase the frequency till you get desired count then resume normal operation. If there ...
the Hutt's user avatar
  • 149
0 votes
1 answer
397 views

CD4060 with external clock pulse

I am trying to make realtime, low power 1hr audio indicator using binary counters. I don't need display so not using decade counters or 7 segment display ICs. So I bought bunch of CD4060 binary ...
the Hutt's user avatar
  • 149
1 vote
1 answer
2k views

Converting hexadecimal digit to two's complement

So I have the number 'E' which is 14 in decimal and 1110 in binary. To get the two's complement I first get the one's complement and add 1, so I get: One's complement: 0001 Two's complement: 0010 So ...
Blooper's user avatar
  • 11
0 votes
0 answers
50 views

Using a binary counter with ic sram

I am using the as6c62256 ic sram, this is the datasheet: datasheet I am trying to write 1000 words of 8 bit, and then read them from the sram is it possible to connect a binary counter to the adress ...
Hamita's user avatar
  • 3
0 votes
1 answer
95 views

How do I set a value within an if statement using logic gates? [closed]

I have a value B that I want to set if a variable A = 1. I know how to create the if statement by applying an AND gate on a 1 constant and A, but how do I set B within that if statement using logic ...
Adam Lee's user avatar
  • 113
0 votes
2 answers
191 views

How do I create a 1-bit full adder that outputs a 2-bit sum?

I am trying to build a 1-bit full adder that outputs a 2-bit sum. I know that the standard 1-bit FA outputs a 1-bit sum and a carry bit, but I was wondering how can I modify the FA such that the carry ...
Adam Lee's user avatar
  • 113
0 votes
1 answer
280 views

Assigning binary value to decimal value using counter [closed]

I don't know muach about verilog, but i started to study it lately. So if these codes doesn't make sense at all, forgive me :D I am writing a verilog code for Sinus lookup table. for instance, ...
Abdulkadir Arslan's user avatar
0 votes
3 answers
710 views

How does a repeater convert light from a fibre-optic cable into binary?

I'm just starting out in Computer Science and currently learning about transmission of data in fibre-optic cables. I understand fibre-optic attenuation and that a repeater will then take this light ...
BuiltByDan's user avatar
0 votes
0 answers
212 views

Why is it easier to implement bytes as 8 bits rather than 9 bits? [duplicate]

From book to book I always find the same sentence. For example: 8 bits is an even power of 2, which makes it somewhat easier to design computer hardware with 8-bit bytes than with 9-bit bytes. ...
No Name QA's user avatar
1 vote
0 answers
196 views

Verilog project - Binary to BCD - 0-49 2 digit display

I have an end of the year project where I must create an 4 operation ALU that outputs its result onto 7 segment displays in Verilog. 2 of those operations are multiplication and addition. Considering ...
Tyler Lafleche's user avatar
0 votes
5 answers
871 views

32 bit to 7 segment display (FPGA)

After some research, I think I have quite a problem on my hands. I have a project on an FPGA where I store a 32 bit binary value in a 32 bit memory register. The stored value ranges from 0 to 4000 in ...
David777's user avatar
  • 1,506

1
2 3 4 5