m52233demo

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

m52233demo

1,337 次查看
sk7499
Contributor I
can some one assist will a line of code on how to get inputs prefebly digital  on the m52233demo board it doesnt matter about the port im kind of new to this controller im swithching from the hc11.
标签 (1)
0 项奖励
回复
1 回复

672 次查看
PaoloRenzo
Contributor V

sk7499 wrote:
can some one assist will a line of code on how to get inputs prefebly digital on the m52233demo board it doesnt matter about the port im kind of new to this controller im swithching from the hc11.



Hi:

unsigned char dat;

/* set port AN as GPIO */
MCF_GPIO_PANPAR = 0x00; // 0 = pin assumes the GPIO function for that pin

// by default pin is configured as input

dat = MCF_GPIO_SETAN; //read entire port

Maybe this code could be useful

Good luck!!
0 项奖励
回复