LPC1342 P1.0 and P1.2

Started by Jakub Piotr Cłapa in LPC20008 years ago 2 replies

Hi, I was trying out the new Cortex-M3s from NXP and have a puzzling problem with GPIO. I have LEDs on PIO1_0 and PIO1_2 and I can't get...

Hi, I was trying out the new Cortex-M3s from NXP and have a puzzling problem with GPIO. I have LEDs on PIO1_0 and PIO1_2 and I can't get them to work. These are normaly for JTAG but I switch them to GPIO as you can see in the code below. Have I missed something or are there bugs in the silicon or the documentation? The toggling of P0.8 works fine so I am sure the processor is runni...


GPIO on LPC24XX with IAR EWB

Started by "mats.sernfalt" in LPC20009 years ago 3 replies

Hi! Acording to the LPC24XX manual clear/set of GPIO registers allow a single instruction but when I look at the resulting assembler code there...

Hi! Acording to the LPC24XX manual clear/set of GPIO registers allow a single instruction but when I look at the resulting assembler code there are several instruction. How do I write the C code (for IAR) to force the compiler to make one instruction out of a set or clear of a GPIO port?? __IO_REG8( X_FIO2SET1, 0x3FFFC059,__READ_WRITE); X_FIO2SET1 = 4; //This C-instruction results in the ...


lpc2148-Reading bits from io pin

Started by Salil Sudin Juwarkar in LPC200011 years ago 1 reply

Hi! I am using an ADC MCP3550 which gives 24 bit serial output. This I want to read from a GPIO pin and save in a variable. How do I do that? I...

Hi! I am using an ADC MCP3550 which gives 24 bit serial output. This I want to read from a GPIO pin and save in a variable. How do I do that? I am also using GPIO pins to issue chipselect and clock signals.Quik Help needed. Thanks


Fast GPIO on LPC2103

Started by slb885 in LPC200012 years ago 2 replies

