GPIO Port byte pin registers

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

GPIO Port byte pin registers

795 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tmune on Fri Aug 09 21:30:46 MST 2013
Hi All,
The following code turns on the led on Xpresso board 1347
[list]
  [*]//for GPIO0_7 to turn on LED
  [*]unsigned char *Port0_7 = (unsigned char *)0x50000007;
  [*]*Port0_7 = 1;
[/list]
My questions are about Table 130 and 131 on the datasheet,UM10524, section 9.5.3.1. I'd like to know what B stands for in

Quote:
Table 130. GPIO port 0 byte pin registers (B0 to B23, addresses 0x5000 0000 to 0x5000 0018) bit description


and

Quote:
Table 131. GPIO port 1 byte pin registers (B32 to B63, addresses 0x5000 0020 to 0x5000 002F) bit description



I think that 'B' is 'bit'. I also have the following questions.

Question 1 Should the addresses be 0x5000 0000 to 0x5000 0017 in the Table 130?
Question 2 LPC1347FBD48 has 29 GPIOPort1 pins. It doesn't have PIO1_9 or PIO1_30. Shouldn't the addresses be from 0x5000 0020 to 0x5000 003F in Table 131?
Thanks
Takashi
Labels (1)
0 Kudos
1 Reply

659 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cfb on Sat Aug 10 16:38:54 MST 2013
B stands for Byte registers in this context. If you look at the tables further down you will see the Word registers and they use W for those.

I would say 'Yes' to both of your questions.
0 Kudos