We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
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.