SERIN basics


Closed Thread
Results 1 to 5 of 5

Thread: SERIN basics

  1. #1

    Default SERIN basics

    I have circuits that I've set up using SERIN and SEROUT and they work fine but to be honest, I'm not sure I really understand how they coordinate with each other.

    Pardon the ultra simple question....

    When SERIN is used, does the specified pin STAY on the SERIN line UNTIL it receives an RS232 stream?

    Or does it set the pin up to receive, store the info in a register when it gets it, WHILE the pic is busy with other things?

    And with timeout, it will allow a jump (after a period of time) to another routine if it hasn't been satisfied?

    Thanks.

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


    Did you find this post helpful? Yes | No

    Default

    When SERIN is used, does the specified pin STAY on the SERIN line UNTIL it receives an RS232 stream?
    Correct!

    Or does it set the pin up to receive, store the info in a register when it gets it, WHILE the pic is busy with other things?
    Only the PIC USART can do this. SERIN is a software solution wich allow PIC without USART(16F54,16F84,12F629,12Fs in general) to work with serial comms.

    And with timeout, it will allow a jump (after a period of time) to another routine if it hasn't been satisfied?
    Correct!
    Steve

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

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Thanks Steve.

    I had a reason for asking but now that I have a definitive answer, I can figure out a bit of a sequence problem I was having with a xmtr and rcvr.

    Appreciate it.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    I meant to ask also....

    In a hardwired situation (no wireless) isn't the SEROUT to SERIN connection totally immune from noise or anything to cause the PIC to jump out of the SERIN line and go elsewhere?

    I mean if you're looking for an RS232 stream with a couple of qualifiers it should be totally reliable, right?

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


    Did you find this post helpful? Yes | No

    Default

    right! Hardware must also be done with care if you're using Timeout or WAIT stuff.
    Steve

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

Similar Threads

  1. Serin EEPROM Programmer
    By dirtbiker5627 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 24th February 2010, 23:48
  2. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 22:03
  3. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02
  4. Serin with low voltage
    By f_lez in forum General
    Replies: 3
    Last Post: - 21st August 2006, 11:52
  5. 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