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

Timer Interrupt based UDP

I am using ARM7 LPC2478 with RL-TCPNET ethernet stack. I want to send a particular data (which I am acquiring from an FPGA) over UDP/IP with timer intervals of let's say 100msec. So I am trying to implement a timer interrupt of 100msec and then in the ISR I plan to write the UDP/IP sending program. I have done the UDP/IP sending part successfully but I am stuck with generating the 100msec timer interrupt and then writing the UDP sending ISR. A program code for generating the 100msec timer will be appreciated

Parents
  • It is rather trivial - if you read the user manual for the chip - to implement a timer ISR.

    But no - the TCP/IP stack doesn't support multi-threading or mixing between main thread and ISR.

    So your timer ISR can raise an event or set a flag. And a dedicated thread (if you use an RTOS) can react to event and send the data. Or the main loop can poll the flag and send the data in case you run without an RTOS.

Reply
  • It is rather trivial - if you read the user manual for the chip - to implement a timer ISR.

    But no - the TCP/IP stack doesn't support multi-threading or mixing between main thread and ISR.

    So your timer ISR can raise an event or set a flag. And a dedicated thread (if you use an RTOS) can react to event and send the data. Or the main loop can poll the flag and send the data in case you run without an RTOS.

Children
No data