Serial Question


Closed Thread
Results 1 to 5 of 5

Thread: Serial Question

  1. #1
    Join Date
    Jun 2005
    Posts
    37

    Default Serial Question

    Hi. Can someone please tell me the operational difference between serial setting of for example N9600 compared to ON9600? I understand that "ON9600" is meant for use on an open collector port but how would it operate differently than N9600?

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    penelopepug, The use of "open collector" circuits is for "ORING" other devices attached to the bus. The bus would have a passive pullup resistor to source the current required to drive the bus high. That way any device on the bus could pull it low by an open collector transistor or fet there by sending the signal to all devices that are listening. On a bipolar driven bus each of the devices will "sink or source" current at any time so you can have only 1 device in this mode, otherwise you would have bus contention meaning 1 device would be "sourcing" current and 1 device would be "sinking" current at the same time. HTH

    Dave Purola,
    N8NTA

  3. #3
    Join Date
    Jun 2005
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Serial Question

    Thanks Dave. I understand the use of an open collector output however what I do not understand is if for example; If I use Porta.4 of a PIC16F877 as my serial output, since it is an open collector output, how would setting the baud to ON1200 differ from N9600? A pull-up is required on the open collector so would N9600 not act exactly the same as ON9600? What does the open collector designation "O" do?

  4. #4
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Just guessing that instead of the pin having the two states

    OUTPUT HIGH
    OUTPUT LOW

    it achieves Open Collector functionality by having the two states

    INPUT (high impedance so effectively open collector)
    OUTPUT LOW

    Regards
    Keith

    www.diyha.co.uk
    www.kat5.tv

  5. #5
    Join Date
    Jun 2005
    Posts
    37


    Did you find this post helpful? Yes | No

    Default You May Be Right!

    Keithdoxy, you may be right! That's interesting because what you suggest says that ON1200 may instantly change the pin to an input when the bit needs to be high (1) and then changes back to an output to go low (0) in sending the bit stream. Therefore emulating an open collector via the input state when a high (1) is needed. That would help me out because in some programs (using N1200 for example) I have been making the pin an input after sending serial data out because of parallel serial lines. The "O" may take care of that at a bit level.

Similar Threads

  1. Wireless serial communication question
    By Ahmadabuomar in forum Serial
    Replies: 3
    Last Post: - 21st December 2009, 03:49
  2. serial LCD/SLCD question
    By MatthewM in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th May 2009, 14:56
  3. Replies: 8
    Last Post: - 22nd July 2008, 20:31
  4. AN Question for "word" variable read The serial port
    By redfoen in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th December 2007, 17:39
  5. newbie with serial com question...
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th December 2006, 05:34

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