Creating a 24bit GPIO port with LPC4337

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

Creating a 24bit GPIO port with LPC4337

526 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by acelink1 on Thu Mar 20 20:20:58 MST 2014
Hi Guys, Is their a way of creating a 24bit GPIO Port on the LPC4337 ?

I've mapped out the Ports on the LPC4337 and their is no Ports that have 24bits. The largest Port is PORT 1 with 21bits.
My project needs 24bits and I would like to write a 24bit value to one port which equals 1 machine cycle.

Is their a way to create a 24bit port by joining 2 ports together or am I limited to a maximum of 21bits on the LPC4337.

PORT 0 = 2 Bits
PORT 1 = 21 Bits
PORT 2 = 14 Bits
PORT 3 = 9 Bits
PORT 4 = 11 Bits
PORT 5 = 8 Bits
PORT 6 = 13 Bits
PORT 7 = 8 Bits

Thanks Guys for your help on this one.

Pete :)
Labels (1)
0 Kudos
6 Replies

467 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by starblue on Wed Apr 02 04:34:51 MST 2014
As far as I can see (in Table 238 at the beginning of the GPIO chapter) the largest GPIO port for an LPFQ144 package is GPIO5 with a total of 18 bits.

So no, I don't see how you can get 24 bits in a single GPIO port.
0 Kudos

467 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by acelink1 on Wed Apr 02 04:08:24 MST 2014
Hi Starblue. Chapter 15 even says GPIO pins are assigned to port pins.  E.G. Port 1_pin 8 is assigned to GPIO1[1]

P1_8 = GPIO1[1]
P1_9 = GPIO1[2]
...

In the LQFP144 Pin LPC4337 the largest Port is 21bits.  Unless I can join 2 ports and assign the 2 ports as a Virtual port
then I just can't see how I can have a 24bit port on the LPC4337.

Can you show me how to do it. I've read chapter 15 over and over and I just can see how to do it.

Pete.
0 Kudos

467 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by starblue on Wed Apr 02 01:10:57 MST 2014
The numbers you quote are for pin groups, not GPIO ports, so these are pins, not bits.

Pins are described in UM10503 Chapter 15 "Pin configuration" and configured via the SCU (see Chapter 16). Each pin may have up to 8 digital functions and possibly also an analog one. One of the possible function of many pins is GPIO (but not always the default one). The relation between pin groups and GPIO ports is somewhat irregular.

For using the GPIO function see Chapter 18. There are 8 ports GPIO0 to GPIO7. Ports 5 to 7 may have your desired 24 bits, depending on the chip package.
0 Kudos

467 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by acelink1 on Tue Apr 01 14:15:37 MST 2014
Thanks Martin, but how do I do that?

Sorry if I've never done that before.

Pete :)
0 Kudos

467 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Martin84 on Tue Apr 01 00:30:18 MST 2014
You have to differentiate between the physical Ports of the Mikrocontroller and the GPIO Ports. A GPIO Port can be splitted on several physical Ports. So it is possible to create a 24-bit GPIO Port, i.e. GPIO7[0] - GPIO7[23].

Regards,

Martin
0 Kudos

467 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wmues on Fri Mar 21 01:50:47 MST 2014
The LCD Display Port is 24 bits.

You may also check the EMC port, which is 32 bits.
0 Kudos