PWM Conflicts with ADC on LPC2148

Started by "Ben...@yahoo.com [lpc2000]" in LPC20003 years ago 1 reply

I am using the LPC2148 with a 12MHz crystal using a 5 multiplier to have 60MHz CCLK. PCLK running at same frequency as CCLK. I had some working...

I am using the LPC2148 with a 12MHz crystal using a 5 multiplier to have 60MHz CCLK. PCLK running at same frequency as CCLK. I had some working software triggered ADC code. When I added a PWM output with a match interrupt, the ADC always returns 0 (the PWM output is working correctly) I can't figure out why this is happening. Any help would be appreciated Here is a link to the PastBin for the co...


lpc2387 wake up from power down problem

Started by "ger...@yahoo.gr [lpc2000]" in LPC20003 years ago 3 replies

Hi all, I am facing a problem during wake up from power down via RTC interrupt. Let me explain; my LPC uses a battery as power back up when...

Hi all, I am facing a problem during wake up from power down via RTC interrupt. Let me explain; my LPC uses a battery as power back up when external power supply is down. When it switches in PD mode I wake up the MCU via RTC interrupt to check the battery level via A/D and then go to PD again. I have no idea when but some times when it wakes up from RTC INT I see to the multimeter that the devi...


ADC returns 0 when used with PWM on LPC2148

Started by "ben...@yahoo.com [lpc2000]" in LPC20003 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


Using GPIO2 interrupts with LPC2478

Started by "tyc...@gotadsl.co.uk [lpc2000]" in LPC20003 years ago 1 reply

Hi I am trying to using P2.27 and P2.26 as input interrupt pins. I understand the these interrupts shares the EXINT3 interrupt vector Has...

Hi I am trying to using P2.27 and P2.26 as input interrupt pins. I understand the these interrupts shares the EXINT3 interrupt vector Has anyone have an example using this function Regards Jean-Jacques


LPC2387 USB device

Started by "Bal...@foo.is [lpc2000]" in LPC20003 years ago 4 replies

I'm looking for some example USB HID device code for LPC2387 that compiles with GCC. The Keil example USBHID is horribly written, uses a lot of...

I'm looking for some example USB HID device code for LPC2387 that compiles with GCC. The Keil example USBHID is horribly written, uses a lot of tricks with the _packed keyword inside type casts and such that breaks it when compiled with a different compiler. Aside from that the Keil example is also so ugly that even though it works fine in uVision it's just not very good code to base a proje...


Re: Flash Magic / LPC1114 with internal OSC

Started by "sre...@gmail.com [lpc2000]" in LPC20003 years ago 3 replies

I am new in 32 bit micro controllers. Now I am using LPC11A12FBD48 in my project. I planing to use FLASH MAGIC for burning my hex file. I don't...

I am new in 32 bit micro controllers. Now I am using LPC11A12FBD48 in my project. I planing to use FLASH MAGIC for burning my hex file. I don't have a development board with me. So I planed to design a new PCB. Now I am so confusing with the TXD and RXD pin for burning purpose. In its user manual ti is saying like there are 4 TXD and 4 RXD pin. For burning my program which pin should i use? or wha...


ADC analog input capacitance

Started by "hyu...@yahoo.com [lpc2000]" in LPC20003 years ago 2 replies
ADC

Hello everyone I have a doubt that puzzles me on LPC1769 datasheet about ADC It says that there is a maximum analog input capacitance for the...

Hello everyone I have a doubt that puzzles me on LPC1769 datasheet about ADC It says that there is a maximum analog input capacitance for the ADC (Cia). Is this the internal capacitance of the adc or the maximum capacitance i can connect to the adc input?? In http://www.nxp.com/documents/data_sheet/LPC1769_68_67_66_65_64_63.pdf In figure 29 (page 69) the capacitance (Cia) is connected outside ...


LPC17xx Virtual Com Host mode example and USB Host able to detect the class of the connected device

Started by "'M....@micronengineering.it [lpc2000]" in LPC20003 years ago 2 replies

Hi all, 1. has anyone tried to implement a Virtual Com Host interface (CDC Host) or has anyone found a working example? I tried to modify a...

Hi all, 1. has anyone tried to implement a Virtual Com Host interface (CDC Host) or has anyone found a working example? I tried to modify a LUFA VCOM Host example but seems not working. 2. Has anyone tried to realize an USB Host application supporting different devices classes and detecting the right device connected so that is possible to redirect the EVANT callback functions to the rig...


sdhc card / usb mass storage device problem

Started by "Tim...@sabretechnology.co.uk [lpc2000]" in LPC20003 years ago 3 replies

Hi, I've made a little SD card audio playback board for someone using LPC1754. It all works fine and will play from any type and size of...

Hi, I've made a little SD card audio playback board for someone using LPC1754. It all works fine and will play from any type and size of card. The board can be connected as a USB mass storage device. However on Windows 7 only, some SD cards are not readable by the PC. After much trawling through USB packets it appears that Windows is asking for the wrong sector when it requests the boot sect...


Re: Ethernet Cofiguration

Started by "rij...@yahoo.com [lpc2000]" in LPC20003 years ago 1 reply

How to set up Ethernet in Lpc2148 Microcontroller? what basic information do i need to start ethernet?

How to set up Ethernet in Lpc2148 Microcontroller? what basic information do i need to start ethernet?


Ask a Question to the EmbeddedRelated community

To significantly increase your chances of receiving answers, please make sure to:

  1. Use a meaningful title
  2. Express your question clearly and well
  3. Do not use this forum to promote your product, service or business
  4. Write in clear, grammatical, correctly-spelled language
  5. Do not post content that violates a copyright