button pullup/down resistor?


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    I would go that far... you see, that also means, that my nIRQ interrupt pin that would not go high, no matter what, was also assigned as an output... And that is a problem that i have spent a lot of time on.

    I'm sure there's a saying somewhere about the worst problems are ones that you cause yourself.


    You will be pleased to know also that I have stopped re-inventing the wheel. And am now using shiftin/shiftout for my RFM12. I am currently receiving something, it's not what I am transmitting yet, but it's a start. I had actually missed your earlier post in my other thread recommending to use shiftin/shiftout. If I had have seen that, it would also have saved me a lot of time.

    I can now go and try to work out how much of this received info is status bits, and how much is actual received data.

    Anyway skimask, you are my new hero... Mister_e is back to number 2... haha

  2. #2
    Join Date
    Apr 2008
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    I'd rather code the button to debounce something like below:
    CHECK_PB:
    IF PB = 0 THEN DEBOUNCE_PB
    RETURN

    DEBOUNCE_PB:
    PAUSEUS 200
    IF PB = 0 THEN CHECK_PB

    MENU_CNT = MENU_CNT + 1

    RETURN
    and before that I would prefer to make the pin connected to button as output..

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by abidr View Post
    I'd rather code the button to debounce something like below:
    True...but the thing has to be working halfway in the first place...then all the options can be added...
    No sense in having spanky shiny rims on a car without an engine?

  4. #4
    Join Date
    Apr 2008
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    You need to look at the PIC16F877A data sheet page 51 which says that port D is a parallel Slave Port.
    I think you need to disable the PSP.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by abidr View Post
    You need to look at the PIC16F877A data sheet page 51 which says that port D is a parallel Slave Port.
    I think you need to disable the PSP.
    You mean the Parallel Slave Port that's disabled by default on power up, thereby letting Port D function as normal I/O?

Similar Threads

  1. Sony SIRC IR Issue
    By Ryan7777 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th August 2015, 08:10
  2. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43
  3. Code check -- button not working
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 2nd March 2006, 22:43
  4. Button Push within 3 second Window
    By Tissy in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 22nd December 2005, 10:06
  5. Button subfunction 16F628
    By Jųan in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th August 2005, 16:44

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