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

Parents Reply Children
  • 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