I am getting this message on INT1 trigger - Why? *** error 65: access violation at C:0x0013 : no 'execute/read' permission
;---------------------------------- CSEG AT 0 ljmp start
CSEG AT 3 ljmp int_0_trigger
CSEG AT 13 ljmp int_1_trigger
stack equ 30H
;------------------------------------ main SEGMENT CODE RSEG main
start: mov sp, #stack-1 mov IE, #10000101B ; EA=1, EX1=1, EX0=1 mov TCON, #00000101B ; 1T1=1, 1T0=1 mov p0, #0 ; reset counter P0 setb p1.0 ; P1_0 = 1 = ON mov p2, #0 ; reset counter P2 loop: inc p2 sjmp loop ;-------------------------------------------------- int_0 segment code rseg int_0
int_0_trigger: clr p1.0 inc p0 reti ;-------------------------------------------------- int_1 segment code rseg int_1
int_1_trigger: setb p1.0 inc p2 reti
END
See: http://www.keil.com/forum/19254
Also note that there is a 'Search' box near top-right of the page...
why would you want that at 13?
Erik
I am using: External INT0 = Address 0003h (P3.2) and
External INT1 = Address 0013h (P3.3)
Did you notice that there's a difference between the number you give here, and the one that actually shows up in your source code? They only differ by one character, but it's an important one.