Simple LED driving issue - setup?


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: Simple LED driving issue - setup?

    It is probably a read-modify-write issue.

    Try -

    TRISB = $FF
    PORTB= $FF

    TRISB.0 = %11111110
    Pause 100
    TRISB.0 = %11111101
    Pause 100
    TRISB.0 = %11111011
    Pause 100
    TRISB.0 = %11110111


    ...
    Charles Linquist

  2. #2
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171


    Did you find this post helpful? Yes | No

    Default Re: Simple LED driving issue - setup?

    Thanks Charles, My bad sorry - one of those pesky solder bridges your code helped me find the problem tho.

    Sorry for posting this when it was a silly wiring fault on my part

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