Avoid HSEROUT command?


Results 1 to 9 of 9

Threaded View

  1. #6
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Avoid HSEROUT command?

    Don’t know why it would interfere with an interrupt, but I mean this
    Code:
    led off
    hserout[a,b,c,d,e,f,i,j]
    led on
    is no better than doing the same thing with software serial.
    The led won’t turn on until all eight bytes are sent.
    Code:
    led off
    hserout[byte]
    led no
    Where as the above doesn’t even have to wait for the single byte to send serially.

    If you were going to interrupt this:
    Code:
    sendingserial = 1
    hserout[a,b,c,d,e,f,i,j]
    sendingserial = 0
    You’d have to be sure your interrupt doesn’t change any vars a-j while sendingserial = 1 or you’d end up
    with a composite of what was supposed to be two commands (i.e. you don’t know where it’s up to).
    Last edited by Art; - 26th November 2015 at 03:35.

Similar Threads

  1. ADCIN & 16F870 - how to avoid non linear conversion?
    By CuriousOne in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 21st March 2014, 08:02
  2. How can I avoid stack corruption
    By BrianT in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th August 2013, 02:45
  3. How to avoid DIV32 command?
    By pxidr84 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 16th May 2011, 06:11
  4. How to avoid corrupting an EEPROM Write
    By jessey in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th July 2005, 08:34
  5. 16F877 and Hserout command
    By fbestepe in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th May 2004, 10:30

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