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

Problem with RL-TCPnet and SPI bus interrupt

hello forum
im using uvision V4.6.0.0 with MDK-ARM professional Version:4.60.0.0
toolchain.
i want to test RL-TCPnet with LPC1768 micro and DP83848C PHY Transiver
(i have designed a board myself as the same as your MCB17xx board).
i have loaded your LEDSwitch Example into my micro and it works fine
and i can send and recive data through UDP socket and i can control LED in my board.
i want to know in this example Ethernet controller works in Polling mode or interrupt mode???
my problem is that im using SPI bus in slave mode with interrupt service routin that i recive some datas from other controller(DSP)continuously and it works too but every time that i recive other packet through LAN my SPI peripheral hangs and dont recive other datas.
could you let me know how can i solve this problem?
im waiting for your answer.
best regards.
thanks.

Parents
  • thanks per
    i solved my problem.
    i set the SPI interrupt priority higher than the Ethernet controller interrupt priority so the SPI didnt hang and now it works fine.according to your statements my SPI CLK rate is 12.5Mhz.
    but master sends data with a 400ns delay(there is 400ns delay between every data) so in slave controller i have enough time to get data and relod it with new data.
    thanks again.

Reply
  • thanks per
    i solved my problem.
    i set the SPI interrupt priority higher than the Ethernet controller interrupt priority so the SPI didnt hang and now it works fine.according to your statements my SPI CLK rate is 12.5Mhz.
    but master sends data with a 400ns delay(there is 400ns delay between every data) so in slave controller i have enough time to get data and relod it with new data.
    thanks again.

Children