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

USB and Timer interrupts

hi everyone,
I am using lpc2378 processor. I am using timer interrupt at highest priority and USB in HID interrupt. But it does not work properly.

Iqbal

  • What is happening here lately? Is this a phenomenon related to the SMS generation of what!? People tend to ask for help but do not provide ANY information whatsoever. what did you do, what did you see, what have you read so far...?! Where is the spirit of science? Where is the love for the profession/discipline? Where is the excitement? What will happen to our societies? How will we look like in, say, 5 years time when all these people hit the job market? What will happen to product safety? to problem solving oriented thinking?

  • Only the problem is this it does not working properly, USB interrupts interfer in timer interrupt, or I can say that when USB Interrupt is being executed it doesnt allow timer interrupt to execute, priority doesnt matters at all. Moreover the concept of IENABLE and IDISABLE has also been verified. It doesnt make that much difference.

  • but this is the default behavior of your chip, unless you enable nested interrupts! and you still did not explain in detail what does not work!

  • Nothing, in timer interrupt I am just toggling Port 1 at 8 KHz and in USB routine I am sending data from PC to processor and then back to the PC. But toggling at 8 KHz is being affected. I think I have enabled nesting of interrupts by using IENABLE and IDISABLE, is there any other way to do this task?

  • > in timer interrupt I am just toggling Port 1 at 8 KHz

    The times have a function to toggle output port on match. Using this function and reset on match, you get 50% duty waveform without any firmware intervention.
    Also, PWM module is available for waveform generation.

    When you need precise timing, consider on the hardware functions, first.

    Tsuneo