Casio EG-800U - Cassiopeia - Win CE 3.0 150 MHz Specifications

Browse online or download Specifications for Networking Casio EG-800U - Cassiopeia - Win CE 3.0 150 MHz. Casio EG-800U - Cassiopeia - Win CE 3.0 150 MHz Specifications User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 32
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
Application Report
SLAA137A February 2004
1
MSP430 Internet Connectivity
Andreas Dannenberg MSP430
ABSTRACT
Computer communication systems and especially the Internet are playing a rapidly
increasingly important role in our everyday environment. But today this is not only a
domain of personal computers or workstations. More and more, it makes its way to
smaller network nodes, too. Imagine applications that are able to control hardware via a
standard Internet browser, to transmit and visualize the state of sensors or automatically
generate and send E-mails on the occurrence of special events (for example, for security
purposes).
This application report describes in detail the implementation of an embedded Web server
based on the MSP430 ultralow-power microcontroller series from Texas Instruments. The
solution consists of both hardware (schematic, parts list) and software (C source). An
ethernet LAN controller offers the physical connection to the Internet. A downsized
TCP/IP protocol stack is used. Its functionality is encapsulated by an easy-to-use
application programming interface (API). By using this API, creating new applications or
modifying existing ones becomes an easy task. As an application example, a dynamic
HTTP server is implemented.
Contents
1 Introduction........................................................................................................................................3
2 Important Protocol Basics................................................................................................................3
2.1 Ethernet........................................................................................................................................4
2.2 Address Resolution Protocol .......................................................................................................5
2.3 Internet Protocol...........................................................................................................................5
2.4 Internet Control Message Protocol..............................................................................................6
2.5 Transmission Control Protocol ....................................................................................................6
2.6 Hypertext Transfer Protocol.........................................................................................................7
3 Hardware Description........................................................................................................................7
3.1 Interfacing to the LAN Controller .................................................................................................8
3.2 Circuit Description........................................................................................................................9
3.3 Connection to the Network ........................................................................................................10
4 Software Description.......................................................................................................................11
Amiga is a trademark of Amiga, Inc.
Apple and Macintosh are trademarks of Apple Computer, Inc.
Athlon is a trademark of Advanced Micro Devices, Inc.
Cassiopeia is a trademark of Casio Keisanki Kabushiki Kaisha DBA Casio Computer Co., Ltd., Japan
Crystal is a trademark of Crystal Semiconductor Corporation.
Cirrus is a trademark of Cirrus Logic, Inc.
Microsoft and Internet Explorer are a trademarks of Microsoft Corporation.
Netmon is a trademark of Systems Enhancement Corporation.
Netscape Navigator is a trademark of Netscape Communications Corporation.
Open Transport is a trademark of Information Management Company.
Pentium is a trademark of Intel Corporation.
Other trademarks are the property of their respective owners.
ZIP file: http://www.ti.com/lit/zip/slaa137
Page view 0
1 2 3 4 5 6 ... 31 32

Summary of Contents

Page 1 - MSP430 Internet Connectivity

Application Report SLAA137A – February 2004 1 MSP430 Internet Connectivity Andreas Dannenberg MSP430 ABSTRACT Computer communication systems and esp

Page 2

SLAA137A 10 MSP430 Internet Connectivity Figure 4. Prototype Board With Components Installed Appendix A shows the schematic and Appendix B provides

Page 3 - 2 Important Protocol Basics

SLAA137A MSP430 Internet Connectivity 11 4 Software Description This chapter describes the implemented TCP/IP stack, the ethernet driver, and the

Page 4 - 2.1 Ethernet

SLAA137A 12 MSP430 Internet Connectivity Table 4. Functions of the Ethernet Module Name, Parameters Description void Init8900(void) Initializes im

Page 5 - 2.3 Internet Protocol

