Image
Image

突然下起雨

+ 关注

粉丝 1     |     主题 45     |     回帖 530

STM32LCD显示汉字
2023-2-13 16:21
  • ST MCU
  • 16
  • 1108
  ......  
  取模软件是PCtoLCD2002 设置,这里数据记得自己加{}分开每个汉字  
  ......  
stm32 AD模数转换[操作寄存器+库函数]-Changing's Blog
2021-7-30 23:37
  • ST MCU
  • 10
  • 1361
  #if PRINTF_ON int fputc(int ch,FILE *f) { USART_SendData(USART1,(u8) ch); while(USART_GetFlagSta ...  
  void USART_Configuration(void) { USART_InitTypeDef USART_InitStructure; USART_ClockInitTypeDef USA ...  
  void RCC_Configuration(void) { /* 定义枚举类型变量 HSEStartUpStatus */ ErrorStatus HSEStartUpStatu ...  
  void GPIO_Configuration(void) { GPIO_InitTypeDef GPIO_InitStructure; ...  
  库函数操作 main.c #include "stm32f10x.h" #include "stdio.h" #define PRINTF_ON 1 #define VREF ...  
  设置通道x采样时间,提高采样时间可以提高采样精度 } if(ADC_CH_x > 9 ){ ADC1 -> SMPR1 |= 7 ...  
  void Gpio_Init(void) { RCC->APB2ENR|=1CRL&=0xFFFFFFF0; GPIOB->CRL|=0xFFFFFFF0; // PB0设置为模拟输 ...  
  代码如下: (system.h 和 stm32f10x_it.h 等相关代码参照 stm32 直接操作寄存器开发环境配置) User/main ...  
  直接操作寄存器 首先需要配置ADC的时钟分频值,在RCC->CFGR的[15:14]位: 00:PCLK2 2分频后作为ADC时钟 ...  
  本例实现AD采样PB0口,使用串口输出PB0口电压值。PB0口接变阻器以改变调整电压。 效果如下: ...  
基于STM32的ch438串口扩展芯片使用
2021-10-16 15:17
  • ST MCU
  • 13
  • 1754
  实验结果如下: 垃圾CSDN  
  ......  
  ......  
  上面就是CH438.h头文件,以下就是main函数,本程序只打开了串口2  
  ......  
  ......  
stm32数据类型长度
2022-3-31 16:33
  • ST MCU
  • 1
  • 350
  输出结果:  
2
3
近期访客