EmbeddedRelated.com

PINMODE effective for GPIO only?

Started by reich_wolfgang in LPC200014 years ago 3 replies

LPC24xx: For GPIO port pins, does the PINMODE pull up/down setting also have effect when the pin is configured not for GPIO, but for other...

LPC24xx: For GPIO port pins, does the PINMODE pull up/down setting also have effect when the pin is configured not for GPIO, but for other functions? The manual says "The PINMODE registers control the on-chip pull-up/pull-down resistor feature for all GPIO ports." I'm not sure if this means GPIO-accessible ports in general or only ports actually configured for GPIO function. -----------------...


GPIO issue on LPC2368

Started by danielgl88 in LPC200014 years ago 3 replies

I've met a confusing problem. GPIO pins supposed to work as a input/output that we've defined right? But the problem is I can made the GPIO-able...

I've met a confusing problem. GPIO pins supposed to work as a input/output that we've defined right? But the problem is I can made the GPIO-able pins on port2.x as GPIO, tested them and they work well. But when I try to define GPIO-able pins on port 0.x and 1.x it seems that they're not working. Is there any other state that I should define on these pins beside PINSEL, PINMODE, FIODIR? FYI, ...


Extint3 and GPIO Interrupts

Started by prab...@yahoo.co.in in LPC200014 years ago 1 reply

Hi all, In LPC236x series,I have to support GPIO interrupts for two pins(in port 0 or port 2).I have also supported P2.13 as normal GPIO.Is...

Hi all, In LPC236x series,I have to support GPIO interrupts for two pins(in port 0 or port 2).I have also supported P2.13 as normal GPIO.Is it possible to support both features simultaneously?? Because,EINT3 channel is shared with GPIO interrupts.So i am assuming i have to configure p2.13 as external interrupt for supporting GPIO interrupt.If so,How can i support both features??? If ...


Question about JTAG pins as GPIO on LPC2148

Started by senhoruilson in LPC200015 years ago 4 replies

