process hung problem + self reset


Results 1 to 27 of 27

Threaded View

  1. #3
    Join Date
    Aug 2008
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    hello no (interrupts)
    this is my code
    no schematic release yet still prototypal
    but u can figer it out from code

    pin b.0 is serail in
    pin a.3 is audio out

    Code:
     define osc 20
       Include "modedefs.bas"
     
     TRISA = %00000000
      gdata var byte[21]
    
      x var byte 
      ok var bit
     main:
     x = 0
     
        gps:
            if ok == 0 then 
      serin2 portb.0 , 188 ,[wait("GPS") , str gdata\20]
             toggle portb.1
         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  
        ok = 1
        endif
      
       serin2 portb.0 , 188 ,[wait("SD") , str gdata\4]
       ok = 0
            toggle portb.2
         dtmfout porta.3 ,100,100,[ 10 , 1 , 10 ]
                 pause 1
               
         for x = 0 to 4
                         pause 10
                     if  gdata[x] = "." then
                        gdata[x] = 12
                        endif
                        dtmfout porta.3 ,100,100,[ gdata[x]  ]  
                           
      next x      
      pause 50           
     goto main
    Last edited by eng.alamin; - 28th October 2008 at 22:45.

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