- No category
advertisement
5.2.5 LCD/Keypad Sample Programs Showing TCP/IP Features
The following sample programs, found in the
TCPIP
subdirectory in
SAMPLES/LCD_Keypad/122x32_1x7
, are targeted at the Ethernet-enabled versions of the OP6800. Remember to configure the IP address, netmask, and gateway as indicated in the sample programs.
•
MBOXDEMO.C
—This program implements a web server that allows Web e-mail messages to be entered that are then shown on the LCD display. The keypad allows you to scroll within messages, flip to other e-mails, mark messages as read, and delete e-mails.
When a new e-mail arrives, an LED turns on, and turns off once the message has been marked as read. A log of all e-mail actions is kept, and can be displayed in the Web browser. All current e-mails can also be read with the Web browser.
When using
MBOXDEMO.C
, connect the OP6800 and a PC (or other device with a Web
Browser) to an Ethernet. If you connect the PC and the OP6800 directly, be sure to use a crossover Ethernet cable; straight-through Ethernet cables and a hub may be used instead.
•
TCP_RESPOND.C
—This program and
TCP_SEND.C
are executed on two separate single-board computers to demonstrate how the two boards communicate with each other.
Use
PCSEND.EXE
on the PC console side at the command prompt if you do not have a second board.
PCSEND.EXE
is located with source code in the
SAMPLES/LCD_Keypad/Windows
directory.
TCP_RESPOND.C
waits for a message from another single-board computer. The message received is displayed on the LCD, and you may respond by pressing a key on the keypad. The response is then sent to the remote single-board computer.
•
TCPSEND.C
—This program and
TCP_RESPOND.C
are executed on two separate singleboard computers to demonstrate how the two boards communicate with each other. Use
PCRESPOND.EXE
on the PC console side at the command prompt if you do not have a second board.
PCRESPOND.EXE
is located with source code in the
SAMPLES/LCD_Keypad/Windows
directory.
When a key on the keypad is pressed, a message associated with that key is sent to a specified destination address and port. The destination then responds to that message.
The response is displayed on the LCD.
Note that only the
LEFT
and
UP
scroll keys are set up to cause a message to be sent.
When using
TCPSEND.C
and
TCP_RESPOND.C
, connect the OP6800 and the other singleboard computer to an Ethernet. If you connect the them directly, be sure to use a crossover
Ethernet cable; straight-through Ethernet cables and a hub may be used instead.
40
MiniCom (OP6800)
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 5 1.1 Description
- 5 1.2 Features
- 6 1.3 Development and Evaluation Tools
- 6 1.3.1 Tool Kit
- 7 1.3.2 Software
- 8 1.4 CE Compliance
- 9 1.4.1 Design Guidelines
- 9 1.4.2 Interfacing the OP6800 to Other Devices
- 11 2.1 Connections
- 14 2.2 Demonstration Program on Power-Up
- 14 2.3 Display Contrast Adjustment
- 15 2.4 Programming Cable Connections
- 16 2.5 Installing Dynamic C
- 16 2.6 Starting Dynamic C
- 17 2.7 PONG.C
- 17 2.8 Where Do I Go From Here?
- 20 3.1 Pinouts
- 21 3.2 Digital I/O
- 21 3.2.1 Digital Inputs
- 22 3.2.2 Digital Outputs
- 23 3.3 Serial Communication
- 23 3.3.1 RS
- 23 3.3.2 RS
- 25 3.3.3 Programming Port
- 26 3.3.4 Ethernet Port (OP6800 models only)
- 27 3.4 Memory
- 27 3.4.1 SRAM
- 27 3.4.2 Flash Memory
- 28 3.5 Keypad Labeling
- 32 4.1 Programming Cable
- 32 4.1.1 Switching Between Program Mode and Run Mode
- 32 4.1.2 Detailed Instructions: Changing from Program Mode to Run Mode
- 32 4.1.3 Detailed Instructions: Changing from Run Mode to Program Mode
- 33 4.2 OP6800 Libraries
- 34 4.3 Sample Programs
- 34 4.3.1 Board ID
- 34 4.3.2 Demonstration Board
- 35 4.3.3 Digital I/O
- 35 4.3.4 Serial Communication
- 35 4.3.5 LCD/Keypad Module Sample Programs
- 36 4.3.6 TCP/IP Sample Programs
- 37 4.4 Font and Bitmap Converter
- 39 5.1 TCP/IP Connections
- 41 5.2 TCP/IP Sample Programs
- 41 5.2.1 How to Set IP Addresses in the Sample Programs
- 42 5.2.2 How to Set Up your Computer’s IP Address for a Direct Connection
- 43 5.2.3 Run the PINGME.C Demo
- 43 5.2.4 Running More Demo Programs With a Direct Connection
- 44 5.2.5 LCD/Keypad Sample Programs Showing TCP/IP Features
- 45 5.3 Where Do I Go From Here?
- 47 6.1 Installation Guidelines
- 48 6.2 Mounting Instructions
- 48 6.2.1 Bezel-Mount Installation
- 52 A.1 Electrical and Mechanical Specifications
- 55 A.2 Conformal Coating
- 56 A.3 Jumper Configurations
- 57 A.4 Use of Rabbit 2000 Parallel Ports
- 59 A.5 I/O Address Assignments
- 61 B.1 Power Supplies
- 62 B.2 Batteries and External Battery Connections
- 62 B.2.1 Battery-Backup Circuit
- 63 B.2.2 Power to VRAM Switch
- 63 B.2.3 Reset Generator
- 64 B.3 Chip Select Circuit
- 66 C.1 Mechanical Dimensions and Layout
- 67 C.2 Power Supply
- 69 C.3 Using the Demonstration Board
- 74 D.1 Board Initialization (OP68xx.LIB)
- 75 D.2 Digital I/O (OP68xx.LIB)
- 76 D.3 Serial Communication (OP68xx.LIB)
- 78 D.4 LEDs (OP68xx.LIB)
- 79 D.5 LCD Display
- 96 D.6 Keypad