RSIN timing out to quickly


+ Reply to Thread
Results 1 to 8 of 8

Thread: RSIN timing out to quickly507 days old

  1. #1
    Junior Member mjturner's Avatar
    Join Date
    Dec 2003
    Posts
    88
    Thumbs Up
    Received: 7
    Given: 4
    Total Downloaded
    544.85 MB

    1 Not allowed!

    Angry RSIN timing out to quickly

    The RSIN command has a timeout option, but it doesn't seem to work correctly. I've tried various values for Rsin_timeout and even at 50000 I'm only getting a 2 second timeout (it should be 50 seconds!). I would expect to get a "#" symbol every 50 seconds, but instead I get one every 2 seconds. The baud rate is matching, because i'm receiving the data only if I set it correctly on the terminal software, so I know it isn't the XTAL setting.

    I've created the following simple program to test for the issue:
    Code:
    Device = 16F15345
    
    
    Config1 FEXTOSC_OFF, RSTOSC_HFINT32, CLKOUTEN_OFF, CSWEN_ON, FCMEN_ON
    Config2 MCLRE_OFF, PWRTE_OFF, LPBOREN_OFF, BOREN_ON, BORV_LO, ZCD_OFF, PPS1WAY_OFF, STVREN_ON
    Config3 WDTCPS_WDTCPS_31, WDTE_OFF, WDTCWS_WDTCWS_7, WDTCCS_HFINTOSC
    Config4 BBSIZE_BB512, BBEN_OFF, SAFEN_OFF, WRTAPP_OFF, WRTB_OFF, WRTC_OFF, WRTSAF_OFF, LVP_ON
    Config5 CP_OFF
    
    
      Xtal = 32
      All_Digital = TRUE   
      
      Declare Optimiser_Level = 0
    
    
      Dim a As Byte
      
      Declare RsIn_Pin PORTA.5
      Declare RsOut_Pin PORTA.4
      Declare Serial_Baud 38400
      Declare Serial_Data 8
      Declare RsOut_Mode 0
      Declare RsIn_Mode 0
      Declare RsIn_Timeout 50000
      
      Symbol SerialIn=PORTA.5    
      Symbol SerialOut=PORTA.4
    
    
      DelayMS 2
    
    
      Output SerialOut
      Input SerialIn
      Clear SerialOut
      RsOut "Alive!"
    RepeatIt:
      a=RsIn ,{TimeOutHit}
      RsOut a
      GoTo RepeatIt
    TimeOutHit:
      RsOut "#"
    GoTo RepeatIt
    The program I'm writing needs to communicate with another device over serial. It was all working just fine on a different chip, but for various reasons I wanted to use this chip due to price point and features.

    Coupled with being unable to get HRSin to work on this chip, this is really driving me mad. Please - can someone help!

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,456
    Thumbs Up
    Received: 71
    Given: 26
    Total Downloaded
    6.08 GB

    0 Not allowed!

    Default Re: RSIN timing out to quickly

    Try to add a weak pull-up on the receiving pin. Had similar problem, not waiting for a specific character, but it seemed that `interference' on receiving pin was triggering the receiver to receive.
    Regards

    Joseph

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Junior Member mjturner's Avatar
    Join Date
    Dec 2003
    Posts
    88
    Thumbs Up
    Received: 7
    Given: 4
    Total Downloaded
    544.85 MB

    1 Not allowed!

    Default Re: RSIN timing out to quickly

    Quote Originally Posted by joesaliba View Post
    Try to add a weak pull-up on the receiving pin. Had similar problem, not waiting for a specific character, but it seemed that `interference' on receiving pin was triggering the receiver to receive.
    Thanks - I already tried that after searching on here for similar issues. My issue is the exact opposite, it is timing out when I don't expect it to.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Senior Member Henk57's Avatar
    Join Date
    Jan 2014
    Posts
    406
    Thumbs Up
    Received: 19
    Given: 35
    Total Downloaded
    192.60 MB

    1 Not allowed!

    Default Re: RSIN timing out to quickly

    Again.

    The Rsin command is strange because, I use this; RsIn {Label}, var
    But the mouse hovering label said this RsIn {Label,} var

    Further, I use 20msec time-out and that part work.

    Before, I'd struggle with pace time either in ms and us, but is solved elsewhere
    Last edited by Henk57; 27th June 2018 at 10:10.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,208
    Thumbs Up
    Received: 74
    Given: 180
    Total Downloaded
    5.15 GB

    1 Not allowed!

    Default Re: RSIN timing out to quickly

    I agree with Henk, I've also used Rsin with different timeout values within the same program. Thats the big advantage of Rsin over Serin which uses a fixed timout.
    George.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #6
    Fanatical Contributor top204's Avatar
    Join Date
    Feb 2002
    Posts
    3,397
    Thumbs Up
    Received: 290
    Given: 141
    Total Downloaded
    1.68 GB

    1 Not allowed!

    Default Re: RSIN timing out to quickly

    This has been corrected and a patch App.exe file will be uploaded onto the forum files section ASAP.

    It comes about when higher frequencies are used for the device, which overload the 8-bit WREG. It has been there since day one of adding the enhanced 14-bit core devices, which is now, quite a few years. LOL

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #7
    Senior Member Henk57's Avatar
    Join Date
    Jan 2014
    Posts
    406
    Thumbs Up
    Received: 19
    Given: 35
    Total Downloaded
    192.60 MB

    0 Not allowed!

    Default Re: RSIN timing out to quickly

    @Les I had a certain feeling you'll post a important message.
    Thanks.

    Henk.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #8
    Junior Member mjturner's Avatar
    Join Date
    Dec 2003
    Posts
    88
    Thumbs Up
    Received: 7
    Given: 4
    Total Downloaded
    544.85 MB

    1 Not allowed!

    Default Re: RSIN timing out to quickly

    Quote Originally Posted by Les View Post
    This has been corrected and a patch App.exe file will be uploaded onto the forum files section ASAP.

    It comes about when higher frequencies are used for the device, which overload the 8-bit WREG. It has been there since day one of adding the enhanced 14-bit core devices, which is now, quite a few years. LOL
    Thanks Les. Glad it wasn't me for a change!

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. Timing on 24EP
      By Handyman in forum Proton 24
      Replies: 6
      Last Post: 13th December 2015, 16:13
    2. Rsin timeout not timing out
      By ken_vk7krj in forum Proton Plus Compiler v3
      Replies: 1
      Last Post: 26th June 2011, 16:43
    3. Timing not correct
      By Dave-S in forum Proton Plus Compiler v3
      Replies: 10
      Last Post: 9th February 2011, 23:21
    4. [SOLVED !] Interrupt timing help
      By nigelb in forum Proton Plus Compiler v3
      Replies: 8
      Last Post: 10th November 2010, 21:54
    5. [SOLVED !] Timing and counting
      By pmcleod in forum Proton Plus Compiler v3
      Replies: 6
      Last Post: 26th August 2007, 22:07

    Members who have read this thread since 26th October 2019, 00:47 : 1

    Actions :  (Set Date)  (Clear Date)

    You do not have permission to view the list of names.

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts