How to read any GPIO in input state

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

How to read any GPIO in input state

713 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Deepak Bansal on Tue Sep 11 00:11:58 MST 2012
How to read LPC1317 in input state.I didn't find its function in gpio.c.

Also user manual do not have library description.
0 项奖励
回复
2 回复数

700 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Deepak Bansal on Tue Sep 11 22:19:55 MST 2012
Thanks Gromak

If selected bits are required than
LPC_GPIO[portNum]->MASKED_ACCESS[bitPosi]
can be used.


regards
Deepak
0 项奖励
回复

700 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ArtjomGromak on Tue Sep 11 06:16:41 MST 2012

Quote: Deepak Bansal
How to read LPC1317 in input state.I didn't find its function in gpio.c.

Also user manual do not have library description.



uint32_t port0_input_state;
port0_input_state=LPC_GPIO0->DATA; // reading inputs from PORT0
0 项奖励
回复