m52233demo

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

m52233demo

1,086件の閲覧回数
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 返信

421件の閲覧回数
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 件の賞賛
返信