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

57 questions
Filter by
Sorted by
Tagged with
1 vote
94 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 ...
54 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
650 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: ...
68 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.
1 vote
226 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 ...
260 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 ...
154 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, ...
52 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 ...
69 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?
108 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
188 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 ...
1 vote
142 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 ...
58 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 ̅ +...
314 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
50 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?
361 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 ...
255 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
51 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 ...
47 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
97 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 ...
297 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?
1 vote
560 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). ...
75 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 ...
116 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 ...
75 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?
82 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 ...
64 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 ...
1 vote
74 views

### Code parts encapsulation method

I have a prototype of a simple monostable multivibrator components like this: ...
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 ...
3k 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 ...
111 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 &...
131 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 ...
1 vote
854 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 ...
2k views

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 ...
1 vote
396 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: ...
89 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 ...
476 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 ...
90 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 ...
69 views

287 views

### Trying to simulate the linear region of a MOSFET

I wanted to simulate the linear region, so I tried this: simulate this circuit – Schematic created using CircuitLab I expected the triangle wave to be curved, but it didn't have those features....
633 views

...
8k views

### Functions that return Enums?

In Atmel ASF I found this piece of code ...
410 views

### Boolean function and logic circuits

I have at my disposal: 2 input AND & OR logic gates and 1 input NOT logic gates. I need to prove (or disprove) that: 1) Every Boolean function in 3 variables (all 256 of them) can be represented ...