Can I have interupts on any pin ?


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi, PMC

    Looks your site is down ...

    Could you check the link ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Its not my site. but working for me.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    The message is :

    " Internet explorer can't display the page "

    no connectivity problems to others sites ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Alain,
    Use Fire Fox.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Dec 2004
    Location
    Scarborough UK
    Posts
    77


    Did you find this post helpful? Yes | No

    Smile

    Well guys

    Thanks for all your help, I've found that @20mhz its probably fast enough to just poll all the pins to check if they have changed state (this may change as I add more pins to my project), as for the pull-ups, I think im going to go with external resistor packs.

    I have further questions (descriptors) , but I think its best to post in another thread, so if you are bored please take a look and help if you can

    Thanks again
    Reading the datasheet & understanding it are two different things.

  6. #6
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default

    Bonxy,

    I don't see your other thread but I wanted to comment that you're correct in that you should be able to poll push button switches without any problem, even at relatively slow clock speeds, since switches produce a very slow and very easy to capture signal.

    If you need lots of switches (you mentioned up to 33) then you might also consider Charlieplexing or multiplexing them. That is, organize them into columns and poll one column or row of switches at a time. You could Charlieplex 30 switches using just 6 I/O pins (and 30 diodes), or 42 switches using 7 I/O pins (and 42 diodes), or you could multiplex 32, 35, or 36 switches using just 12 I/O pins in a 4x8, 5x7, or 6x6 matrix, respectively.

    On the other hand if you want to put the mcu to 'sleep' while waiting for a switch press then using one I/O pin per switch with diode 'OR' wiring to an IOC pin makes perfect sense.

    Good luck on your project. Regards, Mike

  7. #7
    Join Date
    Dec 2004
    Location
    Scarborough UK
    Posts
    77


    Did you find this post helpful? Yes | No

    Talking

    Hi Mike

    Thanks for that info, i never heard of "Charlieplexing" before, you can learn new word every day in electronics

    Ps: I put my other thread in the USB section if you fancy a crack at it!
    Reading the datasheet & understanding it are two different things.

Similar Threads

  1. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 13:55
  2. DS1820 with 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 23rd May 2009, 05:07
  3. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 17:11
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17:07

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