LPC2103 GPIO interfering with PWM

Started by soufeazie in LPC200012 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...


GPIO Questions!

Started by David Bermingham in LPC200015 years ago 3 replies

Hi, Im trying to interface a magnetic reader to the LPC and im having a bit of trouble regarding the GPIO lines. The code runs...

Hi, Im trying to interface a magnetic reader to the LPC and im having a bit of trouble regarding the GPIO lines. The code runs fine on OKI ARM 7 and hynix's ARM 7 so im pretty sure its not the code.The reader communicates with the micro via STROBE and DATA. I have tried usi


Re: OLIMEX LPC-E2294-1MB J Tag connector

Started by Andy Berney in LPC200011 years ago

Hi Jean-Jacques, it's pretty straight forward really (manual page 129 - table 63). Effectively, set PINSEL2 bits to the following... Bit ...

Hi Jean-Jacques, it's pretty straight forward really (manual page 129 - table 63). Effectively, set PINSEL2 bits to the following... Bit Function 0 reserved 1 reserved 2 when 0, pins P1.26 - P1.31 are set to GPIO, when 1, pins P1.26 - P1.31 are set to Debug Port 3 when 0, pins P1.16 - P1.25 are set to GPIO, when 1, pins P1.16 - P1.25 are set to Trace Port 4 ...


unnecessary external interrupt ( INT1 )

Started by topandurangs in LPC200012 years ago 1 reply

Hi all, In my application I am using INT1 as -ve edge trigger interrupt ( PINSEL0_bit.P0_3 = 0x3).I also need to check the status of...

Hi all, In my application I am using INT1 as -ve edge trigger interrupt ( PINSEL0_bit.P0_3 = 0x3).I also need to check the status of the same pin by configuring it as a GPIO( PINSEL0_bit.P0_3 = 0x0). But when i switching between GPIO & INT1 by using PINSEL ,I am getting INT1 interrupt (unnecessary interrupt). What may be the reason for it & how should i overcome it. ...


LPC17xx Powerdown mode

Started by Nico Christie in LPC20008 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...


LPC2364 Core Powerdown current is too high

Started by prab...@yahoo.co.in in LPC20009 years ago 2 replies

Hi all, Here is the detail information.Please share your knowledge and experience?? Our Power down mode configuration, 1. PCONP =...

Hi all, Here is the detail information.Please share your knowledge and experience?? Our Power down mode configuration, 1. PCONP = 0; 2. Configure All pins as GPIO Output high/Low based on Internal GPIO configuration.(PINMODEx).There is no pin is floating. 3. PCON = 0x1E; /* Power down mode with BOD Disable.*/ But in power down mode,We measured current 1.Core ...


GPIO pin not working?

Started by Markus Zingg in LPC20009 years ago 2 replies

Hi Group, I'm working on a design using an lpc2136. There I use port pin 0.10 through pin 0.13 to output some control signals (enable lines...

Hi Group, I'm working on a design using an lpc2136. There I use port pin 0.10 through pin 0.13 to output some control signals (enable lines for periphal chips). The port pins are set as GPIO, direction is output. The pins on the (custom) board are all treated the same (2.2k pull down resistor). Problem is pin 0.10, 0.12 and 0.13 work fine. Port pin 0.11 refuses to ever output a high l...


How to breakpoint on a GPIO port using Rowley Crossworks

Started by Henry in LPC20009 years ago

Hello, did anybody ever manage to set a breakpoint when a special GPIO port pin is toggled using Rowley Crossworks? It sounds simple, but I...

Hello, did anybody ever manage to set a breakpoint when a special GPIO port pin is toggled using Rowley Crossworks? It sounds simple, but I did not get it working. What is possible is setting a Data Breakpoint (Breakpoint Trigger Type set to Write) to 0x3fffc03c for instance. That is FIO1CLR. But that would stop the processor independently of the port pin that is cleared. Expressions li...


5 Volt Tolerant I/O Pins

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


GPIO problem on Ashling EVBA7 LPC2106

Started by tphatrapornnant in LPC200013 years ago 5 replies

Hi all, I'm using Ashling EVBA7 Philips LPC2100 Evaluation board (LPC2106). I got a problem about using GPIO P0.16-P0.31 as general...

Hi all, I'm using Ashling EVBA7 Philips LPC2100 Evaluation board (LPC2106). I got a problem about using GPIO P0.16-P0.31 as general input/output. I set some of these pins (P0.16-P0.31) as I did on P0.0-P0.15 pins which all were used and worked correctly. For P0.16-P0.31, it didn't work. I set pins to be output as the following: PINSEL0 &am


