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

  • 大小: 138KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-14
  • 語言: 其他
  • 標簽: stm8l??discovery??usart??

資源簡介

這個程序實現串口接收到字符,觸發接收中斷,執行USART的中斷服務程序,將接收到的數據再發送出去~~

資源截圖

代碼片段和文件信息



#include?“stm8l15x.h“
#include?“stm8l15x_conf.h“


unsigned?char?Buf;

void?delayms(unsigned?int?x)
{
unsigned?int?j=0i=0;
for(;i for(;j<65535;j++);
}


void?main()
{???????
GPIO_Init(GPIOCGPIO_Pin_2GPIO_Mode_In_PU_No_IT);
GPIO_Init(GPIOCGPIO_Pin_3GPIO_Mode_Out_PP_Low_Fast);
????????
CLK_PeripheralClockConfig(CLK_Peripheral_USART1ENABLE);
USART_Init(USART19600USART_WordLength_8bUSART_StopBits_1USART_Parity_No(USART_Mode_TypeDef)(USART_Mode_Rx|USART_Mode_Tx));
????????
????????USART_ClockInit(USART1USART_Clock_DisableUSART_CPOL_LowUSART_CPHA_2EdgeUSART_LastBit_Disable);?//配置USART1->CR3
????????USART_ClearITPendingBit(USART1USART_IT_RXNE);??//配置USART1->SR
????????USART_ITConfig(USART1USART_IT_RXNEENABLE);????//配置USART1->CR2的RIEN位
USART_Cmd(USART1ENABLE);
????????
????????enableInterrupts();

while?(1)
{

}
}


//該程序實現串口接收到字符,觸發接收中斷,執行USART的中斷服務程序,將接收到的數據再發送出去

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-09-07?09:07??usart_IT_test\
?????目錄???????????0??2012-09-07?09:07??usart_IT_test\Library\
?????目錄???????????0??2012-09-07?09:21??usart_IT_test\Library\inc\
?????文件??????123422??2012-09-06?16:14??usart_IT_test\Library\inc\stm8l15x.h
?????文件???????18574??2012-02-23?10:04??usart_IT_test\Library\inc\stm8l15x_clk.h
?????文件????????1231??2012-09-07?09:21??usart_IT_test\Library\inc\stm8l15x_conf.h
?????文件????????9471??2012-08-29?12:44??usart_IT_test\Library\inc\stm8l15x_exti.h
?????文件????????6453??2012-02-23?10:04??usart_IT_test\Library\inc\stm8l15x_gpio.h
?????文件????????3844??2012-08-30?10:12??usart_IT_test\Library\inc\stm8l15x_it.h
?????文件???????11129??2011-10-26?11:51??usart_IT_test\Library\inc\stm8l15x_itc.h
?????文件???????15039??2012-02-23?10:04??usart_IT_test\Library\inc\stm8l15x_usart.h
?????文件????????3813??2012-02-27?14:25??usart_IT_test\Library\inc\stm8l_it.h
?????目錄???????????0??2012-09-07?11:16??usart_IT_test\Library\src\
?????文件?????????999??2012-09-07?11:16??usart_IT_test\Library\src\main.c
?????文件???????20400??2012-09-06?19:06??usart_IT_test\Library\src\stm8l15x_clk.c
?????文件???????13107??2012-09-07?10:25??usart_IT_test\Library\src\stm8l15x_exti.c
?????文件????????8998??2012-09-06?18:14??usart_IT_test\Library\src\stm8l15x_gpio.c
?????文件???????10210??2012-09-07?11:09??usart_IT_test\Library\src\stm8l15x_it.c
?????文件????????9843??2012-08-30?11:26??usart_IT_test\Library\src\stm8l15x_itc.c
?????文件???????27193??2012-09-07?11:06??usart_IT_test\Library\src\stm8l15x_usart.c
?????目錄???????????0??2012-09-07?11:16??usart_IT_test\Project\
?????目錄???????????0??2012-09-07?09:07??usart_IT_test\Project\Debug\
?????目錄???????????0??2012-09-07?11:06??usart_IT_test\Project\Debug\Exe\
?????文件???????67192??2012-09-07?11:06??usart_IT_test\Project\Debug\Exe\usart_test.out
?????目錄???????????0??2012-09-06?17:01??usart_IT_test\Project\Debug\List\
?????目錄???????????0??2012-09-07?11:16??usart_IT_test\Project\Debug\Obj\
?????文件????????7468??2012-09-07?11:06??usart_IT_test\Project\Debug\Obj\main.o
?????文件???????50036??2012-09-07?11:06??usart_IT_test\Project\Debug\Obj\stm8l15x_clk.o
?????文件???????22381??2012-09-07?11:06??usart_IT_test\Project\Debug\Obj\stm8l15x_exti.o
?????文件???????22943??2012-09-07?11:06??usart_IT_test\Project\Debug\Obj\stm8l15x_gpio.o
?????文件???????44985??2012-09-07?11:06??usart_IT_test\Project\Debug\Obj\stm8l15x_it.o
............此處省略13個文件信息

評論

共有 條評論