direct port reading

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

direct port reading

725 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lalitshah233 on Thu Dec 13 22:11:21 MST 2012
Hi all,

Is there any way with i can directly read and write the whole port pin.

For example if i would like to read PORTB in say variable PortBStataus i can sirectly write.

PortBStataus = PORTB;

Can i do any memory mapping of the port to achieve above or i have to go with the GPIO assignment of this pins and have to access this with only that GPIO pins.

Regards,
Lalit Shah
标签 (1)
0 项奖励
回复
1 回复

712 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by drs on Thu Dec 20 12:35:16 MST 2012
Use the GPIO port word pin registers

See section 16.5.3.2 in the LPC18xx UM
0 项奖励
回复