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

I need help with some interrupts

HI i have to make a project for my school. So i decided to do a black board cleaning mashine. For that i use a Infineon 80C535 microcontroler. I wanted to use 4 interrupts.
Port 1^0 ; 1^4, 3^2; 3^3. The interrupt on the ports 3^2 and 3^3 work but not under the interrupt that is told in the users manual. The other interrupts dont work and after using them the programm crashs. I dont know what i did wrong. But im not very experienced with such programms. I dont know what i should do now and we ve got holidays now so i cant ask my teacher. Plz help me. I dont know wich informations u need to help.
But plz help me!

Parents
  • Before worrying about these details, has your project built successfully with no errors or warnings? Yes there are no warnings or errors.
    Are you sure that your hardware is all correct & working properly? Hm yes i think it should work. My Board works like the ones i used in school and my 2nd board works also.

    If i set both interrupts from high to low my main program stops and the interrupt program starts but imo with port 3^2 int0 should be used. But when i tested ist int2 was used. ( hm its difficult to explain but i hope you can understand it)

    No i didnt used the simulator! I ll do it tomorrow.

    Hm what do you mean with tools?

    Thx for this first reply.

Reply
  • Before worrying about these details, has your project built successfully with no errors or warnings? Yes there are no warnings or errors.
    Are you sure that your hardware is all correct & working properly? Hm yes i think it should work. My Board works like the ones i used in school and my 2nd board works also.

    If i set both interrupts from high to low my main program stops and the interrupt program starts but imo with port 3^2 int0 should be used. But when i tested ist int2 was used. ( hm its difficult to explain but i hope you can understand it)

    No i didnt used the simulator! I ll do it tomorrow.

    Hm what do you mean with tools?

    Thx for this first reply.

Children