assembly error on DT interrupts


+ Reply to Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Apr 2022
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: assembly error on DT interrupts

    Hello Ioannis,
    I have worked with Henrik in the past and he has been most helpful. I'll look again at what he has suggested. If I find the solution, I'll post an answer. If not, well I'll have to see what I can find. I don't mean to raise your ire with my problem.

    Paul

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: assembly error on DT interrupts

    There is no ire...

    Only that it is extremely difficult to guess what you might have wrong. Posting the listing and the in some cases the wiring to your PIC, power supply etc greatly helps nailing the problem.

    Most do not like guessing, me included.

    I do understand that you may have code not willing to show for any reason. But on the other hand how can one help if has no clue?

    Ioannis

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,643


    Did you find this post helpful? Yes | No

    Default Re: assembly error on DT interrupts

    i have a suspicion about what the problem is but I'm not willing to waste time testing random
    hypotheticals just for the chance to learn later that that's not actually your problem.
    why don't you post the code you have tried, in fact rather than posting the complete project
    aim to post the simplest compliable program that shows the problem. code snippets generally don't
    cut it, we need to see the config settings, osc speed, var declarations, port settings, chip type etc....

    dt_ints18 for k80 series works perfectly for both high and low priority interrupts for me
    [note even the chip type is guesswork]





    my stock for the stone soup

  4. #4
    Join Date
    Aug 2011
    Posts
    453


    Did you find this post helpful? Yes | No

    Default Re: assembly error on DT interrupts

    A number of interrupts for the K80 are different than what's in dt_ints-18.bas, so while it might compile it won't work properly without some adjustments.

    As others have said, without seeing the OP's version it's hard to make recommendations.

  5. #5
    Join Date
    Apr 2022
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Re: assembly error on DT interrupts

    Well after hours of searching I decided to look at the file with a hex editor. I found a non-printing character appended to the name of one of the interrupt routines. When I edited the character out, all compiled with no errors. I want to thank everyone for their help with this. I don't know where the character came from, but Henrik pointed this out once before on a different problem which is why I decided to look at this again. Tumbleweed, I did modify the interrupts to work with the K80 and have used this before with another program which is why this left me so confused. Ioannis, thanks for your patience with this. I consider this closed now if only I could find what is sticking random values into the ASCII.

    Thanks,
    Paul

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: assembly error on DT interrupts

    Even a simple text editor could do that damage to the file and have such characters stored in them.

    That is why posting the whole file helps us to help you.

    Anyway, glad you got it working as you expected.

    Ioannis

  7. #7
    Join Date
    May 2013
    Location
    australia
    Posts
    2,643


    Did you find this post helpful? Yes | No

    Default Re: assembly error on DT interrupts

    I found a non-printing character appended to the name of one of the interrupt routines
    what chr did you find ?
    every non-printing character i have tried caused a

    WARNING Line 43: Bad token " ".


    error
    Warning I'm not a teacher

Similar Threads

  1. Assembly Interrupts for PIC 18F27K42
    By dtbarber in forum Code Examples
    Replies: 3
    Last Post: - 7th January 2021, 00:59
  2. Error using DT's Inst Interrupts and PIC BASIC PRO Long
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 6th December 2014, 18:11
  3. Replies: 1
    Last Post: - 30th March 2012, 04:13
  4. LP Instant Interrupts Error
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th December 2009, 09:13
  5. Replies: 2
    Last Post: - 8th February 2009, 05:10

Members who have read this thread : 19

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