how to generate two signals from two ports at the same time by using p16f84


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Jul 2011
    Posts
    17

    Default how to generate two signals from two ports at the same time by using p16f84

    hi

    for my homework i am supposed to build a circuit by using pic16f84 generating two squarewave signals having different selectable precision frequencies such that 2,2 khz or 2,4 khz etc. throughout different ports at the same time.

    i have used tmr0 and other some methods to build it too much but i could not generate that precision frequencies. it seems so diffucult!!!

    thanks for all helps

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: how to generate two signals from two ports at the same time by using p16f84

    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jul 2011
    Posts
    17


    Did you find this post helpful? Yes | No

    Default Re: how to generate two signals from two ports at the same time by using p16f84

    let me look at

  4. #4
    Join Date
    Jul 2011
    Posts
    17


    Did you find this post helpful? Yes | No

    Default Re: how to generate two signals from two ports at the same time by using p16f84

    i guess if pic16f84 have had 2 timers , it would be easy but it has not and how do we generate two different signals by using one timer at the same time?

    so diffucult

  5. #5
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: how to generate two signals from two ports at the same time by using p16f84

    the program i posted in that thread uses 1 timer. That timer is used to generate a time base to drive 4 software counters. these counters become my timers.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  6. #6
    Join Date
    Jul 2011
    Posts
    17


    Did you find this post helpful? Yes | No

    Default Re: how to generate two signals from two ports at the same time by using p16f84

    hi cncmachineguy

    yes i recognized it but pic16f84 drived by max 10 mhz and we need so precision time period , max +-2 micro second precision, when we use instructions like if ,else we have problem.

    when we are asked to generate two signals 630 micro seconds and 453 micro second by porta.0 and porta.1, for example, 633 micro seconds is not acceptable.

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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