打印

PRT0DM是什么意思

[复制链接]
1511|5
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
ousj|  楼主 | 2018-4-10 09:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我定义io口是用#define Port0_2(b) (PRT0DR=(b==0)?(PRT0DR&0xFB):(PRT0DR|0x04))


PRT0DM是什么意思
沙发
morrisk| | 2018-4-10 10:05 | 只看该作者
PRT0DR和PRT0DM等就是寄存器名称,相应解释在datasheet可以找到

使用特权

评论回复
板凳
ousj|  楼主 | 2018-4-10 10:08 | 只看该作者


PRT0DM0     RT0DM1   设置模式   
几个模式分别代表什么意义啊???????

使用特权

评论回复
地板
zyf部长| | 2018-4-10 10:23 | 只看该作者
DM0,DM1,DM2,一起用于驱动模式
Bits 7 to 0: Drive Mode x[7:0]. In the PRTxDMx registers
there are eight possible drive modes for each port pin. Three
mode bits are required to select one of these modes, and
these three bits are spread into three different registers
(PRTxDM0, PRTxDM1, and PRTxDM2). The bit position of
the effected port pin (for example, Pin[2] in Port 0) is the
same as the bit position of each of the three drive mode register
bits that control the Drive mode for that pin (for example,
bit[2] in PRT0DM0, bit[2] in PRT0DM1, and bit[2] in
PRT0DM2). The three bits from the three registers are
treated as a group. These are referred to as DM2, DM1, and
DM0, or together as DM[2:0].

使用特权

评论回复
5
xxmmi| | 2018-4-10 10:26 | 只看该作者
这些都是一些寄存器的简称……

使用特权

评论回复
6
ousj|  楼主 | 2018-4-10 10:29 | 只看该作者

唉,还是没有什么结果,算了,先结贴吧,多谢大家啦

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

712

主题

7557

帖子

1

粉丝