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.

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

67 questions
4
votes
1 answer

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, therefore I wish to remove these LEDs. I have found…
4
votes
3 answers

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: __weak void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { /* Prevent unused argument(s) compilation warning */ UNUSED(GPIO_Pin); /* NOTE:…
4
votes
2 answers

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 function like: .func A(x)…
3
votes
3 answers

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? I could see the associated coefficients also…
J Collins
  • 525
  • 2
  • 12
3
votes
1 answer

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 adder_width is not updated with the value from clogb2. In fact, that function doesn't return any value. See…
Abhi
  • 131
  • 1
  • 2
  • 11
2
votes
2 answers

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

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 stops. What happens if we take out this while(1) loop and allow the processor of the…
David777
  • 1,548
  • 12
  • 29
2
votes
2 answers

Arduino linking assembler funtions

I would like to use (link) a function written in assembler in an Arduino project. What I want to do is: write the function in assembler using avr-gcc calling conventions declare the function as extern in the .ino file provide the instructions and…
2
votes
1 answer

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, there is a parametric single band equalizer. R2 and…
2
votes
1 answer

Simple Differentiator with OpAmp - response function

Ok, I have a differentiator with an OpAmp, a resistor and a capacitor. I've calculated the response function, and I've written it in the picture. Now, the OpAmp has a single-pole response function, that is also on the paper, and I need to see how…
2
votes
2 answers

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 Priority Encoder with input no. 7 at highest…
Viktor
  • 23
  • 1
  • 3
2
votes
2 answers

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 using DDRx trying to set one PIN which used from…
MrBit
  • 1,973
  • 4
  • 27
  • 54
2
votes
4 answers

How to call void function in response to receiving serial data (Arduino)

I'm new to Arduino, and I'm trying to decipher this code. There are various void functions that I am trying to call in response to receiving serial data (the Monitor outputs "Please enter valid function to call"), but I suppose I don't really know…
M.Y.
  • 93
  • 1
  • 3
  • 9
2
votes
1 answer

Initial value of time function

I need help find the the initial value for the following time function: $$F(s) = \frac{10(s+6)}{(s+2)(s+3)} $$ I've found the final value to be \$F(s)=0\$
rubito
  • 143
  • 3
1
vote
1 answer

What is this go-no go function in some oscilloscopes and how can I use it?

I have seen some oscilloscopes with this option (go-no go function), but I don't know what it is. I couldn't find anything about it in my searches. What is it?
firewhale
  • 73
  • 3
1
vote
0 answers

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 bytes will be Row1 and next 4 bytes will be Row2…
joshin joy
  • 11
  • 1
1
2 3 4 5