Problem Keeping PORTD.1 LOW - Page 2


Closed Thread
Page 2 of 2 FirstFirst 12
Results 41 to 49 of 49
  1. #41


    Did you find this post helpful? Yes | No

    Default

    I think I'm starting to get some progress.
    If I write the code, as below, my ONA does not turn on when measured with a multi-meter.
    But if I put a LED over PORTD.0 (ONA) AND GND and I press the on button, it flickers.
    So with the loop ONA does not stay high, but flickers
    Without the loop ONA does stay high?

    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=477&stc=1" border=1">
    Attached Images Attached Images  

  2. #42


    Did you find this post helpful? Yes | No

    Default

    I Think I have found my problem.
    The plates in the breadboard creates a capacitance on my circuit, that is why the led was flickering.
    I have build a pcb and now it looks like it is working.

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


    Did you find this post helpful? Yes | No

    Default

    That happen often even if you have a brand new or older breadboard.

    Out of curiosity, what about if you remove those capacitor around your crystal on your BreadBoard???
    Steve

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

  4. #44
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Great! Thanks for the schematic. Looks like that took awhile to draw.

    I should have the circuit built up later today. Just crawled out of bed. Need Coffee...

    I'll get back to you later.
    <br>
    DT

  5. #45
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    After posting that last one. I saw that you have it working.

    Not what I wanted to see.
    <br>
    DT

  6. #46


    Did you find this post helpful? Yes | No

    Lightbulb

    Hi Darrel

    Thank you very much for your help.

    You said that it's not the right way to connect the one pin of the pic directly to ground, what is the correct way of doing this.

  7. #47
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The problem arises when you try to scan the keypad.

    Each ROW is scanned by placing a LOW signal on it, and testing the upper bits of PORTB for the Column results. &nbsp;But, if 1 of the rows ALWAYS has a LOW signal on it, there's no way to distinguish which row had the button press.

    So, your stuck between a Rock and a Hard place.

    Don't have that "correct way of doing this".
    <br>
    DT

  8. #48
    Join Date
    Aug 2005
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    Read the attached about keypad scanning.
    Attached Images Attached Images

  9. #49


    Did you find this post helpful? Yes | No

    Default

    Thank you arniepj, I will read it!

Similar Threads

  1. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  2. confused problem with interrupt in a working program
    By illuminator4 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th November 2008, 17:01
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. Problems with RC2 and RC3
    By Christopher4187 in forum General
    Replies: 11
    Last Post: - 29th May 2006, 17:19
  5. 4-line LCD Help - using PortA instead of B
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 31st March 2005, 03:14

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