標(biāo)題:
STM32f373串口通訊源碼
[打印本頁]
作者:
蒼穹great
時(shí)間:
2019-10-18 09:26
標(biāo)題:
STM32f373串口通訊源碼
STM32f373串口通訊源碼
單片機(jī)源程序如下:
#include "stm32f37x.h"
//#include "ili9328.h"
#include "uart.h"
#include "led.h"
#include <stdio.h>
#define countof(a) (sizeof(a) / sizeof(*(a)))//計(jì)算數(shù)組內(nèi)的成員個(gè)數(shù)
uint8_t Tx_Buffer[] ="asdfghjkl";
static void delay (int cnt)
{
while (cnt--);
}
int main(void)
{
/* USART1 config 115200 8-N-1 */
//uint8_t a=0x12;
LED_Init();
//LED_Init1();
USART_Configuration();
while (1)
{
//UART_Send( Tx_Buffer, countof(Tx_Buffer)-1);
//UART_send_byte(12);
if ((USART1->ISR)&(1<<7)) USART1->TDR=0xab;
delay(1000);
LED_Open();//
LED_Close();//
//vFeedExtWatchDog();
}
}
復(fù)制代碼
所有資料51hei提供下載:
串口uart.7z
(530.43 KB, 下載次數(shù): 39)
2019-10-18 15:54 上傳
點(diǎn)擊文件名下載附件
STM32F373串口
下載積分: 黑幣 -5
作者:
lb635378984@126
時(shí)間:
2020-6-23 16:13
學(xué)習(xí)一下,感謝分享!
作者:
joion
時(shí)間:
2020-11-25 10:01
感謝分享,兄弟有整套資料嗎?最近在用這個(gè)芯片,但不太熟悉
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1