EmbeddedRelated.com
The 2024 Embedded Online Conference

lpc2148-Reading bits from io pin

Started by Salil Sudin Juwarkar in LPC200016 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 LPC200017 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 LPC200018 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 LPC200016 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...


LPC2468 GPIO as a Input query

Started by koolhallmark in LPC200011 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...


GPIO Interrupt on LPC1768

Started by Wagner Loebel in LPC200014 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.


clock on a GPIO, lpc2387

Started by franciscocantero1 in LPC200013 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...


LPC2368 GPIO Interrupts

Started by da_fatkid in LPC200015 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 LPC200016 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...


LPC2138 GPIO Pull Downs ?

Started by nknight62 in LPC200018 years ago 4 replies

We have an application where we use the GPIO I/O pins on Port 1 of LPC2138 to an LCV244 buffer/driver. We found that randomly, some pins on...

We have an application where we use the GPIO I/O pins on Port 1 of LPC2138 to an LCV244 buffer/driver. We found that randomly, some pins on the buffer driver were high or low at power-up with no program loaded to control the pins. We added 32k pull downs between the 2138 and the buffer/driver inputs to pull the lines low because the GPIO lines are floating inputs before program change


Port 1 of LPC 2148 completely switched to GPIO does not work.

Started by "joerg.nagel" in LPC200018 years ago 42 replies

Hello all, I am totally messed up. I am trying to use Port1 (P1.16 to P1.31) of an LPC2148 as GPIO. I am trying for about two weeks now without...

Hello all, I am totally messed up. I am trying to use Port1 (P1.16 to P1.31) of an LPC2148 as GPIO. I am trying for about two weeks now without success. I am using the arm-elf-gcc ver. 4.0.2 for windows. I took the startup assembly code from the "Hello World!" example downloadable in the files section of this group. My hardware layout is similar to the olimex LPC-P2148 eval board. In the m...


Optimising GPIO on LPC1343 (Cortex M3)

Started by kevin_townsend2 in LPC200013 years ago 7 replies

I've been working on a TFT LCD driver (ILI9325) using an 8-bit interface, and have been able to get it up to about 15fps @ 72MHz paying attention...

I've been working on a TFT LCD driver (ILI9325) using an 8-bit interface, and have been able to get it up to about 15fps @ 72MHz paying attention to how I set GPIO (single cycle clear+set as described in section 8.5.1 of the 1343 UM, etc.). Compiling with no optimisation (GCC 4.4), it still feels kind of slow with the cmd method taking 40 cycles. Since this function is very heavily used, I was w...


LPC2129 GPIO issues with P0.2 and P0.4

Started by berney73 in LPC200018 years ago 6 replies

Currently I have an LPC2129 and am trying to use the P0.2/SCL and P0.3/SDA/Eint1 pins for GPIO. Running the software under simulation in KEIL...

Currently I have an LPC2129 and am trying to use the P0.2/SCL and P0.3/SDA/Eint1 pins for GPIO. Running the software under simulation in KEIL shows the micro correctly changing the states of these pins however once applied to the physical chip on a board we've designed in house there's no signal - basically ground with a little noise. I've been over the schematics (as I didnt design t


LPC2387 GPIO interrupt latency

Started by "ger...@yahoo.gr [lpc2000]" in LPC20009 years ago 8 replies

Hi everyone I have found that a GPIO interrupt sharing EXTINT3 with the highest priority has about 60usec. latency instead of EXTINT3 pin. Can...

Hi everyone I have found that a GPIO interrupt sharing EXTINT3 with the highest priority has about 60usec. latency instead of EXTINT3 pin. Can this feature be fixed?Is there any method? I am trying to interface a barcode reader and I am loosing always the 1st clock. I am using gcc gnu arm with eclipse IDE. Thanks In Advance Chris


SSEL1 functionally

Started by javida13 in LPC200019 years ago 2 replies

The manual states that for the SSEL0 signal, that when SPI is setup as a Master, this signal can be used as GPIO. This statement is not...

The manual states that for the SSEL0 signal, that when SPI is setup as a Master, this signal can be used as GPIO. This statement is not in the description of the SSEL1 signal. I'm configurating the SSP as an SPI port and would like to use SSEL1 as a GPIO pin. Any experience? Barry


How to set GPIO pin P0.8 and P0.9 to high and low on LPC2103

Started by Santos Kumar Das in LPC200015 years ago 1 reply

Dear All, I'm having problem to use "fast" GPIO on my LPC2103. I need to set GPIO pin P0.8 and P0.9 to high and low, but couldn't make...

Dear All, I'm having problem to use "fast" GPIO on my LPC2103. I need to set GPIO pin P0.8 and P0.9 to high and low, but couldn't make it. Following are several ways, which I tried but can't see the high or low at the pins. 1. PINSEL0 = (PINSEL0 && 0xFFFFFEFF) || 0x00000100; FIODIR = (FIODIR && 0xFFFFFEFF) || 0x00000100; FIOCLR = (FIOCLR && 0xFFFFFEFF) || 0x00000100; FIOSET =...


LPC1766 Example Code does not run (Keil V3.50)

Started by Alex Ribero in LPC200015 years ago 6 replies

Hi: For those of you that got your sample of the LPC1766.... I installed my sample on a board and tried to run the Blinky example provided...

Hi: For those of you that got your sample of the LPC1766.... I installed my sample on a board and tried to run the Blinky example provided by Keil for the LPC1766. The program compiles and is programmed in Flash Memory. However, the GPIO pins do not toggle as expected. Using the debugger, I am able to step through the beginning of main, but when it reaches a GPIO register access, it fa...


VIC on the LPC2478

Started by "jim.deas" in LPC200015 years ago 5 replies

Can someone give me a hand with the VIC on this chip? I want to attach a GPIO to trigger an interrupt just to get the feel of the chip. I init'...

Can someone give me a hand with the VIC on this chip? I want to attach a GPIO to trigger an interrupt just to get the feel of the chip. I init' the chips like this. '--------------------------------------------------------- //Set a mask for the two buttons on the development card PINSEL5 = 0x00;//Set P2[16]-P1[31] to GPIO PINMODE5 = 0x00;//Set pull up resistor enabled FIO2MASK = ~(BUT1_MA...


LPC2468 GPIO

Started by coli...@arrisi.com in LPC200013 years ago 5 replies

Hi, I'm a noob in this group and with LPC micros for forgive me if this sounds a little basic. Have been tearing my hair out trying to set D0-D7...

Hi, I'm a noob in this group and with LPC micros for forgive me if this sounds a little basic. Have been tearing my hair out trying to set D0-D7 (P3.0 - P3.7) as GPIO inputs on LPC2468. Using keil, have the following config PINSEL6 = 0x5555; /*enable D0=D7*/ FIO3DIR &= ~((1UL <


FreeRTOS GPIO Interrupt, LPC2378

Started by Baishun Wu in LPC200013 years ago 7 replies

Hello, I am currently working on a board with LPC2378 using FreeRTOS. I would like to do interrupt for GPIO port 2.2 and 2.3 at both falling...

Hello, I am currently working on a board with LPC2378 using FreeRTOS. I would like to do interrupt for GPIO port 2.2 and 2.3 at both falling and rising edge. I have tested the reading of the ports work well. But the interrupt part never works. The following is a my code: // All the include stuffs void readPos()__attribute__((naked)); int trigger; int main(){ // initialize G...



The 2024 Embedded Online Conference