Serial command


Closed Thread
Results 1 to 2 of 2

Thread: Serial command

  1. #1

    Default Serial command

    Can Hserin/out , Debugin/out and serialin/out work in the same code for example in a 16f877a?
    Like one pair does hserin/out, another pair goes for debug and third pair for serialin/out.
    I want to serially communicate with my bluetooth module+my PC and then another PIC.
    ___________________
    WHY things get boring when they work just fine?

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,518


    Did you find this post helpful? Yes | No

    Default Re: Serial command

    Hi,
    Yes, but remember that they are all "blocking" commands, that is if you have a SERIN at one place in your program and it's wating for data to come in then your "other" SERIN/DEBUGIN/HSERIN etc is effectively not listening. If you need to be able to receive data from multiple sources simultanously then using interrupts on a PIC with multiple (E)USART is the way to go. On the other hand, if you can communicate with your devices sequentially (first one, then the next, then the next and so on) then you can do it with multiple SERIN/SEROUT.

    /Henrik.

Similar Threads

  1. RETURN command?
    By droptail in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 12th March 2022, 14:34
  2. Replies: 1
    Last Post: - 18th February 2012, 13:27
  3. How to do serial command with 2 stop bits?
    By Pimentel in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2011, 14:44
  4. Button command
    By MrRoboto in forum mel PIC BASIC
    Replies: 1
    Last Post: - 29th January 2009, 03:23
  5. ANSEL command
    By Samoele in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th January 2009, 16:33

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