Hello All, im designing a weather datalogger using LPC2148 and i ran out of available GPIO pins to accomplish all the functions i need (...

Hello All, im designing a weather datalogger using LPC2148 and i ran out of available GPIO pins to accomplish all the functions i need ( unless i use the JTAG pins as GPIO ). So, here is my idea on how to use the share the JTAG pins without loosing the JTAG functionality completelly (i would share the JTAG pins with my LCD control GPIO pins .) I could have a jumper on a GPIO pin. ...


5V GPIO output with single resistor

Started by Marko Pavlin in LPC200018 years ago 6 replies

I have 5V part connected to LPC2148 GPIO. Unfortunately, the input of 5V part has lower limit for VinH above 3,5V. Digital signals are generated...

I have 5V part connected to LPC2148 GPIO. Unfortunately, the input of 5V part has lower limit for VinH above 3,5V. Digital signals are generated by LPC, the 5V part is input only (not bidirectional). I checked one trick: I connected resistor between GPIO and 5V. Then I cleared IOPIN bit and switched GPIO direction IODIR bit. That's the logic: To set 0V: GPIO = 0, IODIR = output To set...


Simple GPIO not working completely?!

Started by active_si in LPC200015 years ago 3 replies

Hi! I have a MCB2300 board and I'm playing around with simple GPIO input/output. If I extend the blinky example from keil so that the P2.8...

Hi! I have a MCB2300 board and I'm playing around with simple GPIO input/output. If I extend the blinky example from keil so that the P2.8 is also "blinking" it works, but if I want to expand it so that any pin from the P0 would blink or take input it doesn't work. Also in the uVision debuger when I observe the Fast GPIO Port 0 and Fast GPIO Port 2 there is the difference where


LPC17xx GPIO bit-banding slower ?

Started by talikan in LPC200014 years ago 8 replies

Hello, I'm quite new to ARM programming and then I'm starting with something simple : experimenting with GPIO on my LPC1756. BTW, I'm using...

Hello, I'm quite new to ARM programming and then I'm starting with something simple : experimenting with GPIO on my LPC1756. BTW, I'm using Codesourcery G++ lite + Eclipse + JLINK, and my LPC1756 is running at 4MHz on the internal oscillator. My aim was to see how fast the GPIO could go... 1) using CMSIS' GPIO_SetValue and GPIO_ClearValue, I could reach 125kHz as output frequency. As I...


How can I control GPIO port2/3?

Started by janesleecn in LPC200020 years ago 3 replies

Hi, Dear all I'm using a LPC2214 in my project. and have released P2.31:8 as a GPIO but P2.7:0 as an external memory data bus....

Hi, Dear all I'm using a LPC2214 in my project. and have released P2.31:8 as a GPIO but P2.7:0 as an external memory data bus. Strangely, I can't control the behavior of P2.31:8 because I can't find PORT2's GPIO register(IOPIN2,IODIR2..). How can I do this? Tha


LPC2368 and GPIO wake up seems to be broken in hardware...

Started by arti_tevs in LPC200014 years ago 4 replies

Hi folks. Already for several hours, I am trying to use GPIO interrupts (in this case special for P0.18) to wake up the CPU. Ok the setup is...

Hi folks. Already for several hours, I am trying to use GPIO interrupts (in this case special for P0.18) to wake up the CPU. Ok the setup is pretty easy: // react on falling edge IO0_INT_EN_F |= (1 < < 18); IO0_INT_EN_R |= (1 < < 18); // setup pin as input (with pull-up enabled) FIO0DIR &= ~(1 < < 18); PINSEL1 &= ~(3 < < 4); PINMODE1 &= ~(3 < < 4); // wake up on GPIO INTWAKE |= GPIO0


GPIO - Pins

Started by Thomas Weber in LPC200020 years ago 10 replies

Could it be, that i have to pull-up all gpio-pins, i want use? I have a pull-down on a gpio-pin, because the wire is normally on...

Could it be, that i have to pull-up all gpio-pins, i want use? I have a pull-down on a gpio-pin, because the wire is normally on low, but the wire is never on a high level. Thomas


Loading data serially on a GPIO pin.

Started by Dhinesh in LPC200013 years ago 12 replies

Hello; I am new to ARM. i am using LPC2119 development board. i need to send a array of hexadecimal value serially to a GPIO. in simpler way is...

Hello; I am new to ARM. i am using LPC2119 development board. i need to send a array of hexadecimal value serially to a GPIO. in simpler way is i need to interface 74hc595 shift register to ARM. i dont want to interface with SPI, i need to do it manually using GPIO. I did some programming but it shows error. I use Keil uvision, realview compiler. Here the program. #include #de


about GPIO interrupt.

Started by sukh...@yahoo.co.in in LPC200015 years ago 4 replies

Today when i am reading the user manual of LPC23xx for LPC2378. i have found that we can generate interrupt on GPIO 0 and 2 ports. But i have not...

Today when i am reading the user manual of LPC23xx for LPC2378. i have found that we can generate interrupt on GPIO 0 and 2 ports. But i have not found any VICVectAddr crossponding to port interrupt. then how can i generate interrupt by GPIO. here i am not talking about external interrupt like EINT0,EINT1,EINT2,EINT3. kindly tell me. Thanks Looking for local information? Find it on Ya...


GPIO Port 0 bug?

Started by "h.belig" in LPC200015 years ago 4 replies

Hello, the problem seems to be simple, nevertheless I could not solve it: I want to output a word to PORT 0. This is the...

Hello, the problem seems to be simple, nevertheless I could not solve it: I want to output a word to PORT 0. This is the initialisation: PINSEL0 = 0; // P0[15]..[0] as GPIO (default) PINMODE0 = 0; // with pull-up resistor (default) PINSEL1 = 0; // P0[31]..[16] as GPIO (default) PINMODE1 = 0; // with pull-up resistor (...


GPIO read gives wrong value in 17xx

Started by prab...@yahoo.co.in in LPC200014 years ago 13 replies

hi all, Is any one facing following Issue? I have set some gpios(leds).LEDs are on.But if i read that gpio value means it gives value...

hi all, Is any one facing following Issue? I have set some gpios(leds).LEDs are on.But if i read that gpio value means it gives value 1.I have set 15th bit of PCONP also.So i am suspecting gpio reads(FIOPIN register)???i am using lpc17xx.h from FreeRTOSdemo code. any idea about what wrong in this issue??? Thank ------------------------------------


How to find if LPC2214 is 00 or 01

Started by "parretti.francesco" in LPC200014 years ago 8 replies

Hi! I'm a newbie, so sorry if I post a stupid question. This is my problem: I'have to work on a board with LPC2214 I try to run a simple code...

Hi! I'm a newbie, so sorry if I post a stupid question. This is my problem: I'have to work on a board with LPC2214 I try to run a simple code (like LED blinking) for fast GPIO PORT0 , but nothing happens, otherwise with standard GPIO PORT0 it works correctly. My trouble is that ARM is LPC2214/00 (without FAST GPIO) and not LPC2214/01. Using keil ULINK2 can I detect the type of ARM??? Thx --...


LPC2364 GPIO Interrupt Problem

Started by grady_sean in LPC200016 years ago 3 replies

Hello all, I am trying to use a falling edge GPIO interrupt on P0.11. I setup the pin as an input and have tested it as such and it seems...

Hello all, I am trying to use a falling edge GPIO interrupt on P0.11. I setup the pin as an input and have tested it as such and it seems to work fine. PINSEL0 &= 0xFF3FFFFF; PINMODE0 &= 0xFFBFFFFF; // Set the pins to be GPIO inputs. FIO0DIR1 &= 0xF7; // 11110111 I also setup the IO0_INT_EN_F to enable the falling edge interrupt. IO0_INT_EN_F &= 0x800; Also then ...


LPC2138 GPIO

Started by dimed77 in LPC200019 years ago 8 replies

Hi, Does the LPC2138 P0.10 pin have special electrical specs.? When configured as GPIO, it goes to only 2V when in logic '1' output,...

Hi, Does the LPC2138 P0.10 pin have special electrical specs.? When configured as GPIO, it goes to only 2V when in logic '1' output, no load. Tried with 2 different chips already. Could someone give me a hint? Thanks :) Di


