实验器材:
MiniSTM32F103开发板V3版本
实验目的:
本实验为新建工程实验,仅供大家新建工程时参考。
调试步骤,请看《STM32不完全手册-库函数版本》第3.4节。
硬件资源:
1,串口1(波特率:9600,PA9/PA10连接在板载USB转串口芯片CH340上面)
实验现象:
本实验下载后,串口1将不停的输出t的值,打开电脑串口调试助手即可查看现象。
注意事项:
无.
正点原子@ALIENTEK
广州市星翼电子科技有限公司
电话:020-38271790
传真:020-36773971
购买:http://eboard.taobao.com
公司网站:www.alientek.com
技术论坛:www.openedv.com
没有合适的资源?快使用搜索试试~ 我知道了~
基于stm32f1的611N压力称重传感器加HX711AD模块串口输出质量程序
共177个文件
d:32个
h:32个
o:32个
需积分: 49 26 下载量 25 浏览量
2018-08-25
15:48:04
上传
评论
收藏 4.51MB RAR 举报
温馨提示
#include "sys.h" #include "delay.h" #include "usart.h" #include "HX711.h" int main(void) { Init_HX711pin(); delay_init(); //延时函数初始化 NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); //设置NVIC中断分组2:2位抢占优先级,2位响应优先级 uart_init(9600); //串口初始化为9600 Get_Maopi(); //称毛皮重量 delay_ms(1000); delay_ms(1000); Get_Maopi(); //重新获取毛皮重量 while(1) { Get_Weight(); if(Flag_Error == 0) { printf("净重量 = %d g\r\n",Weight_Shiwu); //打印 delay_ms(1000); } else { printf("负重或者超重\r\n"); delay_ms(1000); } } }
资源推荐
资源详情
资源评论
收起资源包目录
基于stm32f1的611N压力称重传感器加HX711AD模块串口输出质量程序 (177个子文件)
Template.uvguix.Administrator 140KB
Template.axf 307KB
keilkilll.bat 399B
stm32f10x_tim.c 107KB
stm32f10x_flash.c 61KB
stm32f10x_rcc.c 50KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 45KB
stm32f10x_can.c 44KB
stm32f10x_usart.c 37KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
stm32f10x_sdio.c 28KB
stm32f10x_gpio.c 23KB
stm32f10x_dac.c 19KB
core_cm3.c 17KB
stm32f10x_cec.c 11KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
stm32f10x_bkp.c 8KB
delay.c 8KB
misc.c 7KB
stm32f10x_exti.c 7KB
stm32f10x_wwdg.c 6KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
usart.c 5KB
stm32f10x_crc.c 3KB
HX711.c 3KB
stm32f10x_it.c 2KB
sys.c 872B
main.c 638B
stm32f10x_tim.crf 362KB
stm32f10x_can.crf 349KB
stm32f10x_adc.crf 348KB
stm32f10x_rcc.crf 348KB
stm32f10x_flash.crf 348KB
usart.crf 347KB
stm32f10x_i2c.crf 347KB
main.crf 346KB
stm32f10x_usart.crf 346KB
stm32f10x_fsmc.crf 346KB
stm32f10x_sdio.crf 345KB
stm32f10x_spi.crf 345KB
stm32f10x_gpio.crf 344KB
stm32f10x_dma.crf 344KB
hx711.crf 342KB
stm32f10x_dac.crf 342KB
stm32f10x_cec.crf 342KB
system_stm32f10x.crf 342KB
delay.crf 342KB
stm32f10x_bkp.crf 342KB
stm32f10x_rtc.crf 342KB
stm32f10x_pwr.crf 342KB
stm32f10x_exti.crf 341KB
sys.crf 341KB
stm32f10x_wwdg.crf 341KB
misc.crf 341KB
stm32f10x_iwdg.crf 340KB
stm32f10x_crc.crf 340KB
stm32f10x_it.crf 340KB
stm32f10x_dbgmcu.crf 340KB
core_cm3.crf 4KB
stm32f10x_dbgmcu.d 2KB
stm32f10x_flash.d 2KB
stm32f10x_usart.d 2KB
stm32f10x_fsmc.d 2KB
stm32f10x_exti.d 2KB
stm32f10x_sdio.d 2KB
stm32f10x_wwdg.d 2KB
stm32f10x_iwdg.d 2KB
stm32f10x_gpio.d 2KB
stm32f10x_dac.d 2KB
stm32f10x_i2c.d 2KB
stm32f10x_dma.d 2KB
stm32f10x_tim.d 2KB
stm32f10x_spi.d 2KB
stm32f10x_adc.d 2KB
stm32f10x_crc.d 2KB
stm32f10x_bkp.d 2KB
stm32f10x_rtc.d 2KB
stm32f10x_pwr.d 2KB
stm32f10x_can.d 2KB
stm32f10x_cec.d 2KB
stm32f10x_rcc.d 2KB
system_stm32f10x.d 2KB
stm32f10x_it.d 2KB
main.d 2KB
usart.d 2KB
hx711.d 2KB
delay.d 2KB
misc.d 2KB
sys.d 2KB
core_cm3.d 104B
startup_stm32f10x_hd.d 63B
Template_STM32F103RC_1.0.0.dbgconf 7KB
Template_Template.dep 61KB
stm32f10x.h 619KB
共 177 条
- 1
- 2
资源评论
技术爱好者666
- 粉丝: 4
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功