3 Replies Latest reply on Apr 25, 2016 12:32 AM by rahb

    PSOC 4 Timer ISR..

    user_11138733

      Hello, I am trying to run a timer isr routine but never get executed. Timer is is set up with a 100KHz clock, Terminal Count of 1000, and interrupt output connected to isr. ISR is set to LEVEL. Includes and code in the isr.c file

         

      main(){

         

          Timer_1_Start()

         

          isr_Timer_Start()

         

          AMux_1_Start()

         

          CyGlobalIntEnable

         

          ....

         

       

         

      Code compile and programs but isr routine never gets called. What am I missing?

        • 1. Re: PSOC 4 Timer ISR..
          user_1377889

          I cannot see your interrupt handler. Can you post your complete project, so that we all can have a look at all of your settings? To do so, use
          Creator->File->Create Workspace Bundle (minimal)
          and attach the resulting file.

             

          and better set your isr from "level" to "rising edge".

             

          When you get the handler called, do not forget to clear the interrupt in your timer by reading the status.

             

           

             

          Bob

          • 2. Re: PSOC 4 Timer ISR..
            user_11138733

            I ended up using an existing timer example and porting my code and design to it. Still not sure why my original design did not work with interrupts. I did everything from Cypress examples and documentation.

               


            Thks!

            • 3. Re: PSOC 4 Timer ISR..
              rahb

              Hello,

                 

              Could you please create the tech support case in cypress.com website and attach the complete project, so it will help us to debug the project?

                 

              Thanks

                 

              Ramesh B