need help on pic


Closed Thread
Results 1 to 2 of 2
  1. #1
    mohammed omara's Avatar
    mohammed omara Guest

    Default need help on pic

    hello

    i need to now if i can compare between two sine wave by pic 16f877A or pic 16f628A?

    that the input of pic become sine wave , can the pic read that wave or can generate it?

    how i can do this ?

    Any ideas?

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default detecting and creating sine waves

    Here is an example of creating a sine wave. http://www.picbasic.co.uk/forum/cont...-DT-interrupts The first code example uses HPWM, and could be modified for your chip. (The second example uses the PCPWM and can only be used with the 18F2431 family). Here is a microchip application note that it is sort of based on: http://www.microchip.com/stellent/id...pnote=en011071

    To measure the sine wave, you could use a zero crossing detector such as this: http://www.picbasic.co.uk/forum/cont...tant-Interrupt

    Or an simpler way: http://ww1.microchip.com/downloads/e...tes/00521c.pdf
    http://www.scalerobotics.com

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts