Connection time out


Closed Thread
Results 1 to 1 of 1
  1. #1

    Default Connection time out

    HI,
    I have a question how can I do a little routine that when my PIC Connection to my pc is lost for ex. 30 seconds a sound is generated to my portd.1.
    I have tryed with this code but i have another problems when I put the command sound.
    I have a PIC 16F877 and a RS485 ----> RS485 ---> RS232 ------> PC.

    '*******************************Main Routine*******************************************

    Main: ' Main Routine
    NoRX = 0
    low portd.0



    i = $0
    counter = 0
    IF RCIF Then
    NoRX =NoRX + 1
    i = RCREG
    serialstring[counter]=i
    counter=counter+1

    IF i ="!" Then CheckChar2




    EndIF
    if NoRX = 0 then SOUND PORTd.1,[110,200] ' Here is my problem

    GoTo Main


    When I put the command sound I lost my connection to PC I can not send data I dont know why ?!


    Thanks.
    regard Pesti.
    Last edited by Pesticida; - 16th November 2005 at 21:59.

Similar Threads

  1. I don't understand this code!
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 13th February 2008, 02:55
  2. Measuring time
    By AugustoPedrone in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th July 2007, 23:46
  3. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  4. Alarm Time
    By Santana in forum Code Examples
    Replies: 1
    Last Post: - 8th December 2006, 13:58
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24

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