06 2024 档案
摘要:https://blog.csdn.net/weixin_43290709/article/details/115084536
阅读全文
摘要:8051 - 在keil中添加STC型号的3种方法_stc15f104e-CSDN博客 11
阅读全文
摘要:while(1) { if( myusart.reflag>0) { Com_Handle(); myusart.recount=0; myusart.reflag=0; } ADS_sum_plus(i<<4|(i+1),j); //如何取三次的平均值呢,完成 if(++g>=10) //一个通道
阅读全文
摘要:void uart_dma_init(u32 bound){ //GPIO端口设置 GPIO_InitTypeDef GPIO_InitStructure; USART_InitTypeDef USART_InitStructure; NVIC_InitTypeDef NVIC_InitStruct
阅读全文
摘要:#include "bsp_dac.h" #include "math.h" //#include "stm32f10x_tim.h" //#include "stm32f10x_dma.h" //#include "stm32f10x_dac.h" //正弦波单个周期的点数 #define POI
阅读全文
摘要:#include "adc.h" #include "delay.h" ////////////////////////////////////////////////////////////////////////////////// //本程序只供学习使用,未经作者许可,不得用于其它任何用途 /
阅读全文
摘要:void TIM3_Cap_Init(u16 arr,u16 psc)//定时器3通道2输入捕获配置 { TIM_ICInitTypeDef TIM_ICInitStructure; TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure; NVIC_InitTy
阅读全文
摘要:TIM_ICInitTypeDef TIM2_ICInitStructure; void TIM2_CH1_Cap_Init(u16 arr,u16 psc) { GPIO_InitTypeDef GPIO_InitStructure; TIM_TimeBaseInitTypeDef TIM_Tim
阅读全文
摘要:Capture_Init(59999,120-1); // 可捕获最小频率 72M/(120*60000)= 17*0.6=10Hz PA1 // TIM2_CH2 PA7 做为捕获通道 // 输入捕获能捕获到的最小的频率为 72M/{ (ARR+1)*(PSC+1) } void Capture_
阅读全文
摘要:#include "led.h" #include "delay.h" #include "key.h" #include "sys.h" #include "usart.h" #include "timer.h" //ALIENTEK战舰STM32开发板实验9 //PWM输出实验 //技术支持:w
阅读全文
摘要:if(myusart.reflag>0) { Com_Handle(); myusart.recount=0; myusart.reflag=0; } main #define _maxbuf 100 typedef struct { u8 myadd; u8 rcbuf[_maxbuf]; u16
阅读全文