Today 21:13
Forum: WIKI Discussion
Starter: AlbertoFS
Views: 0
Replies: 6
Today 19:30
Forum: Master Synchronous Serial Port (MSSP) module / 3-wire SPI / I2C / Master and Slave modes
Starter: mjturner
Views: 0
Replies: 6
Today 17:33
Forum: New devices and techniques
Starter: normnet
Views: 0
Replies: 25
Go to last post By: John Drew
Today 02:11
Forum: Absolute Beginners Section
Starter: amod
Views: 0
Replies: 19
Today 02:01
Forum: Proton Plus Compiler v3
Starter: mjturner
Views: 0
Replies: 1
+ Reply to Thread
Results 1 to 8 of 8

Thread: ASM Error with USART PIC 16F15325124 days old

  1. #1
    Junior Member Robertux's Avatar
    Join Date
    Nov 2011
    Posts
    24
    Thumbs Up
    Received: 2
    Given: 0
    Total Downloaded
    843.95 MB

    0 Not allowed!

    Default ASM Error with USART PIC 16F15325

    Hello,
    if i try Hserout or Hserout1 I have a ASM error : Symbol not previously defined (PP_TXIF)
    With Hserin or Hserin1 the ASM error is : Symbol not previusly defined (PP_RCIF)
    With Hserout2 or HSerin2not have errors

    Best regards
    Roberto

  2. #2
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,616
    Thumbs Up
    Received: 102
    Given: 146
    Total Downloaded
    2.75 GB

    0 Not allowed!

    Default Re: ASM Error with USART PIC 16F15325

    Show your code, in a recent post a similar error was reported and it was tracked down to a missing next.
    George

  3. #3
    Junior Member Robertux's Avatar
    Join Date
    Nov 2011
    Posts
    24
    Thumbs Up
    Received: 2
    Given: 0
    Total Downloaded
    843.95 MB

    0 Not allowed!

    Default Re: ASM Error with USART PIC 16F15325

    This is my code:

    Device = 16F15325
    Declare Xtal 32

    DelayMS 300

    Config1 FEXTOSC_OFF, RSTOSC_HFINTPLL, CLKOUTEN_OFF, CSWEN_ON, FCMEN_ON
    Config2 MCLRE_ON, PWRTE_OFF, LPBOREN_OFF, BOREN_ON, BORV_LO, ZCD_OFF, PPS1WAY_ON, STVREN_ON
    Config3 WDTCPS_WDTCPS_31, WDTE_OFF, WDTCWS_WDTCWS_7, WDTCCS_SC
    Config4 BBSIZE_BB512, BBEN_OFF, SAFEN_OFF, WRTAPP_OFF, WRTB_OFF, WRTC_OFF, WRTSAF_OFF, LVP_ON
    Config5 CP_OFF

    Symbol Led = PORTC.3
    Symbol Rx1 = PORTC.5
    Symbol Tx1 = PORTC.4

    LATA = 0x00
    LATC = 0x00

    TRISA = 0b11111111
    TRISC = 0b01100000

    ANSELC = 0x00
    ANSELA = 0x00

    WPUA = 0x00
    WPUC = 0x00

    ODCONA = 0x00
    ODCONC = 0x00

    Declare Hserial1_Baud 9600
    Declare Hserial_Clear = On ' Enable Error clearing on received characters


    Main:
    DelayMS 500
    Toggle Led
    HSerOut ["Hello word" , 10 ]
    GoTo Main

  4. #4
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,616
    Thumbs Up
    Received: 102
    Given: 146
    Total Downloaded
    2.75 GB

    0 Not allowed!

    Default Re: ASM Error with USART PIC 16F15325

    Ok so its not that but as a workaround you could create a symbol PP_TXIF = x (where x = what ever should be tested in PIR1 - btfss PIR1,PP_TXIF).

    As you said, HserOut2 compiles ok, creating PP_TX2IF=6. I have to admit I have absolutly no idea what this code is doing and why it does a bit test on PIR1. I suspect there may be issues with the PPI/DEF files.

    If you want to press on you can write your own code to access the EUSART hardware.
    George

  5. #5
    Junior Member Robertux's Avatar
    Join Date
    Nov 2011
    Posts
    24
    Thumbs Up
    Received: 2
    Given: 0
    Total Downloaded
    843.95 MB

    0 Not allowed!

    Default Re: ASM Error with USART PIC 16F15325

    Ok , I also think that the problem is the PPI/DEF
    I have written my code to access to the EUSART and is working fine.
    Best regards
    Roberto

  6. #6
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,616
    Thumbs Up
    Received: 102
    Given: 146
    Total Downloaded
    2.75 GB

    0 Not allowed!

    Default Re: ASM Error with USART PIC 16F15325

    If you have not already raised a anomaly report you should do so, Les loves finding anomalies LOL.
    George

  7. #7
    Junior Member Robertux's Avatar
    Join Date
    Nov 2011
    Posts
    24
    Thumbs Up
    Received: 2
    Given: 0
    Total Downloaded
    843.95 MB

    0 Not allowed!

    Default Re: ASM Error with USART PIC 16F15325

    Sorry , Where I can send a anomaly report?
    Best regards
    Roberto

  8. #8
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,701
    Thumbs Up
    Received: 81
    Given: 20
    Total Downloaded
    3.07 GB

    0 Not allowed!

    Default Re: ASM Error with USART PIC 16F15325

    Quote Originally Posted by Robertux View Post
    Sorry , Where I can send a anomaly report?
    Best regards
    Roberto
    Click here.
    Regards

    Joseph

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 5th June 2018, 06:15 : 0

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