2 Serial inputs at the same time?


Closed Thread
Results 1 to 4 of 4
  1. #1
    a_critchlow's Avatar
    a_critchlow Guest

    Arrow 2 Serial inputs at the same time?

    Does anyone know the best way to have a serial controlled PIC via to inputs? I have a PIC that needs to be controlled via remote control and from a wired serial input. The only way i think of doing this is to cross the to wire inputs, and feed into one port on the PIC, is there anyway of doing this via software?





    thanks to all who can help

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

    Default

    there's some PIC with 2 USART built-in. This could be handy to avoid missing incomming data.

    Have a look on the Microchips Website.

    You can even use some Timeout with SERIN2 but... i couldn't vouch on that method.
    Steve

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

  3. #3
    a_critchlow's Avatar
    a_critchlow Guest

    Arrow usart?

    thanks for that info. I am a little down on USART? Do all PIC's that are capable of serial transfer have USART?




    many thanks again






    andrew

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

    Default

    Let's say that it's not all PIC that have at least 1 USART. But it doesn't mean that we are not able to do serial transfer. SERIN/SEROUT/.../DEBUG are a software solution. A USART is a hardware solution. AND it also provide a cute 2 Bytes buffer in.

    with 2 USART, the first that spring to mine is this huge 18F8720... probably too big for what you want to do.

    There's still some way to do it cheaper by using 2 PIC, and probably only one PIC with or without USART. But in this case, i couldn't figure it will be really reliable if there's no FlowPin control or an intelligent interrupt + SerialHeader combination... if possible.

    Maybe the 2PIC solution is safer.
    Steve

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

Similar Threads

  1. Delayed output 10 secs
    By lilimike in forum mel PIC BASIC Pro
    Replies: 37
    Last Post: - 14th October 2011, 06:28
  2. Replies: 4
    Last Post: - 15th April 2009, 01:54
  3. Unable to get 2 inputs to work
    By rangerdoc in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st June 2008, 03:16
  4. Receiving and Transmitting Serial data at the same time
    By BobP in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th April 2007, 22:00
  5. Serial comm - are 2 wires for TX only enough?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 30th August 2006, 03:23

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