I seem to be having some trouble getting the "fast" GPIO on my LPC2103 working. Here is the code I use for the normal GPIO (which...

I seem to be having some trouble getting the "fast" GPIO on my LPC2103 working. Here is the code I use for the normal GPIO (which works) --- IODIR |= (1 <


5v system integration

Started by dijucthat in LPC200013 years ago 12 replies

I have a project that was setup for a 5v AVR that I would like to convert to an LPC2294. Q1: Is it better to use a simple voltage divider...

I have a project that was setup for a 5v AVR that I would like to convert to an LPC2294. Q1: Is it better to use a simple voltage divider on the GPIO Input (to get 3.3v) or should I leave it at 5v? (I know it says 5v "tolerant", but is it safer at 3.3v) Q2: On GPIO outputs, can I use a pullup to get 5v, or should I use a buffer, ULN2003, etc.? (again, I am concerned with re


GPIO interrupt

Started by c.pa...@acevin.com in LPC200010 years ago 8 replies

I am trying to use a rising edge GPIO interrupt for KEY PAD interfacing on P2.0 to p2.5. I setup the pin as an input PINMODE4 =...

I am trying to use a rising edge GPIO interrupt for KEY PAD interfacing on P2.0 to p2.5. I setup the pin as an input PINMODE4 = 0x00000AAA; I also setup the IO2_INT_EN_R to enable the rising edge interrupt. IO2_INT_CLR = 0x0000003F; IO2_INT_EN_R = 0x0000003F; Also then load and enable the VIC channel. I see in the docs that EINT3 - channel 17 - is shared with GPIO interrupts. VI...


Interrupt on GPIO?

Started by Eyal Teler in LPC200012 years ago 2 replies

I'm new to the LPC210x, just looking at what it can do. Couldn't find in the docs an ability to get interrupts on GPIO pins -- unlike,...

I'm new to the LPC210x, just looking at what it can do. Couldn't find in the docs an ability to get interrupts on GPIO pins -- unlike, for example, the MSP430 of Stellaris families, which can detect both rising or falling edges or levels on the pins. Is this true. If so, how would you recommend detecting button presses and releases?


LPC2468 GPIO as a Input query

Started by koolhallmark in LPC20006 years ago 13 replies

Hi, In my application LPC2468 is interfaced with SD card. SD Card is shared by another data logging device. I have set all my GPIO as Input...

Hi, In my application LPC2468 is interfaced with SD card. SD Card is shared by another data logging device. I have set all my GPIO as Input and disabled all Pull-up and Pull-down resistor. Now when My MCU is in programming mode. Data logging device is accessing SD card in proper way. But while MCU is running but it is doing nothing it is just in while loop with all GPIO as input and in th...


Re: Fast GPIO on LPC2138/01 - many problems

Started by Alexander Whiplash in LPC200011 years ago

Doesn't matter. There are no internal pullups on P0.2 and P0.3 hence if you need to use the for GPIO you require external pullups....

Doesn't matter. There are no internal pullups on P0.2 and P0.3 hence if you need to use the for GPIO you require external pullups. --------------- Many thanks to Paul and others that pointed out my oversight. ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://too...


LPC2129 - MCB2100 P0.02 & P0.03 GPIO problem

Started by David Jones in LPC200010 years ago 2 replies

P0.00 & P0.01 used by UART. Able to use P0.04 .. P0.07 as GPIO - As output - When set, the output is about 3.4V .....

P0.00 & P0.01 used by UART. Able to use P0.04 .. P0.07 as GPIO - As output - When set, the output is about 3.4V .. OK When I try to do same with P0.02 & 3 the voltage it sets to is about 0.4-0.6 V. I am able to use 1K resistor as pull up to get required output. PINSEL0 = 0x00000000; PINSEL0 |= 0x00000005; bit = 1 <


GPIO Interrupt on LPC1768

Started by Wagner Loebel in LPC20008 years ago 3 replies

Hi all... Can anybody give a simple "recipe" on how to setup a GPIO (P0.21) on LPC1768 to generate an interrupt ? The Keil code bundle has...

Hi all... Can anybody give a simple "recipe" on how to setup a GPIO (P0.21) on LPC1768 to generate an interrupt ? The Keil code bundle has an example that shows how to work with interrupt on EINT0 but I need it on another pin. Thanks in advance.


GPIO current?

Started by tkreyche in LPC200014 years ago 3 replies

Can someone tell me how much current the GPIO pins can source? Do any pins drive more than others? I've looked all over...

Can someone tell me how much current the GPIO pins can source? Do any pins drive more than others? I've looked all over the docs and archive and don't see an answer. I'm using the 2138 but I imagine all families are similar. I was surprised when a friend told


GPIO INPUT CORTEX M0 voltage.

Started by marcosriolo in LPC20007 years ago 3 replies

someone tell me why when configured with GPIO INPUT keep current and voltage on the pin? ------------------------------------

someone tell me why when configured with GPIO INPUT keep current and voltage on the pin? ------------------------------------


clock on a GPIO, lpc2387

Started by franciscocantero1 in LPC20008 years ago 14 replies

Hello, I just join the group, how is everybody doing? over this week I try to get some code working with IAR, the project is nearly working,...

Hello, I just join the group, how is everybody doing? over this week I try to get some code working with IAR, the project is nearly working, but I need to talk to a chip with an input of 27 MHz and send data at 6.9Mbps. I would like to know how to get a one of the GPIO pins to be a clock of 27MHz. My crystal is 12MHz. I thought of different ways of doing this: 1- do a PWM, but I dont kno...


GPIO read bug fixed in 2114/2124?

Started by bobbruce000 in LPC200014 years ago 7 replies

As was discussed in an earlier thread, there is an undocumented bug in the LPC2106 that prevents the GPIO pins from being read if...

As was discussed in an earlier thread, there is an undocumented bug in the LPC2106 that prevents the GPIO pins from being read if they are configured for an alternative use (even though the Philips documentation explicitly says that it will work). But I need to know if the sam


GPIO documentation?

Started by Peter Jakacki in LPC200014 years ago 1 reply

Has anyone ever received a conclusive reply from Philips concerning the reason for the slow GPIO? I just would like to know why...

Has anyone ever received a conclusive reply from Philips concerning the reason for the slow GPIO? I just would like to know why this port is so slow, I am curious. Initially I thought it had to do with the set/reset logic and the goal of synchronizing the output port. But the port is


Roll Your Own bootloader

Started by phlpcmicro in LPC200012 years ago 3 replies

Hi, Has any one considered "rolling their own" boot loader for the LPC2000 series? Purpose - so that P0.14 can be released from the POR...

Hi, Has any one considered "rolling their own" boot loader for the LPC2000 series? Purpose - so that P0.14 can be released from the POR bootup requirement.... and used for all GPIO actions. Say for example instead of looking at P0.14 (GPIO) on POR looking at UART Rx incoming data... The Philip P89V51 (80c51) series looks at the incomming UART traffic looking for 'U' character for ...


Dumb GPIO question

Started by Shannon Holland in LPC200014 years ago 2 replies

OK, I am confused. I'm using the Nohau LPC210x eval board and for some reason I can't set GPIO's P0.2 and P0.3 as high output. ...

OK, I am confused. I'm using the Nohau LPC210x eval board and for some reason I can't set GPIO's P0.2 and P0.3 as high output. If I set IODIR = 0x0000000F and then IOSET = 0x0000000F I get IOPIN 0x00000003 (which is reflected on the external pins). PINSEL0


LPC2368 GPIO Interrupts

Started by da_fatkid in LPC20009 years ago 2 replies

Noob here, I'm just starting out with the LPC2368 using the Keil compiler software. I've come from using Atmel chips and the way of defining...

Noob here, I'm just starting out with the LPC2368 using the Keil compiler software. I've come from using Atmel chips and the way of defining interrupts on pins was somewhat easier... I was wondering if anyone out there could give a short tutorial on how to define one of the GPIO pins, say P2.15 as a falling edge interrupt? I've been beating my head against a wall trying to get it to work....


[LPC2378] Wake up from power down mode with GPIO interrupt

Started by Zbig...@s3group.com in LPC200011 years ago 2 replies

Hi, I'm using the LPC2378 on a design where low power consumption is very important. We put the MCU (LPC2378) into power down mode and we...

Hi, I'm using the LPC2378 on a design where low power consumption is very important. We put the MCU (LPC2378) into power down mode and we expect it will wake up from power down if RTC, USB or GPIO interrupt occurs. The RTC and USB interrupts work fine. I also tested that the EXT interrupts (EINT0) work ok. I can't however configure the device to wake up from power down when a GPIO interrupt o...