Serial communication only once?


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Serial communication only once?

    Put this in the "Ever" loop
    RCSTA.4 = 0 : RCSTA.4 = 1
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default Re: Serial communication only once?

    This is somehow what the define will do, except it will test if there's any error, if so it will clear them

    from the .LIB
    Code:
          ifdef HSER_CLROERR
        btfsc    RCSTA, OERR    ; Check for overflow error
        bcf    RCSTA, CREN    ; Toggle continuous receive to clear error
        bsf    RCSTA, CREN
          endif
    Steve

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

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