Continue to Site

Welcome to EDAboard.com

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.

Recent content by engineerelectrical

  1. E

    Finding the amplitude of sine wave in CCS C (program)

    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.
  2. E

    Finding the amplitude of sine wave in CCS C (program)

    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...
  3. E

    Finding the amplitude of sine wave in CCS C (program)

    Re: Highest value of a sine wave Thanks! I was overthinking this way more than I should've.
  4. E

    Finding the amplitude of sine wave in CCS C (program)

    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...
  5. E

    Finding the amplitude of sine wave in CCS C (program)

    I was looking at FFT but would the pic18f6722 be able to handle FFT? I'm not sure if it would but if it can then I will implement it.
  6. E

    Finding the amplitude of sine wave in CCS C (program)

    Thank you! Also, if I were to find the frequency for my sine wave how would I go about coding it? Would I need to use timers and/or interrupts?
  7. E

    Finding the amplitude of sine wave in CCS C (program)

    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.
  8. E

    Finding the amplitude of sine wave in CCS C (program)

    The code I used in the second for loop finds the min and the max level correct?
  9. E

    Finding the amplitude of sine wave in CCS C (program)

    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...
  10. E

    [PIC] Generate a sine wave using a PIC microcontroller

    Are there sample codes I can reference to for this? - - - Updated - - - Are there sample codes I can reference to for this?
  11. E

    [PIC] Generate a sine wave using a PIC microcontroller

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

Part and Inventory Search

Back
Top