direct port reading

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

direct port reading

463 Views
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
Labels (1)
0 Kudos
Reply
1 Reply

450 Views
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 Kudos
Reply