Today 10:19
Forum: Website / Forum Issues
Starter: jwb
Views: 0
Replies: 0
Today 09:44
Forum: Proton Users File Server
Starter: Les
Views: 0
Replies: 1
Yesterday 21:49
Forum: The Lounge
Starter: Les
Views: 0
Replies: 5
Yesterday 18:33
Forum: Absolute Beginners Section
Starter: amod
Views: 0
Replies: 12
Yesterday 17:31
Forum: Proton Users File Server
Starter: Les
Views: 0
Replies: 1
+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Junior Member Rox's Avatar
    Join Date
    Sep 2014
    Posts
    11
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    6.81 MB

    0 Not allowed!

    Default Re: 16F15345 Won't Assemble (but does compile)

    i have the same issue with uart before with 16F1835, and that what i did, and it solves the problem.

    also make sure that the rx interrupt is enabled for your pic its.. PIE3.7 = 1

  2. #12
    Member tumbleweed's Avatar
    Join Date
    May 2011
    Posts
    364
    Thumbs Up
    Received: 64
    Given: 0
    Total Downloaded
    118.16 MB

    0 Not allowed!

    Default Re: 16F15345 Won't Assemble (but does compile)

    You shouldn't have to unlock the PPS or enable any of the PIE settings.

    It seems that when you use HRSIN and specify a timeout it's not looking in the proper register for RCIF... it's assuming PIR1 instead of PIR3.
    If you skip the timeout it looks in the proper spot, so try the simple form of HRSIN and see if it works.

  3. #13
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,770
    Thumbs Up
    Received: 151
    Given: 152
    Total Downloaded
    3.03 GB

    0 Not allowed!

    Default Re: 16F15345 Won't Assemble (but does compile)

    Just a wild guess but if PPS is involved sit in a loop transmitting and manually check any possible pin. Sounds pretty stupid but it's worth the ten minutes it will take.
    George

  4. #14
    Junior Member mjturner's Avatar
    Join Date
    Dec 2003
    Posts
    70
    Thumbs Up
    Received: 8
    Given: 0
    Total Downloaded
    392.84 MB

    0 Not allowed!

    Default Re: 16F15345 Won't Assemble (but does compile)

    Quote Originally Posted by tumbleweed View Post
    You shouldn't have to unlock the PPS or enable any of the PIE settings.

    It seems that when you use HRSIN and specify a timeout it's not looking in the proper register for RCIF... it's assuming PIR1 instead of PIR3.
    If you skip the timeout it looks in the proper spot, so try the simple form of HRSIN and see if it works.
    Thanks - I'll give it a go. The software serial in is also broken when it comes to using the WAIT directive. It simply didn't work as documented, so had to write my own method. Thanks for investigating the issue - I'll have a play around with it and see what does and doesn't work. Although I'm not sure what to do if I can't use the timeout feature - I don't want it blocking or that'll freeze my program potentially.

  5. #15
    Member tumbleweed's Avatar
    Join Date
    May 2011
    Posts
    364
    Thumbs Up
    Received: 64
    Given: 0
    Total Downloaded
    118.16 MB

    0 Not allowed!

    Default Re: 16F15345 Won't Assemble (but does compile)

    I can think of a few nasty kludges, but since you had to define some of the register symbols it looks like the libraries need some work for that device.

    One thing you could try as an experiment is to change the location of PIR1 in P16F15345.ppi
    Code:
    ;PIR1 EQU 0X070D
    PIR1 EQU 0X070F
    PIR2 EQU 0X070E
    PIR3 EQU 0X070F
    That'll make it look in PIR3 when it references PIR1, so UART1 RX should work. Of course, that'll break other things that really ARE in PIR1 so it's not really a fix.

  6. #16
    Junior Member mjturner's Avatar
    Join Date
    Dec 2003
    Posts
    70
    Thumbs Up
    Received: 8
    Given: 0
    Total Downloaded
    392.84 MB

    0 Not allowed!

    Default Re: 16F15345 Won't Assemble (but does compile)

    Thanks for the ideas. I guess it is up to Les to really fix this issue then.... :/

    Quote Originally Posted by tumbleweed View Post
    I can think of a few nasty kludges, but since you had to define some of the register symbols it looks like the libraries need some work for that device.

    One thing you could try as an experiment is to change the location of PIR1 in P16F15345.ppi
    Code:
    ;PIR1 EQU 0X070D
    PIR1 EQU 0X070F
    PIR2 EQU 0X070E
    PIR3 EQU 0X070F
    That'll make it look in PIR3 when it references PIR1, so UART1 RX should work. Of course, that'll break other things that really ARE in PIR1 so it's not really a fix.

  7. #17
    Junior Member mjturner's Avatar
    Join Date
    Dec 2003
    Posts
    70
    Thumbs Up
    Received: 8
    Given: 0
    Total Downloaded
    392.84 MB

    0 Not allowed!

    Default Re: 16F15345 Won't Assemble (but does compile)

    So a new issue... I just turned on the watchdog timer, and now i'm getting Symbol not previously defined (WDTCON) when it gets to the assemble stage.

    All I've done is enable the watchdog time and dropped from sleep / snooze commands in. This compiler is getting really frustrating...

    I've added the line WDTCON EQU 0x080C to the PPI file.... but the snooze is not working as intended, possibly because the registers are wrong? A snooze of 6 is supposed to sleep for 1.152 seconds, but it is happening much faster than that. So it is totally messing my program timings up!
    Last edited by mjturner; 26th August 2018 at 12:21.

  8. #18
    Junior Member mjturner's Avatar
    Join Date
    Dec 2003
    Posts
    70
    Thumbs Up
    Received: 8
    Given: 0
    Total Downloaded
    392.84 MB

    0 Not allowed!

    Default Re: 16F15345 Won't Assemble (but does compile)

    Gave up on using the built in snooze/sleep commands. Ended up just loading the register directly and calling the assembler command directly.

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Compiles - but then fails to assemble
    By mjturner in forum Proton Plus Compiler v3
    Replies: 6
    Last Post: 11th February 2018, 16:00
  2. Proton full editio won't compile
    By LEDfan in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 31st December 2011, 17:03
  3. Why won't this compile?
    By g6osv in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 5th October 2010, 21:10
  4. Conditional Compile/Assemble commands
    By johngb in forum Wish List / Product Feedback
    Replies: 2
    Last Post: 24th November 2004, 11:24

Members who have read this thread since 10th September 2018, 18:13 : 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