How to tell there is a serial request


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    Yes, HSERIN gets it's data from the USART's buffer.

    In the main loop you could ...

    Code:
        IF HaveTime AND RCIF THEN GOSUB Serial
    The PC will wait until the PIC sends it.
    Don't see a reason to tell it there's no time to talk now. But maybe your app needs that.
    DT

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869

    Default

    Thanks again Darrel for the explaination.

    The reason to send back a busy byte is for the user. Being me if I try to talk to the card and get nothing, I will likely forget its because my drives are enabled and assume there is something wrong. Then go and spend as much time as possible just to find out all is working as it should.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

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