TD1(pin 22) on LPC2292/LPC2294 as GPIO

Started by Boris Kralik in LPC200018 years ago 9 replies

Hi. I want to use TD1 pin on LPC2292/LPC2294 as output, but in manual is not ports to GPIO. Is possible to use TD1 as GPIO ? If yes, how it...

Hi. I want to use TD1 pin on LPC2292/LPC2294 as output, but in manual is not ports to GPIO. Is possible to use TD1 as GPIO ? If yes, how it make it ? Thx.


Reg: Weired PCONP Reg Issues in LPC1764,FreeRTOS

Started by prab...@yahoo.co.in in LPC200014 years ago 5 replies

Hi all, I am using lpc1764 with FreeRTOS.I am using LPC17xx.h file from FreeRTOS Demo code(1768,redsuite).After Power up,i have read PCONP...

Hi all, I am using lpc1764 with FreeRTOS.I am using LPC17xx.h file from FreeRTOS Demo code(1768,redsuite).After Power up,i have read PCONP and its value is 0xe.but as per user guide reset value is 0x03BE.Any ideas.????? GPIO's functionalities not working properly.Which means Couldn't set GPIO pins(cofigure as GPIO,output and set to high).It shows always zeros.any idea??? In FreeRTOS dem...


GPIO on LPC24XX with IAR EWB

Started by "mats.sernfalt" in LPC200015 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 ...