Stupid Blinking LED Question


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: Stupid Blinking LED Question

    Hi,
    It's the old Read-Modify-Write problem. HIGH/LOW takes a little longer to execute (because it also writes to TRIS every time) so it doesn't suffer in this case but direct port.bit access may suffer from the RMW issue.

    Try writing to the port latch instead of the port itself by aliasing your YLED/GLED to LATA.0 and LATA.1

    /Henrik.

  2. #2
    Join Date
    Aug 2008
    Posts
    13


    Did you find this post helpful? Yes | No

    Default Re: Stupid Blinking LED Question

    Thank you! that was it...

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