HSERIN and XOUT command


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Steve, this code doesn't work

    Code:
    Getbytes:
    Rdata[A0] = RCREG
    If A0 !=8 then 
    A0=A0+1
    ELSE
    DTReady = 1 
    ENDIF
    @ INT_RETURN
    This one works. But cannot appreciate any difference in speed, perhaps what is gained here is lost in the two variables check:
    "IF Rdata[0] = 36 and DTReady = 1 then"

    Code:
    Getbytes:
    Hserin [Rdata[A0]] 
    If A0 !=8 then 
    A0=A0+1
    ELSE
    DTReady = 1 
    ENDIF
    @ INT_RETURN
    Al.
    All progress began with an idea

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


    Did you find this post helpful? Yes | No

    Default

    If you don't have any HSERIN/HSEROUT in your code, you must write to the register RCSTA/TXSTA/SPBRG instead of using DEFINEs, probably this why It doesn't work.

    Not sure of the overhead though... Would be great to have some X-10 device here... never messed with that before. Sure enough, I can't afford to buy any for now
    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