PIC18F27J13 Peripheral Pin Select (PPS)


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    166

    Default PIC18F27J13 Peripheral Pin Select (PPS)

    Hi All,

    I am experimenting with the PIC18F27J13 and I am having difficulties using the peripheral pin select (PPS) options.
    I am trying to set a PWM output function to re-mappable pin RP2 (RA5 - Pin 7)
    I am working from datasheet DS3997A which is listed as a "Preliminary" datasheet but I can find no others on the Microchip website.

    "Section 18.0" states that the device has "seven CCP (Capture/Compare/PWM) modules designated CCP4 through CCP10."

    "Table 10-14: SELECTABLE OUTPUT SOURCES" shows CCP1/P1A (ECCP1 Compare or PWM Output Channel A) is output function 14

    My confusion lies in the mis-match between the CCP4 and CCP1 statements listed in the above references.
    Can anyone shed some light on how to re-map output function 14 to re-mappable pin 2 (RP2)?

    Cheers
    Barry
    VK2XBP

  2. #2
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    166


    Did you find this post helpful? Yes | No

    Default Re: PIC18F27J13 Peripheral Pin Select (PPS)

    Hi All,

    I am pleased to announce that I have resolved my issues with peripheral pin select (PPS) and CCP channel assignment.
    Should anyone ever be in a similar situation, the reallocation of PWM pins via the PPS configuration is done using the ECCP registers and not the CCP registers as I had originally thought.
    I will post some working code in the near future for completeness.

    Cheers
    Barry
    VK2XBP

Similar Threads

  1. pic18f27j13 Serial Communitcation Help
    By gwntd541 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 22nd April 2012, 06:27
  2. MIDI over USB peripheral
    By aberco in forum USB
    Replies: 1
    Last Post: - 31st October 2011, 17:06
  3. Serial Peripheral Interface
    By DonD in forum Serial
    Replies: 1
    Last Post: - 28th January 2008, 19:14
  4. "Serial Peripheral Interface"?
    By robertmark68 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd October 2006, 22:23
  5. Serial Peripheral Interface (SPI)
    By O2_Guy in forum Serial
    Replies: 1
    Last Post: - 22nd March 2006, 21:01

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