Port 'a' problems


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    18


    Did you find this post helpful? Yes | No

    Default ra4 allocation

    Sorry, forgot to fix that...I only did that as another debug...original code was
    Code:
     symbol l9= porta.0
    symbol l10= porta.1
    symbol l11= porta.2
    symbol l12= porta.3
    I reallocated to see if it was a problem with ra0 as it was the original playup pin. I have now set it back!! As far as some complimentary others not etc. If you look at the LED setup for the Bargraph hardware some (ie l1, l4, l9 and l12) are standalone LEDs whereas (l2,l3...l5,l6...l7,l8...and l10,l11) are wired in sequence. This means if I want to light LED 1 I send l1 high. If I want to light LED 2 I have to send l2 high and l3 low etc.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Robotica1 View Post
    This means if I want to light LED 1 I send l1 high. If I want to light LED 2 I have to send l2 high and l3 low etc.
    Right, but
    Quote Originally Posted by Robotica1 View Post
    When the code hits "high l9:high l11ause 3:"..l9 flashes (almost imperceptibly) then l11 goes high. When it gets to the next section ('High l10:low l11:high l12) then l10 goes high and l12 does nothing!!
    Code:
    high l9:high l11:pause 3:
    
    	  low l9:low l11
    
    	  high l10:low l11:high l12:pause 3:
    
    	  low l10:low l12
    But something does not look right in the above.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Possible to have a schematic? Picture worth thousands words

    an yup, i feel it could be done in few code lines. i bet on 50% reduction here, maybe more...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. port config.
    By tamertokgoz in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th July 2008, 12:25
  2. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  3. Notebook Com Port win2k problems
    By folkc in forum Serial
    Replies: 4
    Last Post: - 20th February 2006, 16:16
  4. STATUS re-curtain W
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th February 2005, 15:21
  5. Port pin problems
    By sgreelish in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th March 2004, 18:56

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