SHIN generates ASM ERROR with the 16F18877


Go to last post By: basparky
Today 07:05
Forum: The Lounge
Starter: basparky
Views: 0
Replies: 3
Yesterday 16:44
Forum: Proton Plus Compiler v3
Starter: Klr650
Views: 0
Replies: 0
+ 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. #2
    Fanatical Contributor Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,021
    Thumbs Up
    Received: 315
    Given: 120
    Total Downloaded
    1.51 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

  3. #3
    Fanatical Contributor Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,021
    Thumbs Up
    Received: 315
    Given: 120
    Total Downloaded
    1.51 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

  4. #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!

  5. #5
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,375
    Thumbs Up
    Received: 86
    Given: 23
    Total Downloaded
    4.04 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

  6. #6
    Fanatical Contributor Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,021
    Thumbs Up
    Received: 315
    Given: 120
    Total Downloaded
    1.51 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

  7. #7
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,858
    Thumbs Up
    Received: 163
    Given: 162
    Total Downloaded
    3.24 GB

    0 Not allowed!

    Default Re: SHIN generates ASM ERROR with the 16F18877

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

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, 12: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, 09: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 December 2018, 11:23 : 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