DT_INTS and 18F26k22


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Location
    Ohio, USA
    Posts
    57

    Default DT_INTS and 18F26k22

    Hi all, I am using PIC 18F26K22 and INCLUDE "DT_INTS-18.bas"

    I get error: Symbol not previously defined (INT_ENTRY_H)

    Any clues?

    Thanks

    Mike

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,389


    Did you find this post helpful? Yes | No

    Default Re: DT_INTS and 18F26k22

    Any clues?
    any hints like :-


    pbp ver = ?
    dt_ints ver= ?
    interrupt your trying to create = ?
    code ?


    or do we have to guess ?
    Warning I'm not a teacher

  3. #3
    Join Date
    Jul 2009
    Location
    Ohio, USA
    Posts
    57


    Did you find this post helpful? Yes | No

    Default Re: DT_INTS and 18F26k22

    Terribly Sorry Richard, though it might be a fuse setting

    PBP ver = 2.60A
    DT_INTS ver = 3.3

    So far I have just a debug statement and a high/ low/ pause on PORTB.2
    I added the Include and it threw the error

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,389


    Did you find this post helpful? Yes | No

    Default Re: DT_INTS and 18F26k22

    if you don't create at least one valid interrupt no interrupt handler is created
    hence
    Symbol not previously defined (INT_ENTRY_H) error occurs

    the dt_ints include has nothing to work with and just can't cope
    Warning I'm not a teacher

  5. #5
    Join Date
    Jul 2009
    Location
    Ohio, USA
    Posts
    57


    Did you find this post helpful? Yes | No

    Default Re: DT_INTS and 18F26k22

    Thank you for cluing me in

  6. #6
    Join Date
    Jul 2009
    Location
    Ohio, USA
    Posts
    57


    Did you find this post helpful? Yes | No

    Default Re: DT_INTS and 18F26k22

    I have had some issues with the different versions of PBP so I upgraded to Vs PBPX 3.1.0.4

    This program compiles just fine but it does not enter the interrupt on RX
    Code:
        INCLUDE "modedefs.bas"
        include "ALLDIGITAL.pbp"
        INCLUDE "C:\PBP\DT_INTS-18.bas"     ; Base Interrupt System
        INCLUDE "C:\PBP\ReEnterPBP-18.bas"     ; Include if using PBP interrupts
           
        Define PULSIN_MAX 1000
        DEFINE HSER_RCSTA 90h   'Hser receive status init
        DEFINE HSER_TXSTA 24h   'Hser transmit status init
        DEFINE HSER_BAUD 9600  'Hser baud rate
        DEFINE HSER_SPBRG 25
        DEFINE HSER_CLROERR 1 
        DEFINE OSC 4
        OSCCON =$D2 'clock speed
         mem1 var byte  
    
    ASM
    INT_LIST  macro    ; IntSource,        Label,     Type, ResetFlag?
            INT_Handler    RX1_INT,    _read_serial,   PBP,  yes
            
    
       endm
        INT_CREATE             ; Creates the interrupt processor
    ENDASM   
    
    @  INT_ENABLE   RX1_INT     ; enable external (RX) interrupts 
    
       
     MAIN:
     
     SEROUT2 PORTB.0 ,16468,["here",cr,cr]
    
     pause 500
    GOTO MAIN  
     
     read_serial:
     hserin 250 , NoRS232,[mem1,mem1]
     
     serout2 PORTB.0,16468,["got it",cr]
     Pause 1000
    
    @ INT_RETURN 
    
    NoRS232:
    
    serout2 PORTB.0,16468,["No rs232",cr]
    
    @  INT_RETURN
    The exact same code runs in the 18F1320 except the OSCCON is $60 for the 18F1320 and $D2 for the 18F26K22.

    Does anyone know where I might be needing to look?


    Mike

Similar Threads

  1. DT_Ints w/18F26K22 stop if incorrect baud rate
    By Dave in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 8th September 2017, 13:54
  2. PROBLEM ICD 18F26K22 no work
    By FRAN200 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 4th July 2016, 12:55
  3. 18F26K22 slow startup
    By Tobias in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th January 2014, 22:10
  4. Compiling for 18F26K22 - Does anyone have a solution for me?
    By Balachandar in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th August 2012, 12:49
  5. Anyone found a Bootloader for 18F26K22?
    By Dave in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 11th August 2011, 18:23

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