gcc > 3.4 and multiple vic irq's

Started by Christian Klippel in LPC200012 years ago 5 replies

hello dear list people, [links at the end of the message] recently i ran into a rather strange problem concerning gcc toolchains newer...

hello dear list people, [links at the end of the message] recently i ran into a rather strange problem concerning gcc toolchains newer than version 3.4 and multiple vic irq's. in my code [1] i'm using the vic with three interrupt sources assigned. these are pwm on slot0, timer1 on slot1 and timer0 on slot15. pwm is used to play sound, timer1 is used for encoding infrared and timer0 ...


PWM & UART at the same time

Started by andypselon in LPC200014 years ago 4 replies

Hallo Da mein englisch nicht sehr gut ist, versuch ichs einfach mal auf deutsch...:-) Plattform: LPC2129 auf dem Olimex-LPC-P212X ...

Hallo Da mein englisch nicht sehr gut ist, versuch ichs einfach mal auf deutsch...:-) Plattform: LPC2129 auf dem Olimex-LPC-P212X Mein Problem: Ich erzeuge an Pin P0.1 per PWM einen Takt. Gleichzeitig m?chte ich die UART1 (P0.8/P0.9) nutzen. PINSEL wurde richtig gesetzt! Beides separat funktioniert wunderbar. Sobald i


PWM for the NXP LPC2368

Started by stuper_duck in LPC200012 years ago 1 reply

I am hoping that someone could help me to understanding how to generate a PWM Clock ouput. In short: I am attempting to generate a 1Mhz...

I am hoping that someone could help me to understanding how to generate a PWM Clock ouput. In short: I am attempting to generate a 1Mhz output using PWM1_5 of the LPC2368 and I seem to be having some difficulty in getting the registers setup correctly. In more detail: I am attempting to generate a clock (1Mhz 50% duty cycle) using PWM1_5 for my output. The input to the 2368 uses ...


ADC returns 0 when used with PWM on LPC2148

Started by "ben...@yahoo.com [lpc2000]" in LPC20005 years ago 4 replies

I am writing some code for the LPC2148. I have some working ADC code using AD0.3 on P0.30. After adding PWM using PWM5 on P0.21 with match...

I am writing some code for the LPC2148. I have some working ADC code using AD0.3 on P0.30. After adding PWM using PWM5 on P0.21 with match interrupts, the ADC always returns 0. I have been unable to determine why. Any help would be appreciated. Here is the code for each: ADC Code: // Select P0.30 as AD0.3 PINSEL1 |= (1 < < 28); int GetADCResult(void) { int result = 0; // Perform


Measuring PWM pulse

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

Hello, Im using ds2438 1 wire communication for monitoring battery voltage. Since it is 1 wire communication writing and reading a bit a in...

Hello, Im using ds2438 1 wire communication for monitoring battery voltage. Since it is 1 wire communication writing and reading a bit a in time slots, to implement this time slot im using PWM to write and initiate read. when it comes to read i have problem, 1 wire communication requires pulling the data wire for a minimum of 1us to initiate read, after which the data is available from ds243...


help - lpc2103 timer0 capture code / timer1 pwm output code

Started by hjiongh in LPC20009 years ago 2 replies

Hi, I have a question. Now I'm using LPC2103. I use timer0 to capture PWMInput . Frequency range is from 1Hz to 4KHz. I use timer1 and timer2...

Hi, I have a question. Now I'm using LPC2103. I use timer0 to capture PWMInput . Frequency range is from 1Hz to 4KHz. I use timer1 and timer2 to PWM output , 100Hz, 50% duty cycle. My Fpclk is 11059200*4 . Capture code: void Timer_Capture_Init(void) { PINSEL0 &= 0xffffcfff; PINSEL0 |= 0x00002000; // CAP0.2, P0.6 , Freq T0PR = 0x00; ...


PWM settings

Started by MattKav in LPC200014 years ago 1 reply
PWM

I am confused about setting up the PWM code. Below is my initialization code. Here is my confustion... When I set PWMMR4 to 0, I get a very...

I am confused about setting up the PWM code. Below is my initialization code. Here is my confustion... When I set PWMMR4 to 0, I get a very short logic 1 output. I would expect it to always be 0. When I set PWMMR4 to 100, it is always logic 0 output. I would expect it to always be 1. When I set PWMMR4 to 101, it is always logic 1 output as expected.


ARMwizard updated to version 2.1 (SPI/SSP added)

Started by Alexan_e in LPC20008 years ago

ARMwizard updated to version 2.1 , added SPI/SSP settings What is new: . Fixed: There were cases where the CCR1.0 checkboxes were not shown...

ARMwizard updated to version 2.1 , added SPI/SSP settings What is new: . Fixed: There were cases where the CCR1.0 checkboxes were not shown for PWM . Fixed: The PCLK divider range was 1/1 - 1/8 instead of 1/1 - 1/31 for LPC177x/8x . Fixed: The PWM power control bits (PCONP) were not set to turn on the peripheral in LPC177x/8x . Fixed: The ADC1 power control bits (PCONP) were not set t...


Started by Amr Sabri in LPC200010 years ago 1 reply

Dear members, Does any one have a pwm driver for lpc2294 Thanks in advance Best Regards Amr Sabri

