Pwm portb in pic 16f628 in same time


Closed Thread
Results 1 to 23 of 23

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: Pwm portb in pic 16f628 in same time

    I think that May 16, 2004 code (pretty old) came before DT_INTS. I still don't know where you found it. Your error is from all the wsaves in the Multi_SPWM.pbp include file. So simply edit them to be:
    Code:
    ;wsave       var byte    $20     SYSTEM          ' location for W if in bank0 
    wsave       var byte    $70     SYSTEM          ' location for W if in bank0 
    ' --- IF any of these three lines cause an error ??  
    'Simply Comment them out to fix the problem ---- 
    ;wsave1      var byte    $A0     SYSTEM          ' location for W if in bank1 
    ;wsave2      var byte    $120    SYSTEM          ' location for W if in bank2 
    ;wsave3      var byte    $1A0    SYSTEM          ' location for W if in bank3 
    ' ------------------------------------------------------------------------------
    if you are not going to specify it in your code.

  2. #2
    Join Date
    May 2010
    Posts
    43


    Did you find this post helpful? Yes | No

    Default Re: Pwm portb in pic 16f628 in same time

    Ok,I try this code some time to fix,thks allot,for your help!!!! http://www.picbasic.co.uk/forum/imag...lies/smile.gif
    Just one question
    can you tell me, because I like learn Pic Basic ,where I can find some nice tutorial or some video tutorial,about Pic Basic,to I learn write code in Pic Basic,and where i can find some expansion,for how i write code in Pic Basic!

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


    Did you find this post helpful? Yes | No

    Default Re: Pwm portb in pic 16f628 in same time

    To help learn.

    Here are some samples
    http://melabs.com/samples/PBP-mixed/index.htm

    And read the questions/answers on this forum daily.
    Dave
    Always wear safety glasses while programming.

Members who have read this thread : 0

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