MCP3201 problems


Results 1 to 17 of 17

Threaded View

  1. #7
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    968


    Did you find this post helpful? Yes | No

    Default Re: MCP3201 problems

    It is a long time since I used the MCP3201, so I am not current with the information. I will suggest the following change to be made
    Code:
       if b_level=last_b_level then                 
            b_cnt=b_cnt+1
            pauseus 500
                if b_cnt > 10 then 
                TRISc = %11111111 
                gosub comenzi
                ENDIF 
        else
              b_cnt = 0
        endif
    This change will ensure that only 10 stable level readings will be counted. Any fluctuation will be ignored.

    The ADC way for reading keys is not the ideal way.

    Regards
    Jerson
    Last edited by Jerson; - 4th December 2017 at 03:48. Reason: removed signature

Similar Threads

  1. Shiftin problem (16f877A with MCP3201)
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th November 2013, 03:10
  2. IF ....THEN.... problems
    By bursach in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 24th February 2011, 19:42
  3. New and I'm having problems!
    By Roddy Wayne in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th April 2009, 06:38
  4. IR problems
    By Snap in forum General
    Replies: 10
    Last Post: - 6th August 2007, 06:20
  5. A/D Problems!
    By scottl in forum General
    Replies: 4
    Last Post: - 20th May 2006, 15:49

Members who have read this thread : 1

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