fast gpio immediatelly set/reset problem

Started by emre ertas in LPC200010 years ago 1 reply

Hi guys, I have a fast gpio problem. When I set or reset any fast gpio port, this pin does not change self state immediatelly. I should some...

Hi guys, I have a fast gpio problem. When I set or reset any fast gpio port, this pin does not change self state immediatelly. I should some delay routines after change pin state. If I dont use delay routine, this pin state is not changed. For example below at routine: normally state of P1.20 is logic 0, If I use some delay routines after RESET_HIGH comment , P1.20 is logic 1 but when I dont us...


PWM issue with LPC2366

Started by zvonkobharije in LPC200010 years ago 1 reply

I'm setting up PWM to make a simple AFSK modem. Though I think i'm initializing PWM the right way, but there's no output. Here's the...

I'm setting up PWM to make a simple AFSK modem. Though I think i'm initializing PWM the right way, but there's no output. Here's the code: PCONP |= PCONP_PCPWM1; // turn it on! PCLKSEL1 &= ~(BIT(13) | BIT(12)); // pclk = cclk PCLKSEL1 |= BIT(12); PINSEL4 &= ~(BIT(1) | BIT(0)); // set GPIO P2.0 to PWM1.1 PINSEL4 |= BIT(0); // set GPIO P2.0 to PWM1.1 PWM1TCR = PWM1TCR_Cou...


Fast GPIO vs Slow GPIO on /01

Started by hschew00 in LPC20007 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...


Changing IO pin direction during ISR possible?

Started by joconradt in LPC200012 years ago 1 reply

Hi LPC list! I have trouble changing the direction (input/output) of a GPIO pin during an interrupt service routine. When ADC finished a...

Hi LPC list! I have trouble changing the direction (input/output) of a GPIO pin during an interrupt service routine. When ADC finished a conversion, I would like to change a digital GPIO pin from output-LOW to tri-state (input). My LPC2103 seems to ignore changes to the IODIR register during the interrupt routine; the same code in the main loop (non ISR) seems to work well. Can anyone...


Re: LPC2101/02/03 Datasheet

Started by radoslaw_mitura in LPC200013 years ago

The block diagram in the pdf shows "GENERAL PURPOSE GPIO" mapped to "P0[31:0]" as well as "HIGH SPEED GENERAL PURPOSE GPIO" mapped to the ...

The block diagram in the pdf shows "GENERAL PURPOSE GPIO" mapped to "P0[31:0]" as well as "HIGH SPEED GENERAL PURPOSE GPIO" mapped to the same "P0[31:0]". Does it mean the pins can be connected and controlled by block connected to ARM memory bus or APB bus?


=?ISO-8859-2?Q?Re: [LPC2378] Wake up from power down mode with GPIO interrup=

Started by al_b...@vp.pl in LPC200011 years ago

a...@vp.pl napisa?: > Z...@s3group.com napisa?: > > Hi, > > > > I'm using the LPC2378 on a design where low power consumption is very...

a...@vp.pl napisa?: > Z...@s3group.com napisa?: > > 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 th


ARMwizard updated to version 2.2

Started by Alexan_e in LPC20006 years ago 1 reply

ARMwizard updated to version 2.2 What is new: ? Fixed: The GPDMA power control bit (PCONP) was not set to turn on the peripheral in...

ARMwizard updated to version 2.2 What is new: ? Fixed: The GPDMA power control bit (PCONP) was not set to turn on the peripheral in LPC23xx/24xx/17xx ? Fixed: The IOCON, GPIO, GPIO interrupts power control bit (PCONP) was not set to turn on the peripheral in LPC17xx ? Fixed: The ADC clocks comment for each conversion in cortex MCU was always 60 instead of 65 or 31 in 17xx (calculation ...


current rating

Started by urjust2oocool in LPC200010 years ago 1 reply

hi all, Can someone pls tell me how much currebt the GPIO's of LPC2468 can sink and source regards Rajeev...

hi all, Can someone pls tell me how much currebt the GPIO's of LPC2468 can sink and source regards Rajeev ------------------------------------


Generate IR?

Started by ee_gary in LPC200013 years ago 1 reply

Anyone generating IR with the LPC2000? Wondering if there are any pins that would be better to use than plain ole GPIO (i.e. MAT or PWM for...

Anyone generating IR with the LPC2000? Wondering if there are any pins that would be better to use than plain ole GPIO (i.e. MAT or PWM for instance). Thanks, Gary


LPC2138 GPIO port1

Started by Michal Krestan in LPC200012 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