scanning BCD switches


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Posts
    98


    Did you find this post helpful? Yes | No

    Default

    thanks all
    i like the single pin ADC approach, seems like the least stuff
    i am already doing pushbuttons this way

    too bad there are no res values in the MC app note #7, guess that would spoil the fun

    but on 3 bcd sws there would be 1000 combinations, strikes me as too touchy for a 10 bit AD, or am i missing something ?
    ds

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dsicon View Post
    but on 3 bcd sws there would be 1000 combinations
    But I'm sure you only need 512 of them.

    Yeah, I think reading all 3 BCD switches on 1 A/D might be a stretch.
    But with each digit on different pins, 3 pins would be better than 7.
    Then there's only 16 voltage possibilities per pin (10 used). Piece of cake for A/D.
    <br>
    DT

  3. #3


    Did you find this post helpful? Yes | No

    Default BCD switches

    ds,
    Do your switch readings need to be checked often, rearly, only once ?

    don
    amgen

  4. #4
    Join Date
    Nov 2003
    Posts
    98


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by amgen View Post
    ds,
    Do your switch readings need to be checked often, rearly, only once ?

    don
    amgen
    they will either be polled at the top of the main loop or in response to a button push, haven't started the program yet

    it looks like i will be using the 7 pin diode matrix approach after all since it seems to offer the best set of tradeoffs given other considerations in the design, i just really don't like stuffing the 12 diodes due to insertion cost
    oh well

Similar Threads

  1. DS1302 16F628 Woes
    By idtat in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th January 2009, 14:15
  2. Rotary BCD
    By Tobias in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th October 2007, 03:04
  3. two BCD switches
    By Mugel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st November 2006, 22:53
  4. switches & LEDs ... my first attempt
    By yankee in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 28th January 2006, 12:51
  5. Two switches per pin!!!
    By picnaut in forum General
    Replies: 4
    Last Post: - 18th June 2004, 19:02

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