Questions tagged [function]

For questions about mathematical functions or computer functions (e.g. in VHDL, C++, etc.). Use the "transfer-function" tag instead for questions about transfer functions. Use in conjunction with tags that specify the type of function, e.g. "math", "vhdl", "c++", etc.

Filter by
Sorted by
Tagged with
1 vote
0 answers
21 views

Scroll Text Image right or left from memory on LED Matrix

In my new project based CPP on microcontroller, I have Text as image row and column stored in W25Q32 memory. the width of image can vary but height is fixed. So if Image width is 32 bits wide first 4 ...
joshin joy's user avatar
0 votes
3 answers
130 views

RLC circuit transfer function

I'm trying to obtain the transfer function which relates the input voltage with the inductor's voltage H(s) = Vl(S)/U(s) so far I've tried to use Kirchoff's Laws in order to find it. Any suggestions? ...
Izanami's user avatar
1 vote
1 answer
100 views

How do we get a -1 in a 1-bit ALU?

In the 1-bit ALU and the table that is shown below, as you can see, the output is -1 when F0 = 1, F1 = 1, ENA = 0, ENB = 0, INVA = 1, INC = 0. The table is taken from a book (Structured Computer ...
RK Eshat's user avatar
  • 121
1 vote
3 answers
128 views

The functional relationship between LDR and output voltage in a light activated differential amplifier

while learning about amplifiers, I found that this circuit cannot be quantitatively analyzed and I need help. I have two questions: LDR as a function of the input and output voltage of the amplifier (...
Iceeman's user avatar
  • 23
0 votes
2 answers
149 views

Does wire size matter? If so, how?

I took the transformer from a microwave to make a spot welder. I cut the secondary wire out. Now I'm supposed to wrap a wire around the iron base. Primary wire is much smaller gauge than the secondary,...
Daze Daemar's user avatar
1 vote
1 answer
117 views

Construction of a Lagrangian function for a circuit

I was reading the paper "Introduction to quantum electromagnetic circuits", by U. Vool and M. Devoret and I am stuck in the construction of a Lagrangian function for the example LC circuit ...
axis's user avatar
  • 11
2 votes
2 answers
155 views

What happens after Return 0 in C on an embedded microcontroller? [duplicate]

In an embedded microcontroller programmed using C, generally the code body is placed within a continuous loop like while(1) in the main function so execution never ...
David777's user avatar
  • 1,548
4 votes
1 answer
241 views

How to remove unneeded SMD LEDs from a PCB without impairing function?

I am working on an ESP32 prototype project which uses two SW420 vibration sensors. On this board there are two (fairly bright) SMD LEDs, their function is not only not necessary but also unwanted, ...
Matthieu Kints van's user avatar
0 votes
1 answer
29 views

Express state of overflow as function?

Making an ALU I want a signal that signals whenever an addition or subtraction changes the binary number from - to +. Each number u and v is 4-bits and therefore is marked by 0, 1, 2, 3 where 3 is the ...
contrapunctus's user avatar
1 vote
2 answers
122 views

Filter coefficients and filter calculation methods

I'm trying to figure out the R and C elements for a second-order Bessel filter approximation. Unfortunately, in the below calculations the quality factor is negative, so it is wrong? (I checked by ...
grandzello's user avatar
1 vote
4 answers
238 views

Transfer Function Involving Transformer

I am interested in how you would approach finding the transfer function of a circuit that involves a linear transformer. For example, the circuit below simulate this circuit – Schematic created ...
thatstheguy9's user avatar
-1 votes
1 answer
71 views

Mosfet circuit-function

Hello, I am doing digital electronics and I have never seen this notation 5o define a function. Can someone explain me with details what happens when CLK is 1 please Thank you
makala's user avatar
  • 17
4 votes
3 answers
2k views

What is the meaning of the keyword "__weak" in this callback function in HAL GPIO function?

I have started learning STM32 programming in HAL and I am confused about what this function exactly does: ...
user8737703's user avatar
-1 votes
1 answer
240 views

Ramp(sin(t)) whats the graph of this function? [closed]

If T = 1 and ramp(t/T), when you substitute t for sin(t), the interval 0<t<=1 is now sin(0)< sin(t)<=sin(1) or is it 0< sin(t)<= 1?.Thank you.
Derteck pt's user avatar
1 vote
1 answer
822 views

Changing PWM Pulse and GPIO Outputs Inside a Function (STM32)

hope you are all doing well. I am trying to learn STM32 for about two weeks now and right now I need to create a Library file which includes just one function. This function changes PWM Duty Cycle and ...
kucar's user avatar
  • 211
0 votes
3 answers
819 views

Transfer function of brushless DC motor

Can someone explain how can 2nd order transfer function be represented by 1st order transfer function as shown in the equation 16 in the attached picture. I was trying to google it, but I couldn't ...
skela's user avatar
  • 1
2 votes
1 answer
299 views

Transfer Function of Parametric Equalizer

I'm trying to find the transfer function of a single band parametric equalizer. First stage is just a follower with an AC coupling capacitor. Output stage is an inverting amplifier. In the middle, ...
Romain Liechti's user avatar
0 votes
1 answer
141 views

Help with functional block program from ladder logic

I'm learning some basic functional block diagram programming and I'm trying to convert this ladder logic into block diagram but I don't know how because my book doesn't cover this. Can someone please ...
LDR's user avatar
  • 103
0 votes
1 answer
329 views

Solution to unknown function 'v' for a voltage source in LTspice?

I have been getting this strange error. Has anyone else experienced this kind of error beforein LTspice?
IamDp's user avatar
  • 1,865
-1 votes
1 answer
355 views

Oscilloscope can't detect voltage and waveform

I am having a trouble with my research. I am using a function generator to deliver electrical voltage to a wire and when I check it with the oscilloscope, it detects nothing (waveform, voltage.) Is it ...
Steve Moniz's user avatar
1 vote
0 answers
531 views

Follow-Up: LTSpice “Error:undefined symbol in:” problem

Thanks to those who have provided helpful answers on the original post. I've tried @Ernesto 's suggestions, but I must not be implementing them correctly as I'm still receiving similar errors. Please ...
RobMcN's user avatar
  • 165
1 vote
1 answer
356 views

How do I get the transfer function from this step response?

I have the following step response of a closed loop system. Using the calculations below, I tried to calculate the transfer function. I am trying to get the same response in Matlab. However, I seem ...
taigakin's user avatar
0 votes
1 answer
100 views

Writing function using sigma?

Suppose I was given: $$g(w,x,y,z)=(x+ y ̅+ z ̅ )( w+ y ̅+ z ̅ )( w+ x ̅+ y ̅ )$$ Then I can write it like this: \begin{align} g(w,x,y,z)&=(ww ̅+x+ y ̅+ z ̅ )( w+ xx ̅+y ̅+ z ̅ )( w+ x ̅+ y ̅ +...
daniel's user avatar
  • 21
-2 votes
1 answer
1k views

RiscV assembly, function arguments

I learnt that in RiscV assembly we save function arguments in registers s0,...,s7 but what if I had more that 8 arguments? Plus what about the case where I have more than 32 arguments (let's say 40) ...
albert's user avatar
  • 5
1 vote
1 answer
104 views

Is the disjunctive normal form unique?

As the title says, is the DMF always unique? And if no, is there an example of a function that has more than one DMF?
user7389496's user avatar
0 votes
1 answer
790 views

LM358 waveform generator issue

I would like to generate a 30 kHz & 60 kHz sawtooth waveform using an LM358P operational amplifier per the following schematic. Theoretically, and in the simulation, the circuit should work ...
George's user avatar
  • 91
-4 votes
2 answers
349 views

What are the two sensors doing in the automatic bread production line? [closed]

I want to know what is the name of these 2 sensors and what function they perform Some of you were complaining about the picture quality. It is the highest quality image I can get. Also these sensors ...
Karan Srivastava's user avatar
1 vote
0 answers
55 views

A bus routing puzzle, does it ring a bell?

I am breaking my head over a puzzling bus routing puzzle, and I wonder if this sort of problem rings a bell. I have 4 memory cell ports, let's call them EE, OE, EO, and OO, that are being mapped to 4 ...
Gunther Schadow's user avatar
0 votes
1 answer
49 views

How can I determine what type of logic structure this circuit represents?

I have the following circuit: How can I determine which one of the following functions it represents: F = (AB+CD)' F = ((A+B)(C+D))' F = AB+CD
Ali Mustafa's user avatar
0 votes
2 answers
105 views

How does the \$Q\$-factor of a parallel RCL circuit scale with the inductance?

I want to be able to show in an expression that the $Q$-factor of a parallel RCL circuit scales with the inductance. If we remind ourselves of a RCL circuit: simulate this circuit – Schematic ...
user27119's user avatar
  • 237
0 votes
3 answers
368 views

Flat line on output of single supply sawtooth generator

I have built the following sawtooth generator using LM358 opamps: In simulation everything works fine, however in reality I get only flat line on output. Anyone got any idea what's going on?
Em Ka's user avatar
  • 167
1 vote
1 answer
784 views

How to validate that a function is executing from RAM?

I'm trying to execute a control function as quickly as possible from SRAM on an STM32F3xx using GCC (System Workbench toolchain). ...
tarabyte's user avatar
  • 3,132
0 votes
1 answer
77 views

There is no math for adding the functions of two parallel filters. Or is it?

I want to add two "parallel" functions. Each of them describes the frequency response of that individual filter. Put in other words, I want to see what the frequency response looks like when the two ...
Cape Zoloh's user avatar
0 votes
2 answers
250 views

Graphical nature of signal energy

In signals, we learn that the energy of a signal is the integral of its square. E.g. \$E=\int_{-\infty}^\infty x^2(t) dt\$ We know that integrals are the areas under the function in a graph. But ...
Lukas Baliūnas's user avatar
0 votes
2 answers
84 views

Frequency response simple question

I'm looking at answers to calculating the frequency response, but i don't understand one line. what are they doing to go from the first line to the second line?
controlled_'s user avatar
0 votes
2 answers
98 views

total transfer function of a LTI System with feedback

I have calculated the transfer function of such systems many times, but now i feel like I`m going around in circles. I have drawn a few help-signals to help me solve it, but they are dependent of one ...
Newbie010's user avatar
0 votes
1 answer
65 views

How to choose which function to use depending on the parameter value? (MUX and Gates implementation)

Let's say we have A,B,C , which are all representation of decimal numbers. A and C are 4bit, B is 2bit. if A is any of those numbers (eg: 0,5,6,11 ), the function is F(A,B,C) = AB+C If A is the ...
Jordan_b's user avatar
1 vote
1 answer
76 views

Code parts encapsulation method

I have a prototype of a simple monostable multivibrator components like this: ...
Łukasz Przeniosło's user avatar
2 votes
2 answers
4k views

Implementing a function using decoder, encoder and some gates

Implement the function F(A,B,C,D,E) = A’B’C’DE’+ABCD’E using only the components required from the ones given below: One 3:8 decoder with active high outputs and an active high enable input One 8:3 ...
Viktor's user avatar
  • 23
4 votes
2 answers
5k views

LTSpice: how do I pass to a function a component name as parameter?

Good morning all. I am implementing a subcircuit in LTspice, and I want also to modify the plot.defs to calculate some quantities with the voltages/currents inside the subcircuit. Thus, I will have a ...
Alessandro Russo's user avatar
0 votes
1 answer
127 views

Special Function Registers value expressed as Hexadecimal & Bit shift

I was wondering if someone could help me solve one problem, because I am very new to this and I was given the code of a former programmer to work with. I'm trying to figure out the value of 0x8008 &...
sharksWithLasers's user avatar
-1 votes
4 answers
162 views

How do I integrate a function and plot the result on Matlab?

I need to plot a function that has an integrate inside, but I don't know how to do this on Matlab. Function: \$ SOC(t)= SOC(0) - \dfrac{1}{Q}\int_{0}^{t}i_2(t)dt \$ time is in hours, current is in ...
SrnLord's user avatar
  • 157
1 vote
1 answer
992 views

4 to 16 decoder made by two 3 to 8 decoders not working properly

I have a function f(x,y,z,w)=x.y.z+ y’.z’+x’.w’ and I need to make a circuit using two 3 to 8 decoders, an inverter, an or gate with as many inputs as we want (I use two because I need a 9 input one ...
butterflyflyaway's user avatar
0 votes
2 answers
3k views

Sine Function on Simulink

I'm trying to add the following function on my Simulink model. where C, B, and N are already variables in my file. Is the correct way to multiply omega by the gains 3N and N/2 an input that into the ...
DJE.T.'s user avatar
  • 1
1 vote
1 answer
504 views

minimize hazard free function

Given a function, e.g. \$y = f(x_0, x_1, x_2, x_3) = \sum m(0, 3, 4, 5, 6, 7, 8, 9, 11, 15)\$. How can i find the minimized function without hazards? I see this can be minimized using a Karnaugh map: ...
upe's user avatar
  • 113
0 votes
2 answers
91 views

Unable to access structure members through pointer in function called form another funciton?

While trying to interface BMP180 to my STM32L4 Controller using libraries I found that the , BMP180_RETURN_FUNCTION_TYPE bmp180_get_calib_param(void) funciton ...
Arun Joe Cheriyan's user avatar
1 vote
6 answers
1k views

What are the available solutions for a 8-input OR function that is 74xx compatible?

I need to implement an 8-input OR function that is compatible to IC chips of the 7400 series. I already found a few solutions, but none of them is perfect. A perfect solution would be an OR-gate chip ...
uzumaki's user avatar
  • 165
-2 votes
2 answers
104 views

Fourier Transform Impulse

My friend and I are revising and we are confused on how to start the question below, and we're hoping someone could give us a hint. Sorry if it's a bit blurry. We have the following equation, but ...
Koala's user avatar
  • 101
0 votes
1 answer
74 views

simplify boolean function

I have tried to simplify a boolean function. Unfortunately it is wrong. Question: Where is my mistake? \$ f = x_4x_2 + \overline {(x_3 + x_2)x_2 \cdot 1} + x_2 x_0\$ \$ f= x_4 x_2 + \overline {(...
jublikon's user avatar
  • 123
3 votes
3 answers
619 views

Do analog circuits exist that are essentially mathematical functions in DC?

I am curious if a class of analog circuits exist that would take say a 0-5 V input signal and output a mathematical function like a sine function mapping 0-5 V to 0-2pi, or a log, exponent, polynomial?...
J Collins's user avatar
  • 525