Application Report SLAA137A – February 2004 1 MSP430 Internet Connectivity Andreas Dannenberg MSP430 ABSTRACT Computer communication systems and esp
SLAA137A 10 MSP430 Internet Connectivity Figure 4. Prototype Board With Components Installed Appendix A shows the schematic and Appendix B provides
SLAA137A MSP430 Internet Connectivity 11 4 Software Description This chapter describes the implemented TCP/IP stack, the ethernet driver, and the
SLAA137A 12 MSP430 Internet Connectivity Table 4. Functions of the Ethernet Module Name, Parameters Description void Init8900(void) Initializes im
SLAA137A MSP430 Internet Connectivity 13 Init8900()User ProgramWrite8900(ADD_PORT, PP_RxEvent)(Read8900(DATA_PORT)& RX_OK)?CopyFromFrame8900(.
SLAA137A 14 MSP430 Internet Connectivity • A time-out is exceeded • An error occurs (network error, connection is reset by the opponent) The softwa
SLAA137A MSP430 Internet Connectivity 15 4.2.1 Buffer Memory To work with incoming and outgoing frames, three memory buffers are reserved in the
SLAA137A 16 MSP430 Internet Connectivity Frame Was Received.Individually Addressed? Broadcast?ARP, Opcode REPLY? IP?Process Frame. ICMP? TCP?ProcessI
SLAA137A MSP430 Internet Connectivity 17 To prevent the receive buffer from corruption while receiving data, a handshake mechanism is implemented.
SLAA137A 18 MSP430 Internet Connectivity 4.2.6 Closing a Connection A TCP connection can be closed on different events. Normally this is done either
SLAA137A MSP430 Internet Connectivity 19 Table 5. Compatible Communication Systems Computer System / CPU Operating System, TCP/IP Stack PC / Ath
SLAA137A 2 MSP430 Internet Connectivity 4.1 Ethernet Module...
SLAA137A 20 MSP430 Internet Connectivity Very important for the proper function of the stack is the periodic calling of the function DoNetworkStuff()
SLAA137A MSP430 Internet Connectivity 21 4.3.1 Functions void TCPLowLevelInit(void) This function does a basic setup of the ethernet controller a
SLAA137A 22 MSP430 Internet Connectivity void TCPClose(void) Use this API function to close an open connection. Before disconnecting, the stack ensur
SLAA137A MSP430 Internet Connectivity 23 Bit 7SOCK_ERRORBit 6SOCK_ERRORBit 5SOCK_ERRORBit 4SOCK_ERRORBit 3SOCK_TX_BUF_RELEASEDBit 2SOCK_DATA_AVAIL
SLAA137A 24 MSP430 Internet Connectivity SOCK_TX_BUF_RELEASED (Bit 3) This flag indicates whether the application can change the contents of the tran
SLAA137A MSP430 Internet Connectivity 25 SOCK_ACTIVE?YesNoTCPPassiveOpen()TCPLowLevelInit()Initialize HTTP Server's Flag-RegisterTCPLocalPort
SLAA137A 26 MSP430 Internet Connectivity After initializing some hardware and the stack itself, the local TCP port is set to 80 (default for an HTTP
SLAA137A MSP430 Internet Connectivity 27 <html> <head> <meta http-equiv=“refresh” content=“5”> <title>easyWEB - dynami
SLAA137A 28 MSP430 Internet Connectivity By using the REFRESH statement in the HEAD section of the page’s source code, an Internet browser can be adv
SLAA137A MSP430 Internet Connectivity 29 5 References 1. TCP/IP Running a Successful Network by Washburn, K., Evans, J. Addison Wesley, 1996 2.
SLAA137A MSP430 Internet Connectivity 3 1 Introduction While known for its use in PC networks, the ethernet also offers a robust, well-understood
SLAA137A 30 MSP430 Internet Connectivity Appendix A. Application Schematic
SLAA137A MSP430 Internet Connectivity 31 Appendix B. Parts List Part Name Value / Description Package C1 560 pF SMT 0805 C2, C3, C6, C13, C14,
IMPORTANT NOTICETexas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and otherch
SLAA137A 4 MSP430 Internet Connectivity Table 1. Functions of Internet Reference Model Layers Layer Name Function Example Application layer Conta
SLAA137A MSP430 Internet Connectivity 5 Every network node has its own unique physical address. It is 48 bits long and called the media access con
SLAA137A 6 MSP430 Internet Connectivity 2.4 Internet Control Message Protocol The internet control message protocol (ICMP) provides a mechanism for
SLAA137A MSP430 Internet Connectivity 7 2.6 Hypertext Transfer Protocol The hypertext transfer protocol (HTTP) is an application level protocol.
SLAA137A 8 MSP430 Internet Connectivity MSP430F149 CS8900AD[7..0]A[3..0]IORIOWIsolationTransformerRJ45ConnectorLEDs: Power,Link, LAN20 MHz8 MHzJTAG F
SLAA137A MSP430 Internet Connectivity 9 3.2 Circuit Description The analog circuitry around the CS8900A is built as further described in Resource
Comments to this Manuals