一、回忆昨天的内容
位域 struct Student{
unsigned int x:2;//冒号之后表示要管理的位
}
位带
STM中分位带区 位带别名区
访问位带区 就相当于访问位带别名区对应的地址
每个进程都有自己独立的4G地址空间
(一个虚拟地址可能对应多个物理地址 利用时间差 刷新列表)
内存管理
串行通信
串口
二、串行通信
USART(universal synchronous asynchronous receiver transmitter)
通用同步异步接收发送器
同步和异步:
看通信双方是否使用同一个时钟
异步用得多:
115200 8N1(8个数据位 None )
115200 波特率 (通信之前一定要设置成相同的波特率)
8 个数据位
N None
1 个停止位
一次传送5-8位 1-2校验位
STM32F103RBT6(有几个USART,分别在什么位置?)
USART1(RTC时钟旁边)
USART2(无线模块的位置 WiFi需要通过USART2进行连接)
USART3(扩展IO的位置)
找到USART1的RX和Tx连接的位置
PA10 PA9
开发端、接收端
练习:
1.完成发送一个字符串的功能
extern void usart1_send_data(char * buf);
2.完成发送一个结构体的功能
struct data(){
int pm_value;
double temp;
double hum;
char buf[16];
};
struct data d={0706 , 34.56 , 90.05 , "s=easthome"};
printf("Hello World!\n");
sprintf(buf,"Hello World!\n");
fprintf(a.txt,"Hello World!\n");
3.接受字符串
在公司中经常用到的编程思想
有限状态机:--》ARM中经常使用
"ON"
"OFF"
"S3"内存 功耗大 内存没掉电
"S4"硬盘
"S5"
O_FLAG 0 "On"
N_FLAG 1 "S3"
F_FLAG 2 "Off"
没有合适的资源?快使用搜索试试~ 我知道了~
物联网综合设计 day05 笔记 代码 图
共125个文件
h:36个
c:32个
o:14个
需积分: 5 0 下载量 54 浏览量
2022-07-07
16:58:21
上传
评论
收藏 2.74MB ZIP 举报
温馨提示
物联网综合设计 day05 笔记 代码 图
资源详情
资源评论
资源推荐
收起资源包目录
物联网综合设计 day05 笔记 代码 图 (125个子文件)
test.uvguix.asus 84KB
test.axf 279KB
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
misc.c 7KB
stm32f10x_exti.c 7KB
stm32f10x_wwdg.c 6KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
stm32f10x_it.c 4KB
stm32f10x_crc.c 3KB
delay.c 3KB
usart1.c 2KB
main.c 1KB
button.c 973B
led.c 917B
beep.c 492B
stm32f10x_rcc.crf 346KB
main.crf 344KB
stm32f10x_usart.crf 344KB
stm32f10x_gpio.crf 342KB
system_stm32f10x.crf 340KB
led.crf 339KB
button.crf 339KB
usart1.crf 339KB
beep.crf 339KB
misc.crf 339KB
delay.crf 339KB
stm32f10x_it.crf 338KB
core_cm3.crf 4KB
stm32f10x_usart.d 2KB
stm32f10x_gpio.d 2KB
system_stm32f10x.d 2KB
stm32f10x_rcc.d 2KB
stm32f10x_it.d 2KB
main.d 2KB
button.d 2KB
usart1.d 1KB
beep.d 1KB
delay.d 1KB
led.d 1KB
misc.d 1KB
core_cm3.d 111B
startup_stm32f10x_md.d 67B
test_Target.dep 22KB
stm32f10x.h 619KB
core_cm3.h 84KB
stm32f10x_tim.h 51KB
stm32f10x_rcc.h 30KB
stm32f10x_i2c.h 29KB
stm32f10x_can.h 27KB
stm32f10x_fsmc.h 26KB
stm32f10x_flash.h 25KB
stm32f10x_sdio.h 21KB
stm32f10x_adc.h 21KB
stm32f10x_dma.h 20KB
core_cmInstr.h 20KB
stm32f10x_gpio.h 20KB
stm32f10x_spi.h 17KB
core_cmFunc.h 17KB
stm32f10x_usart.h 16KB
stm32f10x_dac.h 15KB
misc.h 9KB
stm32f10x_bkp.h 7KB
stm32f10x_exti.h 7KB
stm32f10x_cec.h 6KB
stm32f10x_pwr.h 4KB
stm32f10x_rtc.h 4KB
stm32f10x_iwdg.h 4KB
stm32f10x_dbgmcu.h 4KB
stm32f10x_conf.h 3KB
stm32f10x_wwdg.h 3KB
stm32f10x_crc.h 2KB
stm32f10x_it.h 2KB
system_stm32f10x.h 2KB
bitband.h 1KB
usart1.h 448B
delay.h 432B
button.h 309B
led.h 182B
beep.h 177B
test.htm 55KB
test.build_log.htm 2KB
共 125 条
- 1
- 2
菜菜也想努力
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0