Select Case Weirdness


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,632


    Did you find this post helpful? Yes | No

    Default Re: Select Case Weirdness

    I'm thinking a case with no code in it is rather pointless (probably just confuses the compiler) and that includes thev "case else " too. what happens if you remove them

  2. #2
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Select Case Weirdness

    Most likely problem is in DTMF receiver, not select case...

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Select Case Weirdness

    Most likely problem is with code...
    Think about it? How many digital lines come from the tone decoder that you are encoding? 4? Well that would equate to 0 - 15 combinations right? What you need to do is use the "data available" comming from the decoder as a qualifier for gating the case statement. Even if there are NO tones being decoded from the tone decoder there has to be some state the output lines are at right? Even if the output are "tristated" the input lines to the PIC when read will show some state. In other words, The NO CODE state is data NOT available....
    Last edited by Dave; - 18th June 2014 at 11:57.
    Dave Purola,
    N8NTA
    EN82fn

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Select Case Weirdness

    Quote Originally Posted by richard View Post
    I'm thinking a case with no code in it is rather pointless (probably just confuses the compiler) and that includes thev "case else " too. what happens if you remove them
    I agree with Richard.

    Robert

Similar Threads

  1. Changing from If..Then to Select Case
    By BobK in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th March 2013, 11:06
  2. About Select Case
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th February 2010, 11:54
  3. Help needed with Select Case?
    By jessey in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd January 2008, 00:12
  4. Select case...Just wondering....
    By muddy0409 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th December 2006, 23:23
  5. Select Case
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th June 2005, 19:18

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