文件名称:2_2_uart_shell
介绍说明--下载内容均来自于网络,请自行研究使用
lpc1788-2_2_uart_shell
例程描述:
本例程在串口 0 的通信基础上,添加了一些简单的命令行处理过程。
操作过程:
(1)打开一个串口终端,将代码运行起来。这时 4 个 LED 灯呈现流水灯显示模式。
(2)使用串口线延长线将开发板 UART0 与 PC 机连接。打开超级终端软件,通信波特
率为 115200,其它参数使用默认的配置。在超级终端中输入 回车,终端上显示“->”。
(3)在串口终端中输入“help”,会显示相关命令的帮助信息,这里是 animal 的信息。
-Lpc1788-2_2_uart_shell
Routine Descr iption:
This routine adds some simple command-line processing to serial port 0 communication.
Operation process:
(1) open a serial terminal, the code to run up. At this time four LED lights show water lamp display mode.
(2) Use the serial cable extension cable to connect the development board UART0 to the PC. Open the HyperTerminal software, Communication Porter
The rate is 115200, and the other parameters use the default configuration. Enter a carriage return in the HyperTerminal, and -> appears on the terminal.
(3) in the serial terminal input help , will display the relevant command help information, here is the animal information.
例程描述:
本例程在串口 0 的通信基础上,添加了一些简单的命令行处理过程。
操作过程:
(1)打开一个串口终端,将代码运行起来。这时 4 个 LED 灯呈现流水灯显示模式。
(2)使用串口线延长线将开发板 UART0 与 PC 机连接。打开超级终端软件,通信波特
率为 115200,其它参数使用默认的配置。在超级终端中输入 回车,终端上显示“->”。
(3)在串口终端中输入“help”,会显示相关命令的帮助信息,这里是 animal 的信息。
-Lpc1788-2_2_uart_shell
Routine Descr iption:
This routine adds some simple command-line processing to serial port 0 communication.
Operation process:
(1) open a serial terminal, the code to run up. At this time four LED lights show water lamp display mode.
(2) Use the serial cable extension cable to connect the development board UART0 to the PC. Open the HyperTerminal software, Communication Porter
The rate is 115200, and the other parameters use the default configuration. Enter a carriage return in the HyperTerminal, and -> appears on the terminal.
(3) in the serial terminal input help , will display the relevant command help information, here is the animal information.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
2_2_uart_shell\prj\lpc1788.uvopt
..............\...\lpc1788.uvproj
..............\src\main\animal.c
..............\...\....\led.c
..............\...\....\led.h
..............\...\....\main.c
..............\...\....\memory.c
..............\...\....\memory.h
..............\...\....\shell.c
..............\...\....\shell.h
..............\...\target\LPC177x_8x.h
..............\...\......\startup_lpc177x_8x.s
..............\...\......\system_lpc177x_8x.c
..............\...\......\uart0.h
..............\...\......\uart0_lpc177x_8x.c
..............\...\main
..............\...\target
..............\prj
..............\src
2_2_uart_shell