This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

interrupt with sdcc

hi members....

i want to use interrupts with sdcc.
i write assembler programms with c at the moment. this work is a part of a project.
i know the souce code for assembler but not the c source. how to accost the interrupt adress?

yours sincelely

nick

Parents Reply Children
  • hi...

    that is never mind. wether sdcc or c51 (keil) , the language is the same.
    my question is applied for the language c and not for sdcc or c51.

  • hi again...

    the customarily interrupt programm with assembler show the following source:

    $IC(sfr.def)
    ORG 4000H //local startadress

    source...................
    ..................
    ........................
    ...................


    ....................

    ORG INTERRUPTADRESS
    source.............
    ......do something.........
    ..............................
    ..............................
    reti //go back to the exit source where the interrupt are actuate.

    END

    -----------------------------------------
    how i use the interrup function with the c language?
    what must declarated in the header file?

    thanks for you help

    yours sincerely

    nick

  • "that is never mind. wether sdcc or c51 (keil) , the language is the same."

    No, it isn't.

    The 'C' programming language has no support for interrupts; support for things like interrupts is always a compiler-specific extension.

    Therefore you do need to go to the SDCC forum!

  • "that is never mind. wether sdcc or c51 (keil) , the language is the same.
    my question is applied for the language c and not for sdcc or c51."

    You're so very, very wrong there.