gres
Full Member level 4
I made that device to check ENC28j60 controller. Function of this device is to take time from time server via SNTP protocol and display it on LCD 2x20 display. System can communicate with any SNTP/NTP server via a few protocols ARP/IP/UDP/SNTP, additionally there is ICMP/ECHO protocol called Ping. To communicate system use 123 port of UDP protocol.
At the display available are:
- hour
- data
- day of the week
- time zone (CET/winter time and CEST/summer time that can be switch in settings)
- time of last actualization
- clock setup
- software version
at settings we can change those parameters:
- clock IP address
- net mask
- gate IP address
- time server IP address
- clock MAC address
- actualization time between 1 to 65535 seconds or manually
- time zone CET/CEST
after power cancel all settings are save
to set the clock we use 4 buttons : P1 P2 P3 P4
buttons functions:
for main screen :
P1- menu setup
P2 – time of last actualization
P3- manual time actualization
P4- software version
For settings screen
P1- next parameter
P2- depends of parameter settings IP and MAC addresses – next position
Actualization period – P3 and P4 x100
P3 - +1/+100
P4- -1/-100
After menu closed settings are saved in EEPROM and time actualization.