SLAA137A MSP430 Internet Connectivity 13 Init8900()User ProgramWrite8900(ADD_PORT, PP_RxEvent)(Read8900(DATA_PORT)& RX_OK)?CopyFromFrame8900(.

Page 6

SLAA137A 14 MSP430 Internet Connectivity • A time-out is exceeded • An error occurs (network error, connection is reset by the opponent) The softwa

Page 7 - 3 Hardware Description

SLAA137A MSP430 Internet Connectivity 15 4.2.1 Buffer Memory To work with incoming and outgoing frames, three memory buffers are reserved in the

Page 8

SLAA137A 16 MSP430 Internet Connectivity Frame Was Received.Individually Addressed? Broadcast?ARP, Opcode REPLY? IP?Process Frame. ICMP? TCP?ProcessI

Page 9 - 3.2 Circuit Description

SLAA137A MSP430 Internet Connectivity 17 To prevent the receive buffer from corruption while receiving data, a handshake mechanism is implemented.

Page 10 - SLAA137A

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

Page 11 - 4 Software Description

SLAA137A MSP430 Internet Connectivity 19 Table 5. Compatible Communication Systems Computer System / CPU Operating System, TCP/IP Stack PC / Ath

Page 12

SLAA137A 2 MSP430 Internet Connectivity 4.1 Ethernet Module...

Page 13 - 4.2 TCP/IP Module

SLAA137A 20 MSP430 Internet Connectivity Very important for the proper function of the stack is the periodic calling of the function DoNetworkStuff()

Page 14

SLAA137A MSP430 Internet Connectivity 21 4.3.1 Functions void TCPLowLevelInit(void) This function does a basic setup of the ethernet controller a

Page 15 - 4.2.2 Global Variables

SLAA137A 22 MSP430 Internet Connectivity void TCPClose(void) Use this API function to close an open connection. Before disconnecting, the stack ensur

Page 16

SLAA137A MSP430 Internet Connectivity 23 Bit 7SOCK_ERRORBit 6SOCK_ERRORBit 5SOCK_ERRORBit 4SOCK_ERRORBit 3SOCK_TX_BUF_RELEASEDBit 2SOCK_DATA_AVAIL

Page 17 - 4.2.5 Data Transfer

SLAA137A 24 MSP430 Internet Connectivity SOCK_TX_BUF_RELEASED (Bit 3) This flag indicates whether the application can change the contents of the tran

Page 18 - 4.2.6 Closing a Connection

SLAA137A MSP430 Internet Connectivity 25 SOCK_ACTIVE?YesNoTCPPassiveOpen()TCPLowLevelInit()Initialize HTTP Server's Flag-RegisterTCPLocalPort

Page 19 - 4.3 API

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

Page 20

SLAA137A MSP430 Internet Connectivity 27 <html> <head> <meta http-equiv=“refresh” content=“5”> <title>easyWEB - dynami

Page 21 - 4.3.1 Functions

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

Page 22 - 4.3.2 Flags

SLAA137A MSP430 Internet Connectivity 29 5 References 1. TCP/IP Running a Successful Network by Washburn, K., Evans, J. Addison Wesley, 1996 2.

Page 23

SLAA137A MSP430 Internet Connectivity 3 1 Introduction While known for its use in PC networks, the ethernet also offers a robust, well-understood

Page 24 - 4.4.1 Software Description

SLAA137A 30 MSP430 Internet Connectivity Appendix A. Application Schematic

Page 25

SLAA137A MSP430 Internet Connectivity 31 Appendix B. Parts List Part Name Value / Description Package C1 560 pF SMT 0805 C2, C3, C6, C13, C14,

Page 26

IMPORTANT NOTICETexas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and otherch

Page 27

SLAA137A 4 MSP430 Internet Connectivity Table 1. Functions of Internet Reference Model Layers Layer Name Function Example Application layer Conta

Page 28

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

Page 29 - 5 References

SLAA137A 6 MSP430 Internet Connectivity 2.4 Internet Control Message Protocol The internet control message protocol (ICMP) provides a mechanism for

Page 30

SLAA137A MSP430 Internet Connectivity 7 2.6 Hypertext Transfer Protocol The hypertext transfer protocol (HTTP) is an application level protocol.

Page 31 - Appendix B. Parts List

SLAA137A 8 MSP430 Internet Connectivity MSP430F149 CS8900AD[7..0]A[3..0]IORIOWIsolationTransformerRJ45ConnectorLEDs: Power,Link, LAN20 MHz8 MHzJTAG F

Page 32 - IMPORTANT NOTICE

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

No comments