Hi... trying to make a test code to see how it works.
First Iīve made a single tachometer. Worked fine, but when tryied to port then to use interrupts (with Darrel Taylor helps) since the code will make another things in future Iīve get
errors when compilingCode:Error c:\proga~1\pbp\pbppic14.lib 1160: [225] Undefined Symbol 'INT_ENTRY' Error c:\proga~1\pbp\pbppic14.lib 1162: [225] Undefined Symbol 'INT_ENTRY'
MPASM box checked and PIC is 16F887.
Just in case, follows the code:
Code:'@ device pic16F887, HS_OSC, WDT_OFF, LVP_OFF include "DT_INTS-14.bas" ' Base Interrupt System ' set Crystal MHZ DEFINE OSC 20 ' Set LCD DEFINE LCD_DREG PORTB ' Set starting Data bit (0 or 4) if 4-bit bus DEFINE LCD_DBIT 0 ' Set LCD Register Select port DEFINE LCD_RSREG PORTB ' Set LCD Register Select bit DEFINE LCD_RSBIT 4 ' Set LCD Enable port DEFINE LCD_EREG PORTB ' Set LCD Enable bit DEFINE LCD_EBIT 5 ' Set LCD bus size (4 or 8 bits) DEFINE LCD_BITS 4 ' Set number of lines on LCD DEFINE LCD_LINES 2 ' Set command delay time in us DEFINE LCD_COMMANDUS 2000 ' Set data delay time in us 'DEFINE LCD_DATAUS 50 symbol rpmIn = portd.0 rpm VAR word :main CM1CON0 = 0 ' Comparators off CM2CON0 = 0 ' Comparators off ANSEL = 0 ANSELH = 0 ' Configure other AN pins as digital I/O output PORTB INPUT PORTD.0 PORTC = 0 TRISC = 0 LCDOUT $FE, 1, " prdTURBO " LCDOUT $FE, $C0, " FUEL COMPUTER " pause 2000 LCDOUT $FE, 1 while 1=1 COUNT rpmIn, 10, rpm LCDOUT $FE,1, "PULS/S ", DEC(RPM) LCDOUT $FE, $C0, "RPM ", DEC(rpm)*60 wend
Iīm a dumb ass newbie so please donīt blame me if this is a stupid question but:
Wath I missing to make DTīs Interrupts to compile?
Best regards,
Mauro
Bookmarks