Revert a port from PWM to Digital I/O


+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,127

    Default Revert a port from PWM to Digital I/O

    If id does matter, chip is 47K42.

    After setting the registers for a PWM output and selecting, for example, RC5PPS=%%00001001, the PWM signal indeed does appear on the output port.

    What about reverting operation of that port to normal Digital output and steer the PWM signal now to another port, say RC7 using RC7PPS=%00001001 ?

    Ioannis

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Revert a port from PWM to Digital I/O

    A value of 0 in the pins PPS registers sets it to be controlled by the LAT register. See bottom of table 17-2 in the datasheet.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,127


    Did you find this post helpful? Yes | No

    Default Re: Revert a port from PWM to Digital I/O

    Thank you Henrik.

    Its ok now,

    Ioannis

Similar Threads

  1. Port Digital Output Not Changing Properly
    By rsocor01 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th March 2017, 07:06
  2. 18F87K22 Port B Digital
    By gavo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th July 2014, 07:50
  3. Multiple PWM and port C
    By Scampy in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 15th December 2013, 16:35
  4. 18F2520 - problem configuring fuse for port B as digital port.
    By hwhisperer in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th October 2010, 11:41
  5. PWM problem CCP2 port
    By NL2TTL in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 19th September 2006, 23:34

Members who have read this thread : 4

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