Reading SERIN whilst running other operations


Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Jul 2004
    Posts
    6

    Smile Reading SERIN whilst running other operations

    I have a simple program that listens on a port for serial commands using SERIN. It then activates one of 8 relays depending on the serial input.

    I need my PIC (currently a 16F84) to also be running another part of the program at the same time. (Ideal) However it seems that when my program reaches a SERIN command it just sits there, the whole program pauses and waits for data.

    I now need my pic to also be counting away in the background and activate a relay after a duration of no serial activity. I know PICs are not multithreaded (well atleast the 16F84).

    Is there a more advanced PIC that can do this? Ideally I need a solution that can fit into a 18Pin DIL.

    My question at this stage is, is it possible with an adjustment to my existing pbp code? If so, does anyone know of a working example of this kind of thing practice.

    Many Thanks,

    Dan
    Last edited by Dan_lay; - 29th October 2007 at 13:30.

Similar Threads

  1. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 22:03
  2. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02
  3. Serin / Serin2 / Debugin Differences
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th January 2006, 06:32
  4. SerIn and SerOut
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 21st July 2004, 15:54

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