CCPx Modules


Closed Thread
Results 1 to 2 of 2

Thread: CCPx Modules

  1. #1
    Join Date
    Jul 2004
    Location
    CA
    Posts
    78

    Default CCPx Modules

    Hi Forum. I have a slight problem interfacing a few leds that are connected to the CCP modules. and the Duty cycle is determined by the input Switch that I have connected to various PortB, PortC and PortD pinouts.

    I have set my PR2 Value to acheive a 1.24Khz frequency and a Pr4 Value to acheive a 20Khz frequency.

    I am using CCP1, CCP3, CCP4 and CCP5 and all of them are configured under PWM mode. CCP1 is attached to PR2 and is running at 1.24khz. While CCP3, CCP4, CCP5 are attached to PR4 and is running at 20Khz.

    My code works perfectly fine when I try to Increment and Decrement the duty cycle of CCP3, CCP4, and CCP5 with a few switches. I can even pause the Duty cycle from proceeding further as well with no problem. But, when I try to increment or decrement the Duty Cycle of the CCP1 with a switch, it will not do so. I basically have the same code for the Incrementing and Decrementing of the CCP3, 4 and 5. as I do with CCP1. Is there something I need to know when working with the CCP modules running at two differnt frequencies. I have attached my code along with this to give you a sense of what is going wrong. I know that it;s something very simple but I'm not catching it. Please help

    Srig
    Attached Files Attached Files

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Hi Srig, Long time no see Glad to see you're not die!!!

    As i become old, can you refresh my memory by telling what is your actual PIC?

    Are all push-button pins set to digital and have <10K pull-ups resistors attach to? Had you try to do some LED BLINK when pressing on buttons related to CCP1?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. RF Modules (Zigbee)
    By Chris Barron in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 4th March 2010, 18:28
  2. Smart Radio RF620A and RF620RA modules
    By Colin612 in forum Serial
    Replies: 0
    Last Post: - 8th May 2008, 15:47
  3. Popular LCD modules
    By skimask in forum Off Topic
    Replies: 6
    Last Post: - 3rd April 2008, 05:34
  4. Help with CC1100 RF Modules.
    By charudatt in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 27th November 2006, 20:58
  5. supply FSK COB modules and FSK modules
    By Elsa zhang in forum Adverts
    Replies: 0
    Last Post: - 8th August 2006, 06:40

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