Home Article 15系列单片机IO口模式设置

15系列单片机IO口模式设置

Release time:2020-07-24 20:14:04 Author:admin Reading volume:65

15系列单片机区别于51的单片机很重要的一点就是IO口的模式

举例:

P2M1 &= ~(1<<7); //设置P2.7为准双向口

 
P2M0 &= ~(1<<7);
 
 
 
P1M1 = 0X00; //设置P1为准双向口
 
P1M0 = 0X00; 

 

支付宝打赏 微信打赏
  
I want to comment

Search

Leave a message
http://blog.rjxj513.com/
User login
You have not written any reviews yet!
You have commented!
Can only praise once!
You have a collection!