process hung problem + self reset


Results 1 to 27 of 27

Threaded View

  1. #13
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Very likely the problem is the time taken to dtmfout between the two serin command. If the for/next loop takes just longer than allowed you miss tx bytes and your system is out of syncronism. (Remember you have a wait comand)

    Remove

    Code:
    dtmfout porta.3 ,100 ,100,[ 10 , 0 , 10 ]
                 
                 
         for x = 0 to 20
                       pause 10
                     if  gdata[x] = "." then
                        gdata[x] = 12
                        endif
                          dtmfout porta.3 ,100,100,[ gdata[x]  ]  
                           
      next x
    And dtmfout after the second serin command, to be sure to avoid loosing tx bytes

    Al.
    Last edited by aratti; - 29th October 2008 at 15:35.

Similar Threads

  1. Pic reset and following lock up problem
    By zerosvarka in forum General
    Replies: 19
    Last Post: - 17th June 2009, 21:03
  2. LCD Reset Problem
    By Bill Legge in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th February 2009, 09:55
  3. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 09:12
  4. Reset problem
    By leonel in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 2nd May 2006, 07:46
  5. PIC problem, ways to do reset
    By lab310 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th May 2005, 15:31

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