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
4 answers
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 ...
user avatar
-1 votes
1 answer
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
user avatar
  • 7
4 votes
3 answers
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: ...
user avatar
-1 votes
1 answer
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.
user avatar
1 vote
1 answer
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 ...
user avatar
  • 191
0 votes
3 answers
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 ...
user avatar
  • 1
2 votes
1 answer
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, ...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 103
0 votes
1 answer
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?
user avatar
  • 1,755
-1 votes
1 answer
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 ...
user avatar
1 vote
0 answers
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 ...
user avatar
  • 143
1 vote
1 answer
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 ...
user avatar
0 votes
1 answer
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 ̅ +...
user avatar
  • 11
-2 votes
1 answer
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) ...
user avatar
  • 5
1 vote
1 answer
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?
user avatar
0 votes
1 answer
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 ...
user avatar
  • 81
-4 votes
2 answers
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 ...
user avatar
1 vote
0 answers
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 ...
user avatar
0 votes
1 answer
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
user avatar
0 votes
2 answers
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 ...
user avatar
  • 215
0 votes
3 answers
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?
user avatar
  • 157
1 vote
1 answer
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). ...
user avatar
  • 3,063
0 votes
1 answer
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 ...
user avatar
0 votes
2 answers
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 ...
user avatar
0 votes
2 answers
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?
user avatar
0 votes
2 answers
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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
1 vote
1 answer
74 views

Code parts encapsulation method

I have a prototype of a simple monostable multivibrator components like this: ...
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 ...
user avatar
  • 23
3 votes
2 answers
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 ...
user avatar
0 votes
1 answer
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 &...
user avatar
-1 votes
4 answers
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 ...
user avatar
  • 157
1 vote
1 answer
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 ...
user avatar
0 votes
2 answers
2k 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 ...
user avatar
  • 1
1 vote
0 answers
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: ...
user avatar
  • 111
0 votes
2 answers
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 ...
user avatar
0 votes
4 answers
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 ...
user avatar
  • 155
-2 votes
2 answers
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 ...
user avatar
  • 101
0 votes
1 answer
69 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 {(...
user avatar
  • 123
3 votes
3 answers
485 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?...
user avatar
  • 485
-4 votes
1 answer
195 views

Figure out logical function from a CMOS logic circuit

"Given that Vdd > 0, determine the logical function that this CMOS circuit represents." Any help on how to approach this problem would be great. Many thanks!
user avatar
-2 votes
1 answer
923 views

C project for PIC won't build when I call user defined functions

So I am trying to set up a UART serial connection, and I have a function called UART_INIT to initialise my UART, however when I try to call it my project won't build and I can't see why. If I just ...
user avatar
-1 votes
1 answer
21k views

Implement Boolean function using only 4x1 multiplexer considering A and D as input and B,C as selection values

F(A,B,C,D) = Σm(0,1,3,4,6,7,11,12,14,15) How do I use A and D as input and use only 2 selection lines for a 4 variable function?
user avatar
0 votes
1 answer
98 views

Output voltage function (circuit-analysis)

What will the function of the output voltage be? My work, and am I right?: $$\text{V}_{\text{out}}(t)=\frac{\text{R}_9\text{V}_{\text{in}}(t)}{\text{R}_{10}}+\frac{1}{\text{R}_{11}\text{C}_1}\int\...
user avatar
  • 4,968
0 votes
1 answer
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....
user avatar
  • 181
-1 votes
1 answer
633 views

Where to find PIC library functions? [closed]

...
user avatar
0 votes
1 answer
8k views

Functions that return Enums?

In Atmel ASF I found this piece of code ...
user avatar
  • 483
-1 votes
2 answers
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 ...
user avatar
3 votes
1 answer
263 views

Function call isn't executed in verilog

Why function call to clogb2 is not being executed in the following code. I don't get any compilation errors but still parameter ...
user avatar
  • 101
1 vote
2 answers
1k views

AVR IO Alternative Functions Priority

If in an AVR microcontroller there's at least two functions for example SPI, Analog Comp and GPIO pins in one 8bit PORT what's the priority of the functions? for example: If SPI enable first, and then ...
user avatar
  • 1,890