Used hardware: Arduino UNO with ethernet shield.
Intention: use an interrupt service routine to handle UDP messages.
Started by changing "Config Tcpip = NOINT" into "Config Tcpip = Int0"
In the same Config added "Int = 1"
Added "Dim _tcp_intflags As Byte" as per Config Tcpip Helpfile.
Added TCP_INT label which serves as ISR.
Somehow the program jumps to TCP_INT label all the time as I do not see a way to clear the reason for the interrupt.
I guess I should read the W5100 interrupt register and before leaving the ISR I should clear the interrupt bits.
But How?
↧