单片机 P2 P0 口作为普通IO口,怎么用?稍微详细一点:)谢谢

2025-03-05 00:54:49
推荐回答(1个)
回答1:

mov p0(p2),#xxH
mov p0(p2),A
随便用,但p0口内部没有上拉电阻,不能输出高电平,需要外部增加一个上拉电阻