Dear members, Does any one have a pwm driver for lpc2294 Thanks in advance Best Regards Amr Sabri


PWM output voltage

Started by mrobins99 in LPC200012 years ago 7 replies
PWM

I go t the PMW functioning, but I am seeing 1.8V for the pulse height. I was expecting 3.3V. Any idea why this is?

I go t the PMW functioning, but I am seeing 1.8V for the pulse height. I was expecting 3.3V. Any idea why this is?


Generate IR?

Started by ee_gary in LPC200014 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


Micro Selection

Started by Robert Adsett in LPC200012 years ago 3 replies

Up until now I've been working with LPCs w/o A/D. I now have a fairly short turn around project that is going to need A/D inputs. Not many...

Up until now I've been working with LPCs w/o A/D. I now have a fairly short turn around project that is going to need A/D inputs. Not many only 2 although I might be able to use more. I've a couple of outputs I need to provide as well but I suspect I will use PWM for that and filter although I may stoop to SPI based D/A for that. I don't expect memory to be critical but given a choic...


Using the same pin of LPC2294 for two peripherals

Started by arm_techie arm_user in LPC200012 years ago 2 replies

Hi all, I am using LPC2294 for one of my application. Is it possible for me to use the same pin for more than one function. In other...

Hi all, I am using LPC2294 for one of my application. Is it possible for me to use the same pin for more than one function. In other words, Can I use the UART pins for PWM? Awaiting responses, OST


PWM's and UART

Started by amas...@... in LPC200014 years ago 4 replies

Hi, I'm studying LPC2214 for use on a new project. I have some doubts and I think someone could help me in this forum. 1) I need to...

Hi, I'm studying LPC2214 for use on a new project. I have some doubts and I think someone could help me in this forum. 1) I need to control 3 step motors. They are completely independent. In the Philips LPC User Manual, they say it's better use channels 2, 4 and 6 for double edge. It's not clear to me how can I make one motor accelerate while another one is in it maximum speed i.


LPC2132 PWM Manual Error?

Started by sig5534 in LPC200013 years ago 1 reply

On page 207 of the current UM10120 manual, they give the PWMMR1R bit as (1). It looks to me like it is suppose to be (4). If it is (1) then...

On page 207 of the current UM10120 manual, they give the PWMMR1R bit as (1). It looks to me like it is suppose to be (4). If it is (1) then it is the same bit as PWMMR0R which doesn't really make sense. Anyone know? Chris.


Occasional Manuf issue

Started by basicnode in LPC200010 years ago 2 replies

We are using the LPC2103 and using the ISP to download code. On a handful of boards we built out of a few thousand, we see them come up with...

We are using the LPC2103 and using the ISP to download code. On a handful of boards we built out of a few thousand, we see them come up with the TXD0 line toggling at a 200KHz rate, like the PWM match was programmed. Have we somehow triggered some other test program? Anyone else seen this? When we saw the first, we figured it was a fluke, but now we have seen it repeated a few times,...


Problems with cap0.2 on LPC2106

Started by drproton2003 in LPC200013 years ago 3 replies

Hello everyone, I am working on an application that captures PWM signals from an R/C receiver. I have had a 5-channel input working well for...

Hello everyone, I am working on an application that captures PWM signals from an R/C receiver. I have had a 5-channel input working well for 4 of the channels. The problem I am encountering now is that cap 0.2 has a delay on the rising edge. For the sake of being thorough I stripped out all the extra code and am only running an interrupt on capture 0.2 and nothing else. Still the probl...


Semi-OT: ADUC ARMs

Started by drproton2003 in LPC200012 years ago 1 reply

Hello everyone, I've got a new project coming up in the near future. I've done some looking around and I think the ADUC7128 from analog would...

Hello everyone, I've got a new project coming up in the near future. I've done some looking around and I think the ADUC7128 from analog would be a good fit. I really like the built in 12-bit ADC and 6 channel PWM. From what I've seen the ADUC ARMs aren't nearly as popular as the LPCs. I'm wondering if any of you have some experience with these parts and can provide some insight. Any b...


My new board

Started by Jonathan Masters in LPC200010 years ago 5 replies

Hi all, I have built a PCB with an LPC2131 on it. It is being used to drive all six PWM outputs, so the UART connections for ISP are taken up...

Hi all, I have built a PCB with an LPC2131 on it. It is being used to drive all six PWM outputs, so the UART connections for ISP are taken up and I have to use JTAG. Its my first go with an ARM processor of any kind. Unfortunately, the PROTEL pattern for a TQFP-64 chip marks pin 1 on the overlay in the wrong corner. I didn't spot this until the board was made and the chip got warm...


Re: PLL usage

Started by simonb65 in LPC20009 years ago
PWM

ACH, I'm just curious .... why do you need to change the fclk ? are you not using a PWM output or can you not achieve the frequency...

ACH, I'm just curious .... why do you need to change the fclk ? are you not using a PWM output or can you not achieve the frequency range/target this way ? Regards, Simon. --- In l...@yahoogroups.com, "Arthur Holly" wrote: > > I am designing a fairly complex signal generator with the LPC2387. I would like to be able to change the fclk as required while the program is run