Skip to content

Files

Latest commit

Dec 10, 2018
d966442 · Dec 10, 2018

History

History

ep29_-_Protocol_Stack

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 10, 2018
Dec 8, 2018
Oct 12, 2018
Oct 27, 2018

Design Your Own Computer

Episode 29 : "Protocol Stack"

Welcome to "Design Your Own Computer". In this episode we'll add a network protocol stack.

TCP/IP network protocol stack

We will be using the TCP/IP stack implementation from https://github.com/cc65/ip65. The main requirements of this protocol stack is to have defined three functions: eth_init, eth_rx, and eth_tx. Fortunately, these functions are already implemented in the previous episodes, so it is very simple to get the protocol stack running.

Sample application

I'm using the simple Date65 example application. After reset this application first sends out a DHCP request to obtain an IP address from the local router. Then it sends a DNS lookup for the address pool.ntp.org. Finally, it contacts this server to obtain the current date and time, and then displays this on the VGA output.