Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Frequency
hmmm how should I implement an interrupt driven timing? Because for some periods the max value is different. For example: sometimes the max value is 4.5 whereas in other times it is 4.52 so I'm not sure how to account for that.
Hey,
So I acquired various values for the amplitude of the sine wave and stored it in an array. Some of the values are listed below:
4.5
4.43
4.33
4.17
4
3.78
3.54
3.27
3
2.7
2.39
2.07
1.76
1.47
1.17
0.92
0.68
0.47
0.29
0.15
0.05
0
0
0
0.07
0.21
0.35
0.52
0.76
1
1.27
1.56
1.86
2.17
2.49
2.8...
Highest value of a sine wave
This might be a really silly question here but I can't seem to figure it out. So I have created an array which stores 50 values of a sine wave generated by a function generator. I want to find the location of the max value in this array. I already did that but...
Thanks! I will make the changes mentioned to do just that. Also, if I were to change the value of i to, lets say, 49, then that means I would have 50 various values to look at to find the amplitude correct? Instead of having just 10 values.
I am using a PIC18F6722 microcontroller. I have hooked up a function generator to pin A1 to get the various values for the sinewave. I want to write code to find the amplitude of the sine wave. How should I go about doing this? So, far this is my code:
#include <18F6722.h>
#device ICD = TRUE...
I am using a PIC18f6722 microcontroller and I want to generate a sine wave at 60Hz. The complier I am using is CCS C. I have the PIC hooked up to a function generator so I can see the sine wave on the oscilloscope. I want to write a code that re-creates the same sine wave on CCS C so I can...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.