91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 71KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-24
  • 語言: 其他
  • 標簽: C8051F320??測試??官方??

資源簡介

此代碼為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個文件信息

評論

共有 條評論