Measuring pulse width using ccp


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: Measuring pulse width using ccp

    It is sad that we are posting in picbasic pro forum ,you can see many people viwed your post, they just pass by, they do'nt offer any help.i am certain that among them some who know the answer

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Measuring pulse width using ccp

    The one big thing you need to watch out for when moving code from one PIC to another is how the registers are configured. You need to go line by line and look up registers. For example, maybe timer1 one is associated with CCP2 on one chip and CCP1 with another. That is just purely an example but things like that are common. It might be the smallest difference from one PIC to another that will prevent code from working on one and not the other.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Measuring pulse width using ccp

    Quote Originally Posted by abofar View Post
    It is sad that we are posting in picbasic pro forum ,you can see many people viwed your post, they just pass by, they do'nt offer any help.i am certain that among them some who know the answer

    You have to realize that there are a LOT of novice members here. Just because they don't post does not mean they are ignoring you. Many read threads because they have similar questions, or like me, just want to see if they can learn something new.

    I've used PICs since 2004 and have never touched PWM in a serious way.

    Robert


    EDIT: you can start by making sure your PIC is configured properly, this is just an example from 16F886:
    Code:
    #CONFIG
     __CONFIG _CONFIG1, _LVP_OFF & _FCMEN_OFF & _IESO_OFF & _BOR_OFF & _CPD_OFF & _CP_OFF & _MCLRE_OFF & _PWRTE_OFF & _WDT_OFF & 
    _INTRC_OSC_NOCLKOUT
     __CONFIG _CONFIG2, _WRT_OFF & _BOR21V
    #ENDCONFIG
    http://www.picbasic.co.uk/forum/show...132#post110132

    Have you done much searching for CCP and PWM?
    Last edited by Demon; - 21st March 2012 at 13:24.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default Re: Measuring pulse width using ccp


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