# 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.

73 questions
Filter by
Sorted by
Tagged with
1 vote
57 views

### function generator outputs - difference between 50 ohm and 600 ohm

I am trying to use a PCI-Quad04 board to count pulses (from a rotary encoder). In order to test out counting, I have a 1000Hz square-wave signal from a signal generator (BK Precision, 3011B) as ...
113 views

### Find a model with transfer function and real data

I am currently trying to create a model using a transfer function and my data. Here is my schematic: Here is my transfer function: My input signal is 2.5V for 10s, after which I decrease the voltage ...
1 vote
82 views

### Impedance for an equivalent circuit

In: Richard Reidl, N.O. Sokal & Laszlo Balogh (1990). A Novel Soft-Switching Full-Bridge DC/DC Converter: Analysis, Design Considerations, and Experimental Results at 1.5 kW, 100 kHz. IEEE ...
• 103
108 views

### How can I find the transfer function with Laplace in the (s) domain?

How can I find the transfer function for this circuit with laplace in the (s) domain?
567 views

### Equation for a Triangle wave shape [closed]

So I have this function, and is it writter analytically. I cannot understand how do we get 4Um/T and 2UM- 4Um/T or -4Um + 4Um/T. What I mean is that I have tried formula like this when I take u(t) ...
• 25
81 views

### ESP32 Dual Core

Does anyone have experience with using the second ESP32 core? I searched the internet but I only came across two loops that run independently of each other. I would need to be able to call a function ...
1 vote
45 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 ...
1k 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? ...
1 vote
282 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 ...
• 143
1 vote
317 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 (...
• 23
548 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,...
1 vote
205 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 ...
• 11
275 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 ...
• 1,555
364 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, ...
42 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 ...
1 vote
304 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 ...
1 vote
355 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 ...
77 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
• 17
4k 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: ...
381 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.
• 37
1 vote
996 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 ...
• 211
1k 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 ...
457 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, ...
269 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 ...
• 103
599 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?
• 1,885
701 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 ...
1 vote
741 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 ...
• 165
1 vote
559 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 ...
• 11
127 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 ̅ +...
• 21
2k 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) ...
1 vote
137 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?
1k 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 ...
• 91
392 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 ...
1 vote
61 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 ...
• 1,541
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
• 189
112 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 ...
• 247
422 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?
• 167
1 vote
929 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). ...
• 3,162
81 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 ...
417 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 ...
99 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?
128 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 ...
66 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 ...
• 11
1 vote
78 views

### Code parts encapsulation method

I have a prototype of a simple monostable multivibrator components like this: ...
• 1,679
5k 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 ...
• 23
6k 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 ...
133 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 &...
176 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 ...
• 157
1 vote