EmbeddedRelated.com
Memfault Beyond the Launch

GPIO Interrupt lpc1768

Started by "maike.drewitz" in LPC200013 years ago 7 replies

Hey, i want to generate a GPIO Interrupt at the raising edge on Port2.10 and at the falling edge on Port0.21. Is this posible? I have tried it...

Hey, i want to generate a GPIO Interrupt at the raising edge on Port2.10 and at the falling edge on Port0.21. Is this posible? I have tried it that way but it doesn't run, maybe anyone can take a look at this and help me, thanks =) LPC_PINCON-> PINSEL4 = 0x01000000; // set P2.12 as EINT2 LPC_GPIOINT-> IO2IntEnF = 0x1400; // Port2.12 und 2.10 falling edge LPC_GPIOINT-> IO0IntEnF = 0x200


Configuring GPIO on lpc2468

Started by khader_s_s in LPC200016 years ago 6 replies

Hi I have an lpc2468 board where I have uart0 and a GSM module connected to uart1 and a GPS module connected to uart2 where UART0= P0.2 ~...

Hi I have an lpc2468 board where I have uart0 and a GSM module connected to uart1 and a GPS module connected to uart2 where UART0= P0.2 ~ P0.3 UART1= P2.0 ~ P2.7 UART2= P0.10 ~ P0.11 UART3= P0.25 ~ P0.26 I am trying set GPIO for this. PINSEL0 |= 0x00500050; /* P0.2 TXD0 , P0.3 RXD0 & P0.10 TXD2 , P0.11 RXD2 */ PINSEL1 |= 0x003b0000; /* P0.25 TXD3 , P0.26 R...


LPC2103 GPIO interfering with PWM

Started by soufeazie in LPC200017 years ago 2 replies

Hello, I am trying to control a small dc motor along with two servos using an LPC2103. I am having a strange problem where the servos go crazy...

Hello, I am trying to control a small dc motor along with two servos using an LPC2103. I am having a strange problem where the servos go crazy when the dc motor is actuated. This dc motor is driven by an h-bridge circuit, so it is controlled with 2 GPIO pins from the microcontroller. I chose pin 8 and pin 9 because it didn't look like they interfered with the pins needed for PWM. Could so...


LPC17xx Powerdown mode

Started by Nico Christie in LPC200013 years ago 4 replies

Hello again! I'm trying to set an LPC1751 to enter Powerdown mode and wake up after either RTC alarm irq or GPIO irqs. As far as I read, any...

Hello again! I'm trying to set an LPC1751 to enter Powerdown mode and wake up after either RTC alarm irq or GPIO irqs. As far as I read, any enabled irq wakes the processor from sleep modes (opposed to other LPC uC's that have a wake-up enable register.bit for every peripheral). I have the following setup for GPIO: [code] GPIOSetDir ( PORT0, 6, INPUT ); GPIOSetDir ( PORT0, 7, INPUT...


5 Volt Tolerant I/O Pins

Started by tmasyl in LPC200016 years ago 2 replies

Greetings: I noticed the LPC2103, P0.3 and P0.18 GPIO pins, which can alternately be control block assigned to I2C SDA data pin...

Greetings: I noticed the LPC2103, P0.3 and P0.18 GPIO pins, which can alternately be control block assigned to I2C SDA data pin functions, require pull up resistors when set to GPIO output mode. I also noticed that other 5 Volt Tolerant pins do not appear to need pullups. Are the alternate I2C SDA pins of unique design compared to the rest - possibly conventional open drain without...


Fast GPIO vs Slow GPIO on /01

Started by hschew00 in LPC200013 years ago 2 replies

If a port pin was configured as I/O in the beginning for non /01 chip, and then later on was swap with /01 version with SCS = 3, but leave the...

If a port pin was configured as I/O in the beginning for non /01 chip, and then later on was swap with /01 version with SCS = 3, but leave the rest of the fast port registers at reset default values, what will happen? On the other hand, if all the port registers have been changed to fast port registers, but SCS was accidentally left at default 0, what will happen? Why not NXP just use the sa...


LPC2138 GPIO port1

Started by Michal Krestan in LPC200017 years ago 3 replies

Hi All, does anybody have idea, how to set pins P1.28-P1.31 as outputs on LPC2138? I've got at IODIR1=0xFFFF0000 and for example P1.26 works...

Hi All, does anybody have idea, how to set pins P1.28-P1.31 as outputs on LPC2138? I've got at IODIR1=0xFFFF0000 and for example P1.26 works well as output, but still no success between P1.28 and P1.31. Michal


USB without some signals

Started by ostehaps01 in LPC200015 years ago 3 replies

Hallo I have a question regarding USB in the LPC2478. Is it possible to use the USB as a host, if I done use the signal USB_POWERx and...

Hallo I have a question regarding USB in the LPC2478. Is it possible to use the USB as a host, if I done use the signal USB_POWERx and USB_OVERCRx ? Im planing on using those GPIO's for something else. Its not clearly in the LPV2478 data sheet. /Thomas ------------------------------------


how read ibutton (ds1990 )

Started by Mehmet Kurnaz in LPC200017 years ago 1 reply

hi all i use lpc2138 and have to read ds1990a ibutton.is there anyone who has source code for this.and another problem is how do i...

hi all i use lpc2138 and have to read ds1990a ibutton.is there anyone who has source code for this.and another problem is how do i initialize the input pin from ibutton.it is on p0.20 (so gpio or eint3).you see i am new.So thanks Mehmet Kurnaz __________________________________________________


JTAG RTCK question

Started by seangra in LPC200018 years ago 2 replies

I see that people are saying that the RTCK line for JTAG debugging isn't used. Does this mean that I can use this as a GPIO even when ...

I see that people are saying that the RTCK line for JTAG debugging isn't used. Does this mean that I can use this as a GPIO even when using the JTAG debugger?


JTAG Interface on LPC-2478

Started by Jean-Jacques Dauchot in LPC200014 years ago 1 reply

Hi Is it possible the use the JTAG interface signals pins as GPIO. I do not use the JTAG. I recall a while back that the is a way to...

Hi Is it possible the use the JTAG interface signals pins as GPIO. I do not use the JTAG. I recall a while back that the is a way to disable the TRACE/JTAG functions in the chip Regards Jean-Jacques ------------------------------------


Fast GPIO on LPC2294

Started by jdauchot in LPC200015 years ago 3 replies

Hi I am trying to use FGIO on LPC2294 and I cannot get the ports to toggle. I have set SCS = 3 to enable Port 0 and Port 1 to go fast...

Hi I am trying to use FGIO on LPC2294 and I cannot get the ports to toggle. I have set SCS = 3 to enable Port 0 and Port 1 to go fast Then I use FIO1DIR ,FIO1SET , FIO1CLR etc Can anyone give me a clue what I am doing wrong Regards Jean-Jacques ------------------------------------


controlling P2.9 on lpc2368

Started by ben_fnr in LPC200016 years ago 4 replies

I have a very wierd problem and wonder if anyone else here has experienced anything similar. I am trying to use P2.9 as an output port. the...

I have a very wierd problem and wonder if anyone else here has experienced anything similar. I am trying to use P2.9 as an output port. the datasheet has this pin as the following. P2[9]/ USB_CONNECT/ RXD2/ EXTIN0 In my code I have the following PINSEL4 &= ~(BIT32_19 | BIT32_18 ); /* P2.9 GPIO pin */ PINMODE4 &= ~(BIT32_19 | BIT32_18 ); /* use pull up resistor */ FIO2MASK =...


