Hserin


Closed Thread
Results 1 to 12 of 12

Thread: Hserin

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120

    Default

    Maybe you need to make the variable a number of some kind?
    My variable is the InChar (look the code) and I set it as a byte.

    The possible value could be $a1 or $a2 or $aa.

    When I type that value via the terminal I have it back (hserout) but I do not have correct answer from the DS1620.

    The strange thing is that I send
    $a1

    and I receive back
    $
    a
    1

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

    Default

    Code:
    hserin 100,start,[WAIT($), HEX InChar]
    Shiftout DQ, CLK, MSBFIRST, ["$",HEX InChar]
    MAYBE????
    Dave
    Always wear safety glasses while programming.

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

    Default

    Do you have a Pull-Up resistor on PORTA.4 (RST)?

    It's an Open Collector output, so it can't go HIGH on it's own.

    DT

  4. #4
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120

    Default

    Of course my friend Taylor I use Pull-Up resistor on PORTA.4...

Similar Threads

  1. HSERIN and XOUT command
    By aratti in forum General
    Replies: 20
    Last Post: - 12th May 2009, 11:58
  2. Instant Interrupts and HSERIN
    By Rob in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 31st January 2009, 05:13
  3. TMR0 interrupt and HSERIN
    By boban in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd September 2008, 11:48
  4. 16F877a Interupt driven Hserin
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd November 2006, 00:38
  5. Hserin
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th November 2004, 15:42

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