资源简介
此代码为c8051f320的官方原测试代码。请放心使用。

代码片段和文件信息
//-----------------------------------------------------------------------------
// F32x_UART0_Interrupts.c
//-----------------------------------------------------------------------------
// Copyright 2006 Silicon Laboratories Inc.
// http://www.silabs.com
//
// Program Description:
//
// This program demonstrates how to configure the C8051F320 to write to and read
// from the UART interface. The program reads a word using the UART interrupts
// and outputs that word to the screen with all characters in uppercase
//
//
// How To Test:
//
// 1) Ensure that jumpers are placed on J3 of the C8051F320 target board
// that connect the P0.4 pin to the TX signal and P0.5 to the RX signal.
// 2) Ensure that the serial cable is connected to the RS232 connector
// on the target board.
// 3) Specify the target baudrate in the constant .
// 4) Open Hyperterminal or a similar program and connect to the target
// board‘s serial port.
// 6) Type up to 64 characters into the Terminal and press Enter. The MCU
// will then print back the characters that were typed
//
//
// Target: C8051F32x
// Tool chain: Keil C51 7.50 / Keil EVAL C51
// Command Line: None
//
// Release 1.0
// -Initial Revision (SM)
// -4 JUN 2007
//
//-----------------------------------------------------------------------------
// Includes
//-----------------------------------------------------------------------------
#include // SFR declarations
#include
//-----------------------------------------------------------------------------
// Global CONSTANTS
//-----------------------------------------------------------------------------
#define BAUDRATE 9600 // Baud rate of UART in bps
#define SYSTEMCLOCK 12000000 // SYSCLK frequency in Hz
//-----------------------------------------------------------------------------
// Global Variables
//-----------------------------------------------------------------------------
#define UART_BUFFERSIZE 64
unsigned char UART_Buffer[UART_BUFFERSIZE];
unsigned char UART_Buffer_Size = 0;
unsigned char UART_Input_First = 0;
unsigned char UART_Output_First = 0;
unsigned char TX_Ready =1;
static char Byte;
//-----------------------------------------------------------------------------
// Function PROTOTYPES
//-----------------------------------------------------------------------------
void SYSCLK_Init (void);
void UART0_Init (void);
void PORT_Init (void);
void Timer2_Init (int);
///-----------------------------------------------------------------------------
// MAIN Routine
//-----------------------------------------------------------------------------
void main (void)
{
PCA0MD &= ~0x40; // WDTE = 0 (clear watchdog timer
// enable)
PORT_Init(); // Initialize Port I/O
SYSCLK_Init ();
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-04-04 11:16 guanfangceshi\
目录 0 2013-04-04 11:14 guanfangceshi2\
文件 6552 2013-04-04 11:14 guanfangceshi2\F32x_UART_STDIO
文件 6476 2013-04-04 11:14 guanfangceshi2\F32x_UART_STDIO.c
文件 78 2013-04-04 11:14 guanfangceshi2\F32x_UART_STDIO.lnp
文件 10019 2013-04-04 11:14 guanfangceshi2\F32x_UART_STDIO.LST
文件 10559 2013-04-04 11:14 guanfangceshi2\F32x_UART_STDIO.M51
文件 4789 2013-04-04 11:14 guanfangceshi2\F32x_UART_STDIO.OBJ
文件 950 2013-04-04 11:14 guanfangceshi2\F32x_UART_STDIO.plg
文件 55693 2013-04-04 11:14 guanfangceshi2\F32x_UART_STDIO.uvopt
文件 13485 2013-04-04 11:14 guanfangceshi2\F32x_UART_STDIO.uvproj
文件 54821 2013-04-04 11:14 guanfangceshi2\F32x_UART_STDIO_uvopt.bak
文件 13297 2013-04-04 11:14 guanfangceshi2\F32x_UART_STDIO_uvproj.bak
文件 6376 2013-04-04 11:14 guanfangceshi2\STARTUP.A51
文件 14048 2013-04-04 11:14 guanfangceshi2\STARTUP.LST
文件 749 2013-04-04 11:14 guanfangceshi2\STARTUP.OBJ
文件 6411 2013-04-04 11:11 guanfangceshi\F32x_UART0_Interrupt
文件 9264 2013-04-04 11:11 guanfangceshi\F32x_UART0_Interrupt.c
文件 88 2013-04-04 11:11 guanfangceshi\F32x_UART0_Interrupt.lnp
文件 14121 2013-04-04 11:11 guanfangceshi\F32x_UART0_Interrupt.LST
文件 9480 2013-04-04 11:11 guanfangceshi\F32x_UART0_Interrupt.M51
文件 6619 2013-04-04 11:11 guanfangceshi\F32x_UART0_Interrupt.OBJ
文件 189 2013-04-04 11:16 guanfangceshi\F32x_UART0_Interrupt.plg
文件 132693 2013-04-04 11:16 guanfangceshi\F32x_UART0_Interrupt.uvgui.Reagan
文件 6913 2013-04-04 11:16 guanfangceshi\F32x_UART0_Interrupt.uvopt
文件 13612 2013-04-04 11:16 guanfangceshi\F32x_UART0_Interrupt.uvproj
文件 55698 2013-04-04 11:11 guanfangceshi\F32x_UART0_Interrupt_uvopt.bak
文件 13500 2013-04-04 11:11 guanfangceshi\F32x_UART0_Interrupt_uvproj.bak
文件 6376 2013-04-04 11:11 guanfangceshi\STARTUP.A51
文件 14048 2013-04-04 11:11 guanfangceshi\STARTUP.LST
文件 749 2013-04-04 11:11 guanfangceshi\STARTUP.OBJ
............此处省略0个文件信息
相关资源
- ddos压力测试工具99657
- GBT 15532-2008 计算机软件测试规范
- ccs官方软件及安装
-
st
yles 引文样式语言( CSL ) 引文样 - 清翔电子MCS51开发板资料_新版 01_开发
- elantech触控板驱动程序 v13.6.11 官方最
- 三星笔记本电源管理软件 v2.1.4.3 官方
- PCIe速度测试例程
- Labview与CH372CH375的通信测试
- 德卡D3读卡器测试程序驱动文件
- stm32 ds18b20 温度传感器 测试通过
- stm32官方例程
- ADNS-3080光流传感器测试程序Arduino
- 一个测试报告的模板,有点用
- 音频测试软件
- GIS项目开发文档(分析、设计、实现
- 2410的led测试程序keil可以用
- 报文模拟仿真测试工具2.0
- 短信测试软件
- 硬件测试面试常见题PDF
- Junit4单元测试
- 软件方法测试RTX时钟
- 软件工程文档模板1可行性研究报告
- 历年深信服软件测试师考试题
- VC 6 Modbus RTU测试程序
- 小学数学测试成绩查询软件
- 一个不错的测试用例计划——物业管
- 哲学家进餐问题 算法 vc源代码 测试通
- CD7110客显测试程序
- 软件开发过程文档(开发大纲 编写规
评论
共有 条评论