process hung problem + self reset


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by eng.alamin View Post
    looool don't get my ( ) in wrong way bro
    what i ment was (your suggestion will be consider) nothing more
    i can't be rude to any one try to help me
    thank any way WDT work fine with me the problem is not in " defines "
    sorry for mistake
    Then go back and look at post 5, Skimask is as subtle as a nuke, he is telling you a lot there.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Skimask is as subtle as a nuke
    Wait until you see me in my 'Officer Jim Dangle' costume this weekend...

  3. #3
    Join Date
    Aug 2008
    Posts
    20


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by Joe S. View Post
    Then go back and look at post 5, Skimask is as subtle as a nuke, he is telling you a lot there.
    thank you joe for attention
    anyway just to make something clear

    normaly i use programmer software to set all (define) like HS , MCLR_OFF , LVP ...etc

    and other thing (define) erorr may not let pic work stable or work at all

    and my circuit hung after 10 min of good execution time (it looped fine for 10 min)

    when i used WDT it work fine .

    you know the problem of pic basic pro is most of functions work at background
    so you will be far from (hardware imagination execution) to track erorrs like this one

  4. #4
    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 14:35.

  5. #5
    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 11:00.

Similar Threads

  1. Pic reset and following lock up problem
    By zerosvarka in forum General
    Replies: 19
    Last Post: - 17th June 2009, 20:03
  2. LCD Reset Problem
    By Bill Legge in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th February 2009, 08: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, 08:12
  4. Reset problem
    By leonel in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 2nd May 2006, 06:46
  5. PIC problem, ways to do reset
    By lab310 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th May 2005, 14: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