need help!!! >> 2 channel SPWM variable duty cycle.


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Sep 2013
    Location
    Dhaka, Bangladesh
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Re: need help!!! >> 2 channel SPWM variable duty cycle.

    I hoped that is site is useful but I never get any help from this site. So this is my last post if I will not get any response I never post in this site.


    Proteus File: Attachment 7283

  2. #2
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: need help!!! >> 2 channel SPWM variable duty cycle.

    Antorbd,

    to add a variable to your code you simply declair it at the beginning like this...

    AdjustPWM VAR BYTE


    Then you can read the AD converter connected to your variable resistor like this...

    ADCIN 5, AdjustPWM

    then you can use the value you read in to your variable "AdjustPWM" in your PWM adjust command, something like the...

    HPWM 1, AdjustPWM, 500


    --------------------------------------

    are you using PicBasic ?? or some other basic language??

    If PicBasic do you have the manual?

    ----------------------------------

    for a beginner it is extremely helpful to read and study other working code examples.
    Use the search function at the top of the forum and enter a couple of search terms and you will find lots of examples.

    Also go to the WIKI section at the top also and look at the projects there.

    Good luck and keep asking questions.
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

Similar Threads

  1. Duty Cycle
    By Gord11 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 29th September 2011, 09:53
  2. 3 channel PWM with customize duty cycle
    By photoelectric in forum mel PIC BASIC Pro
    Replies: 56
    Last Post: - 16th May 2011, 14:49
  3. How can I measure Duty cycle ?
    By MaxiBoost in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 28th December 2006, 16:02
  4. PWM _ Duty Cycle in Tenths
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 17th May 2004, 13:09
  5. Duty Cycle Dilemmas
    By crankshaft in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 27th February 2003, 13:40

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