Autodetect serial communication?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Posts
    16

    Default Autodetect serial communication?

    How to get the PIC autodetect if an serial RS-232 cable is connected?
    If the serial RS-232 cabel is not connected the PIC should ignore the serial port commands, or someting like that. Any ideas?

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

    Default

    Handle your serial communication with interrupt.

    Are you building the PC application? If so that make things lot easier then.

    Knowing a little much about your hardware will help.
    Steve

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

  3. #3
    Join Date
    Jan 2009
    Posts
    16

    Default

    It is a pic18f4550.
    I think i am on the right way, USART interrupt. I will look this up more specific.

  4. #4
    Join Date
    Jan 2009
    Posts
    16

    Default

    USART interrupt seams to be good. But as far i can understand HSEROUT/HSERIN dont accpet inverted mode. And to get correct data out of HSEROUT/IN i need RS-232 controller like MAX232 ic right?

    So best solution for me would be a inverted SEROUT/SERIN interrupt, but is that possible?
    I have played little with "Darrel Taylor instant interrupts" and interrupts seams to be a very useful in many situations!

Similar Threads

  1. Wireless serial communication question
    By Ahmadabuomar in forum Serial
    Replies: 3
    Last Post: - 21st December 2009, 03:49
  2. PIC to PIC "wired" serial one-way communication - SERIN2/SEROUT2
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th April 2008, 20:02
  3. Bootloader,MCSP and Serial communication
    By surfer0815 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd March 2006, 10:52
  4. Serial communication PIC to PIC help.
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th January 2005, 15:45
  5. Replies: 8
    Last Post: - 11th November 2004, 20:08

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