Error using DT's Inst Interrupts and PIC BASIC PRO Long


Closed Thread
Results 1 to 7 of 7
  1. #1

    Default Error using DT's Inst Interrupts and PIC BASIC PRO Long

    I'm using a 18F14K22m running at 16 mhz, internal osc. Also using DT's instant Interrupts and AllDigital

    Using PBP 2.60A

    The program works fine - - I want to use PB Pro Long, for some Long variables. I get an error:
    Error: Macro Div32? not found in macro file.

    I'm using the Div32 in a temperature conversion routine, with an DS18B20, and everything is fine.
    The temperature reads correctly. I won't be using any long variables in that routine.

    I declared a large variable, and tried to display it using a simple serout2 to display the value, and it seems to be ignored.

    Any Comments . .

    Ken

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,597


    Did you find this post helpful? Yes | No

    Default Re: Error using DT's Inst Interrupts and PIC BASIC PRO Long

    If you're using Microcode Studio, there's a setting for PBPL, you want that enabled.

    Robert

    Edit: look at this,

    http://www.picbasic.co.uk/forum/show...0082#post90082

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: Error using DT's Inst Interrupts and PIC BASIC PRO Long

    Thanks Robert -

    I have PBPL enabled (the box is checked)

    Ken

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,597


    Did you find this post helpful? Yes | No

    Default Re: Error using DT's Inst Interrupts and PIC BASIC PRO Long

    Is it working?

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: Error using DT's Inst Interrupts and PIC BASIC PRO Long

    Div32 is not used with longs as all division is 32 bit using longs
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: Error using DT's Inst Interrupts and PIC BASIC PRO Long

    DT's Interrupts have nothing to do with this problem.

    It seems that whenever a div32 is used with longs, I get the error.

    To simplify things, I am using Bruce's temperature conversion routine, reading a DS18B20, and it uses a DIV32 statement.
    This all works fine, except when I want to use LONGS for another variable elsewhere in the program, then I get the error.
    If I comment out the DIV32, there is not a compile error, but of course the temperature is screwed up.
    I can display the LONG variable just fine in either case.

    Yes, I do have the LONG box selected.

    I guess I just will not attempt to use a LONG variable with a program that uses DIV32.

    Ken

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: Error using DT's Inst Interrupts and PIC BASIC PRO Long

    Found the problem - - RTFM - -

    Bottom of page 40 of the PBP manual

    Ken

Similar Threads

  1. DT's Instant Interrupts
    By andywpg in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st June 2014, 18:01
  2. Question about DT's Interrupts
    By tazntex in forum General
    Replies: 6
    Last Post: - 15th June 2010, 01:36
  3. DT inst. interrupt & Timer0 with pic 16F88
    By aratti in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 17th December 2009, 21:23
  4. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 20:48
  5. Replies: 5
    Last Post: - 17th January 2006, 19:26

Members who have read this thread : 1

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