初级会员

- 积分
- 130
- 金钱
- 130
- 注册时间
- 2017-11-14
- 在线时间
- 34 小时
|
发表于 2019-1-25 10:50:04
|
显示全部楼层
本帖最后由 cjsyrzy 于 2019-1-25 10:53 编辑
看参考手册,BSRR寄存器最终目的是改变ODR
Bits 31:16 BRy: Port x Reset bit y (y= 0 .. 15)
These bits are write-only and can be accessed in Word mode only.
0: No action on the corresponding ODRx bit
1: Reset the corresponding ODRx bit*******************************************
Note: If both BSx and BRx are set, BSx has priority.*******************************************
Bits 15:0 BSy: Port x Set bit y (y= 0 .. 15)
These bits are write-only and can be accessed in Word mode only.
0: No action on the corresponding ODRx bit
1: Set the corresponding ODRx bit******************************************* |
|