28j60 + pic 18f452. Test program does not work. Help

General discussion on mikroC.
Author
Message
saas123qa
Posts: 9
Joined: 27 Nov 2011 19:05

Re: 28j60 + pic 18f452. Test program does not work. Help

#16 Post by saas123qa » 06 Dec 2011 21:18

Thanks for help, but

I think there is a misunderstanding , my question: what is the fuction of SPI_Ethernet_userTimerSec and what is the effect on Spi_Ethernet_sendUDP

Thanks

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: 28j60 + pic 18f452. Test program does not work. Help

#17 Post by janko.kaljevic » 07 Dec 2011 11:04

Hello,

Global library variable SPI_Ethernet_userTimerSec is used to keep track of time for all client implementations (ARP, DNS, UDP and DHCP). It is user responsibility to increment this variable each second in it's code if any of the clients is used.

This means if MAC address does not get resolved during call of Spi_Ethernet_sendUDP and this variable does not get incremented, your program will stay locked trying to reach timeout.

Best regards.

Post Reply

Return to “mikroC General”