SPI0 on LPC2148

Started by Sutton Mehaffey in LPC200017 years ago 5 replies

I know somebody is going to chastise me with 'RTFM', but I have and I have also reviewed numerous posts on this, but I still am unsure. So, I...

I know somebody is going to chastise me with 'RTFM', but I have and I have also reviewed numerous posts on this, but I still am unsure. So, I will ask my version of the question. In reviewing several SPI posts, it appears that several uCs don't allow SSEL0 to be used as GPIO as a chip select when used as a master. SSEL0 must be selected as such thru PINSEL and tied high, otherwise SPI do...


LPC2368 GPIO pin state

Started by Kathy Wright in LPC200015 years ago 5 replies

I've recently moved up to the LPC236x family and need to understand the pin= states under all conditions.=A0 I do understand that before pins...

I've recently moved up to the LPC236x family and need to understand the pin= states under all conditions.=A0 I do understand that before pins are assigned as an output, they are all co= nsidered inputs.=A0 I recall (from somewhere) that they are loosely tied hi= gh internally and my probing around indicates that to be the case.=A0 This = also seems to be the case during Reset (pressing the...


LPC2468

Started by Michael in LPC200014 years ago 7 replies

I need the groups help desperately. Regarding the LPC2468 does anyone know what we should do with unused GPIO pin? Do we ground them, add a pull...

I need the groups help desperately. Regarding the LPC2468 does anyone know what we should do with unused GPIO pin? Do we ground them, add a pull up or down resistor, or just leave them alone?? I have searched the 700+ page user's manual, the NXP website, our group and the Internet and can not find a valid answer to this question. I have sent an email to NXP support and have not received a response...


LPC2138 with P0.11 not working

Started by nmitech in LPC200019 years ago 2 replies

Does anyone have problem to use P0.11 as GPIO? I built two prototypes, and both have the same problem on the port, P0.11 . I ...

Does anyone have problem to use P0.11 as GPIO? I built two prototypes, and both have the same problem on the port, P0.11 . I checked my circuit there is no short, nor broken trace from the CPU. I can toggle any port, except P0.11. Maybe my LPC2138 samples are bad? Any info


LPC2368 Crossworks dabort_handler

Started by mavonino in LPC200017 years ago 1 reply

Hi, Im running a modified version of Keils HID example using the Crossworks compiler. My main function looks like this int main (void)...

Hi, Im running a modified version of Keils HID example using the Crossworks compiler. My main function looks like this int main (void) { libarm_enable_irq(); SCS |= 0x01; //Enable Fast GPIO on P0 and P1 USB_Init(); /* USB Initialization */ USB_Connect(TRUE); /* USB Connect */ while (1) { //do work } } 1) Im having...


How to capture 25ms, Infrared (TSOP1138)?

Started by serg...@yahoo.com in LPC200015 years ago 9 replies

Dear friends, I use WinARM and need your help. I have a LPC2124 have connected the TSOP data output to GPIO P0.8 and to CAP P.30. I will...

Dear friends, I use WinARM and need your help. I have a LPC2124 have connected the TSOP data output to GPIO P0.8 and to CAP P.30. I will capture in 1us resolution and will output it after the 25ms are complete via UART0 to the terminal. I know these are 25000 samples. Who can give me an example to solve this big problem for me. Thanks in advanced. BR, Sergej ------------------------------...


Matrix keyboard

Started by Morphy Zhores in LPC200018 years ago 9 replies

Hi, I am planning to interface a matrix 4x4 keyboard to LPC2138 using interrupts. I am using the keil MCB2130 board. I am thinking of using...

Hi, I am planning to interface a matrix 4x4 keyboard to LPC2138 using interrupts. I am using the keil MCB2130 board. I am thinking of using one interrupt pin and 8 GPIO to receive the data. Please advice regarding the interrupt to be given. Help regarding is really appreciated. Regards, Morphy. ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Group



Memfault Beyond the Launch