DTMF and PIC for Remote Control


Results 1 to 20 of 20

Threaded View

  1. #8
    Join Date
    Sep 2009
    Posts
    11


    Did you find this post helpful? Yes | No

    Default DTMF decoder using 16F628A

    I have new coding problem, using TMR0 I do not understand........put simply
    Code:
    loop1:
      if intcon.2 = 0 then loop1  
      intcon.2 = 0
      clicks=clicks+1
      if clicks >=1900 then
      clicks=0
      high pin11:pause 100:low pin11  'Flash LED for 10th of second
      secs=secs+1
      endif
      if secs>=5 then 
      high pin10:pause 100:low pin10
      gosub nowt
      secs=0 'Reset secs
      endif
      goto loop1  
      end
      nowt: 
      return
    
    But fails if 
                  gosub nowt
                  endif
                  goto loop1  
                  end
                  nowt: 
                  secs=0 'Reset secs
                  return
    The inclusion of any code in the sub-routine at nowt: causes whole to fail?
    Last edited by ScaleRobotics; - 21st July 2010 at 17:42. Reason: added code tags

Similar Threads

  1. 8870/dtmf + Pic?
    By PIC_hobbyist in forum General
    Replies: 2
    Last Post: - 5th March 2013, 01:19
  2. PIC RS-232 to control Access database?
    By Angus Anderson in forum General
    Replies: 6
    Last Post: - 29th July 2007, 13:26
  3. Replies: 2
    Last Post: - 31st July 2006, 16:06
  4. Problems with DTMF Generatiom
    By Angus Anderson in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th May 2006, 21:12
  5. Shaping DTMF Signal out of PIC
    By charudatt in forum Schematics
    Replies: 1
    Last Post: - 8th October 2003, 10:09

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