process hung problem + self reset


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    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.

  2. #2
    Join Date
    Aug 2008
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    my serial data source is repeat it self continuously
    when the first package arrive the the buffer will be load
    and then first (FOR) loop will execute meen while there is serail data looses

    after first (FOR LOOP)

    the second serial in command will wait for other Sync WORD "SD"
    because serial source repeat all data packages continuously (if because of loop
    i miss the first appearing of "SD" at the end i'll catch it no matter what )

    it works gooood

    all data transmit ok and tone appear OK for 9 to 10 min of operation and the two FOR LOOP update continuously

    --------------------------------------------------------
    the hung is apear on tone sound

    normaly DTMFOUT sounds apear like this

    [toot -- teet -- tut -- tat -- tet - toot --tiit - toot ----> for 10 minuets ]

    and then it become sounds like this after 10 min

    [teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet] -------> till reset
    Last edited by eng.alamin; - 30th October 2008 at 12:00.

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