Strange Behavior in setting several pin outputs states.


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Strange Behavior in setting several pin outputs states.

    This thread was about an antiquated 16F877. I try to use only later model processors (2009 at the oldest). If a PORT pin is declared as a PWM port, none of the following will have any affect on that pin:
    HIGH PWMpin
    LOW PWMpin
    HIGH LAT[PWMpin]
    LOW LAT[PWMpin]
    PWMpin = 0
    PWMpin = 1

    In other words, if you wanted to turn the output off, HPWM 1, 0, Freq
    To turn it fully on, HPWM 1, 255, Freq.

    With that said, the above methods of altering pins on a port will not affect PWM output (at least on the processors I use).
    Last edited by mpgmike; - 5th August 2017 at 17:03.

  2. #2
    Join Date
    Oct 2012
    Posts
    83


    Did you find this post helpful? Yes | No

    Default Re: Strange Behavior in setting several pin outputs states.

    Sorry, my bad. I posted to the wrong thread which in fact is the target of my link.
    I was trying to post to this new thread:

    http://www.picbasic.co.uk/forum/showthread.php?t=22951

    Just so we do not create too much confusion, can my reply be moved to the right thread?

    Regards,

    Nick

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