18f25k22 hserin


+ Reply to Thread
Results 1 to 18 of 18

Thread: 18f25k22 hserin

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: 18f25k22 hserin

    I don't have the manual in front of me now, but I think that you are missing some parameters in the HSERIN command.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  2. #2
    Join Date
    Jan 2022
    Posts
    71


    Did you find this post helpful? Yes | No

    Default Re: 18f25k22 hserin

    the manual is in PDF format.

    Let me know what is missing when you can.

    from the data sheet only 3 setup as to be done for receiving.


    Name:  Untitled-2.jpg
Views: 3639
Size:  112.6 KB


    thank you
    Last edited by jackberg1; - 19th January 2025 at 03:25.

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: 18f25k22 hserin

    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  4. #4
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: 18f25k22 hserin

    Also, HSERIN starts saving the variables after the WAIT requirement has been met. In your case, it will only save 11 numbers instead of 12.

    Code:
    ' code to scan sample : 0 59749 96859 1                     
    MAIN:                             
    
    
    HSERIN [wait ("0"), str AArray\11]
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  5. #5
    Join Date
    Jan 2022
    Posts
    71


    Did you find this post helpful? Yes | No

    Default Re: 18f25k22 hserin

    I rectified it (hserin 5,MAIN,[STR AARRAY\12])

  6. #6
    Join Date
    Jan 2022
    Posts
    71


    Did you find this post helpful? Yes | No

    Default Re: 18f25k22 hserin

    here's the code from today post:

    HSERIN [wait ("0"), str AArray\12]
    serOut2 PORTB.0,84, [str BArray\12,13,10]

  7. #7
    Join Date
    Jan 2022
    Posts
    71


    Did you find this post helpful? Yes | No

    Default Re: 18f25k22 hserin

    Thanks for your time, I'll look at it, also I did used a timeout label (hserin 5,MAIN,[STR AARRAY\12])
    still no result.

    Thanks again.

  8. #8
    Join Date
    May 2013
    Location
    australia
    Posts
    2,680


    Did you find this post helpful? Yes | No

    Default Re: 18f25k22 hserin

    Works ok for me if BArray has something printable placed in it

    perhaps u wired it up incorrectly
    Warning I'm not a teacher

  9. #9
    Join Date
    Jan 2022
    Posts
    71


    Did you find this post helpful? Yes | No

    Default Re: 18f25k22 hserin

    Quote Originally Posted by richard View Post
    Works ok for me if BArray has something printable placed in it

    perhaps u wired it up incorrectly


    even this

    MAIN:
    hserin 5,MAIN,[STR AARRAY\12]
    serOut2 PORTB.0,84, [str aarray\12,13,10]
    GoTo MAIN

  10. #10


    Did you find this post helpful? Yes | No

    Default Re: 18f25k22 hserin

    ....."0" is decimal 48

  11. #11
    Join Date
    Jan 2022
    Posts
    71


    Did you find this post helpful? Yes | No

    Default Re: 18f25k22 hserin

    Name:  SCAN.jpg
Views: 1664
Size:  16.5 KB
    Quote Originally Posted by amgen View Post
    ....."0" is decimal 48

    thanks to everyone involved to help me on this project.
    I tried about every way to setup the HSerin1,2
    still not working.
    I'm realy suprise since these HSerin command are part of PBP3 for at least 15 years
    and today in 2025 cannot find any reliable sample codes.
    even the PBP3 examples does not work at all for my setup.

    I had 1 rs232/ttl scanner bad (intermitent power on the rs232 rail)
    connected another one and the only easy way to make work it's
    with the code below.

    Code:
    MAIN:                             
    
    
    '--------------------------------------------
    serin2 PORTB.0,84,50,MAIN,[STR AARRAY\12]
    serOut2 PORTB.1,84, [str aarray\12,13,10]
    serOut2 PORTB.1,84, ["Done!",13,10]
    '--------------------------------------------
    
    
    GoTo MAIN
    Last edited by jackberg1; - 19th January 2025 at 22:02.

Similar Threads

  1. Hserin
    By Dinoden in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th December 2016, 04:16
  2. 18F25K22 Help
    By ERMEGM in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 25th November 2014, 10:36
  3. migration from 16F876a to 18F25k22
    By MOUNTAIN747 in forum General
    Replies: 26
    Last Post: - 19th March 2012, 21:33
  4. Config 18F25K22
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th April 2011, 19:08
  5. hserin
    By jcleaver in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 21st February 2007, 18:15

Members who have read this thread : 13

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