SHIN generates ASM ERROR with the 16F18877


Yesterday 20:44
Forum: SnapShot
Starter: towlerg
Views: 0
Replies: 54
Yesterday 16:25
Forum: Absolute Beginners Section
Starter: amod
Views: 0
Replies: 22
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Junior Member evoortman's Avatar
    Join Date
    Nov 2004
    Posts
    48
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    151.53 MB

    0 Not allowed!

    Default SHIN generates ASM ERROR with the 16F18877

    Hi,

    On a PIC16F18877 the SHIN command generates an ASM ERROR:
    Could this also be related to renamed or moved SFRs in the newer controllers?

    I'm usig the most recent compiler version.
    Proton Compilers Full Installer - Proton 3.6.2.7 - Proton24 1.0.5.3


    ;-------------------------------------------------------------------------------
    ;**** Added by Fuse Configurator ****
    ; Use the Fuse Configurator plug-in to change these settings

    Device = 16F18877

    Config1 FEXTOSC_OFF, RSTOSC_HFINT32, CLKOUTEN_OFF, CSWEN_ON, FCMEN_ON
    Config2 MCLRE_OFF, PWRTE_ON, LPBOREN_OFF, BOREN_OFF, BORV_HI, ZCD_OFF, ZCDDIS_OFF, PPS1WAY_OFF, STVREN_OFF, DEBUG_OFF
    Config3 WDTCPS_WDTCPS_8, WDTE_OFF, WDTCWS_WDTCWS_7, WDTCCS_SC
    Config4 WRT_ON, SCANE_not_available, LVP_OFF
    Config5 CP_OFF, CPD_OFF

    ;**** End of Fuse Configurator Settings ****
    ;-------------------------------------------------------------------------------
    Declare Xtal = 32
    Declare All_Digital = TRUE

    Dim Dummy[5] As Byte

    Symbol MISO = PORTD.2
    Symbol CLK = PORTD.0

    Output CLK
    Input MISO

    START:
    SHIn MISO, CLK, MsbPre, [Str Dummy]
    DelayMS 100
    GoTo START


    ASM ERROR: Error[113] C:\_WORK\TESTING\A.S 6267 : Symbol not previously defined (RS1)

    __SHIN_
    MOVWF PP3
    MOVWF PP3H
    CLRF FSR0H
    MOVF GEN2,W
    MOVWF FSR0L
    MOVF GEN2H,W
    BTFSC GPR,2
    CALL __SET_PIN_HIGH__
    BTFSS GPR,2
    CALL __PULL_PIN_LOW__
    ADDFSR 0,-5
    MOVFRS1,W
    MOVWF FSR1H
    MOVF GEN,W
    MOVWF FSR1L
    ADDFSR 1,5
    MOVF GENH,W
    IORWF INDF1,F
    ADDFSR 1,-5
    CLRF PP0
    CLRF PP0H
    MOVF PP3,W
    BTFSC STATUS,Z
    RETURN

  2. 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. #2
    Fanatical Contributor Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,177
    Thumbs Up
    Received: 365
    Given: 132
    Total Downloaded
    1.54 GB

    0 Not allowed!

    Default Re: SHIN generates ASM ERROR with the 16F18877

    I've corrected the typo in the asm listing creator and will upload an update later today.

    It should have been FSR1H, and it is for the enhanced 14-bit core devices that have moved the TRIS and LAT SFRs.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  4. 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. #3
    Fanatical Contributor Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,177
    Thumbs Up
    Received: 365
    Given: 132
    Total Downloaded
    1.54 GB

    0 Not allowed!

    Default Re: SHIN generates ASM ERROR with the 16F18877

    I've uploaded a new full compiler setup here:

    https://sites.google.com/view/rosetta-tech/home

    I'll upload it to the forum later tonight.

    It will make the compiler version 3.6.2.8.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  6. 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. #4
    Junior Member evoortman's Avatar
    Join Date
    Nov 2004
    Posts
    48
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    151.53 MB

    0 Not allowed!

    Default Re: SHIN generates ASM ERROR with the 16F18877

    Thanks again Les for sorting this out!

  8. 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.

  9. #5
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,414
    Thumbs Up
    Received: 98
    Given: 24
    Total Downloaded
    4.55 GB

    0 Not allowed!

    Default Re: SHIN generates ASM ERROR with the 16F18877

    Quote Originally Posted by Les View Post
    I've uploaded a new full compiler setup here:

    https://sites.google.com/view/rosetta-tech/home
    Is that a new website for PDS information?
    Regards

    Joseph

  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.

  11. #6
    Fanatical Contributor Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,177
    Thumbs Up
    Received: 365
    Given: 132
    Total Downloaded
    1.54 GB

    0 Not allowed!

    Default Re: SHIN generates ASM ERROR with the 16F18877

    It's my personal site for the Proton compilers, to show people "clearly" what the compilers can do. I've only, just recently, started it but I'll place more and more projects on there with graphics and code listings and explanations over time etc. I'm hoping one day to get a web hosting with a DNS name, but at the moment, they are too expensive, so I have to stick with the free 15 gig from Google.

    I have some more nice projects to put up, but the DNS name is not very easy to find, and the google, built in, web design on it is dreadful. I'm busy creating a web site with HTML5, and see if the google drive will hold it correctly.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  12. 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.

  13. #7
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,993
    Thumbs Up
    Received: 185
    Given: 169
    Total Downloaded
    3.76 GB

    0 Not allowed!

    Default Re: SHIN generates ASM ERROR with the 16F18877

    Les, I looked thro the great examples, any reason for not adding them to the PDS package?
    George.

  14. 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. ASM ERROR : Linker Error
    By SimonJA in forum Proton 24
    Replies: 15
    Last Post: 25th February 2018, 11:29
  2. Hundreds of ASM error of the same errors. Error [126]
    By wirecut in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 28th January 2012, 08:10
  3. Asm error:error[118]
    By Citius in forum Proton Plus Compiler v3
    Replies: 23
    Last Post: 24th April 2011, 09:34

Members who have read this thread since 18th April 2019, 04:31 : 0

Actions :  (Set Date)  (Clear Date)

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