Questions tagged [function]

The tag has no usage guidance.

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

What's the phase relation between the sine wave and the sync output from a function generator?

I'm using a function generator to generate a sine wave, and am trying to use the sync (TTL) output to flash an LED at the beginning of each wave pulse. However, when I compare the sin wave and the ...
1
vote
1answer
68 views

Understanding function generator output when units are in dBm

I am using a function generator with output in units of dBm. It has an output impedance of 50 ohms. I am measuring this output on an oscilloscope, and am failing to understand the waveform's amplitude....
0
votes
3answers
69 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
1answer
66 views

How would you go about getting the small signal transfer function for this inverting circuit?

I am trying to get the small signal transfer function for a circuit that looks like this: It is an inverting amplifier connected to an output branch and a branch with a capacitor in series with an ...
1
vote
1answer
65 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). ...
0
votes
1answer
71 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 ...
0
votes
2answers
61 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 ...
0
votes
1answer
188 views

Constructing bode plot from experimental data and constructing a transfer function

I've been trying for a few days to convert an experimentally obtained (frequency against magnitude and frequency against phase) graphs to a bode plot and then construct a transfer function from the ...
0
votes
2answers
48 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?
2
votes
2answers
224 views

Obtain a Transfer Function from Bode Plot shown

I want to obtain a Transfer Function from the Bode Plots I already got the corner frequencies (approximates) and all the terms for my T.F. Then when I try to check my results in MATLAB my plot drops ...
0
votes
1answer
39 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 ...
0
votes
1answer
49 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
1answer
56 views

Code parts encapsulation method

I have a prototype of a simple monostable multivibrator components like this: ...
2
votes
2answers
956 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 ...
2
votes
2answers
502 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 ...
3
votes
2answers
134 views

Power amp for function generator

I have designed a function generator with the XR2206. That works well. I can take it up to 2MHz (sacrificing on THD, however). Where I have failed so far, is the power stage. I have a supply of +...
0
votes
1answer
89 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 &...
-1
votes
4answers
76 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 ...
0
votes
1answer
180 views

Bode plot of circuit with unknown values

I have the two following circuits with unknown values for R1, L and C, R2 is 1Kohm. I have attempted to find the transfer functions for these circuits and ultimately want to produce two bode plots ...
0
votes
2answers
113 views

Transfer Function of Op Amp Circuit

How can I obtain the transfer function graph of this circuit, assuming the zener diodes voltage are 4.3V and silicon diodes 0.7V.
1
vote
1answer
440 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 ...
4
votes
5answers
180 views

Average of a periodic voltage

I know that this question is math related, but I still don't get why we can say the following formula holds: I've a voltage \$V:\left[0,\infty\right]\to\mathbb{R}\$ and \$V\$ is periodic with \$T\$....
0
votes
1answer
96 views

Implication of s -> infinity in a transfer function

For a strictly proper transfer function with no poles/zeros at infinity, I understand that it gives G(inf) = 0. What does it for a proper TF?
0
votes
2answers
251 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 ...
1
vote
0answers
245 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: ...
1
vote
2answers
723 views

Transfer function of three cascaded RC filters?

I am looking for the transfer function of three cascaded RC filters: I have found the solution for two RC cascades (components differently labeled): I need an analytical expression like this one for ...
0
votes
2answers
73 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 ...
0
votes
4answers
120 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 ...
0
votes
0answers
168 views

2nd Order transfer function to difference equations

I'm wondering if someone could check to see if my conversion of a standard second order transfer function to a difference equation is correct, and maybe also help with doing a computer implementation. ...
-2
votes
2answers
83 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 ...
0
votes
1answer
59 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 {(...
3
votes
3answers
268 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?...
-4
votes
1answer
116 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!
0
votes
0answers
327 views

VHDL - Output an array to another module - or perhaps a better way to implement?

I have two modules in VHDL, they look something like this: simulate this circuit – Schematic created using CircuitLab In module U1 I have an input of 8 switches, and each switch is supposed to ...
-2
votes
1answer
578 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 ...
0
votes
2answers
206 views

Impedance matching with unknown filter

My question is related to impedance matching when using a function generator and oscilloscope to identify a type of passive filter, i.e. low pass, high pass, etc. If I output a function sweep from a ...
0
votes
1answer
12k 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?
2
votes
1answer
571 views

Arbitrary Function Generator or DAC with memory IC help

I am trying to look for a hardware solution to my current problem. Currently I am using an AFG preprogrammed with a signal (example below, 8bit resolution is OK, using 30 or more data points each 1us ...
-1
votes
1answer
49 views

transfer function confusion

It has been said that Vout = Va/2 I'm not sure why this would be. Could someone please tell me why?
0
votes
1answer
155 views

Impedances to simplify RC circuit?

Suppose I am trying to solve the following circuit, where \$V_i\$ is the potential seen from the top branch to the bottom branch (which is 'grounded') and \$V_o\$ is the potential across \$C_2\$: If ...
0
votes
1answer
78 views

Cannot figure out resonance of an LRC circuit

this is my first time here, nice to meet you all. In one of my classes we are studying the resonance of an LRC Circuit where the C branch is in parallel with an RL branch. This circuit is driven by ...
0
votes
2answers
387 views

Identify DC motor parameters using Least Squares Estimator

I'm not new to the concept of Least Squares, however, I find it difficult to figure out how to make it identify the transfer function for my motor. I will have my input voltage and an optical encoder ...
-2
votes
1answer
191 views

Explanation of how to create circuit from transfer function

So I'm in this lab course that must be taken concurrently with the main upper div circuits class, but we were assigned a lab that our professor did not explain and that the lab manual does not explain....
0
votes
1answer
89 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\...
3
votes
2answers
5k views

Why does VHDL function declaration not accept bounds for the return type, e.g. std_logic_vector?

I know that in VHDL each function call is instantiated as a separate combinational circuit. I am writing a function that takes in a 4 bit value and returns a 7 bit value from a look up table. The ...
0
votes
1answer
130 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....
4
votes
1answer
1k views

VHDL functions with generic or “run time variable”, synthesis issues

I have been thinking about functions in VHDL. If we have a function we could have both a function where we pass a "generic" (i.e. a fixed parameter known at compilation time) and a variable/signal (...
-1
votes
1answer
527 views

Where to find PIC library functions? [closed]

...
1
vote
2answers
123 views

Why am I getting an error in my transfer function?

I'm trying to solve part b here, and my transfer function is coming out as -1.25s/(s^2 + 2.05s + 1 instead of the given -1.25s/(s^2 + 1.6s + 1). Since there were no initial conditions, I just ...
0
votes
1answer
4k views

Functions that return Enums?

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