Serin timeout in PB not PB Pro...


Closed Thread
Results 1 to 2 of 2
  1. #1
    jesterhoz's Avatar
    jesterhoz Guest

    Post Serin timeout in PB not PB Pro...

    Hello All,

    We are trying to control six servos using the Pic16F84 microcontroller. In PB Pro, within the serin command we can set a timout value and a place to go after. Does anyone know how to accomplish this in PB?

    What we want to happen is this. If new serial data is received, process the serial data. If no new data is received, continue processing previous data while continuing to look for new data.

    Any ideas?

    Thanks,

    Trevor

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    i have no idea how PB work, just a thought here before i look in PB manual.

    When sending data to PIC why not begin with an NUL character and after send what you want.

    The receiver will poll the SERIN pin, when she's low, process SERIN command. BUT depending what you do while there's no new data, it can be good or bad. Maybe using interrupt will be better in some case.

    OR the best solution is use an PIC who have an built-in USART and use interrupt from USART.

    regards
    Last edited by mister_e; - 19th November 2004 at 01:25.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. SERIN Timeout
    By George in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 23rd March 2007, 15:06
  2. 16F628A Serin timeout and Timer1
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th March 2006, 23:20
  3. SERIN SERIN2 Timeout
    By markedwards in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd June 2005, 18:59
  4. SERIN & Timeout
    By BigWumpus in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th October 2004, 07:33
  5. Need help converting to PB Pro from Mbasic Pro
    By tcbcats in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 11th February 2004, 07:43

Members who have read this thread : 1

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