EmbeddedRelated.com
The 2024 Embedded Online Conference

MSP430 Lower Power?

Started by jlowryspectrum in LPC200018 years ago 7 replies

My last project used an LPC2138. My next project is battery powered and must be able to sleep then wake up each hour. From reading various ...

My last project used an LPC2138. My next project is battery powered and must be able to sleep then wake up each hour. From reading various posts it looks like the LPC takes about 60-70uA when operating in deep sleep with RTC enabled. Anyone have experience with MSP430. First glance thru their docs indicate when in LPM3 (interrupts and timer enabled) it


DAC in LPC2138

Started by Mukund Deshmukh in LPC200017 years ago 1 reply

Hi, I am facing a strange problem. When I write DACR =0 (bit 6 to 15), the value at analogue out is not 0. The analogue out pin shows a 10 to...

Hi, I am facing a strange problem. When I write DACR =0 (bit 6 to 15), the value at analogue out is not 0. The analogue out pin shows a 10 to 20 mV. The measurement is done with precision mil voltmeter. How ever when I put 50% count ( 512) in DACR the value is exactly 1.25V I am using precision voltage source of 2.5 volt for reference voltage. Any idea what could be wrong? Warm Regards,...


LPC2138 EINT strange interrupt behaviour

Started by hus_kalydonios in LPC200017 years ago 2 replies

Hi All, I'm having a problem with an EINT interrupt. It's set for rising edge, but only enters the ISR on falling edge. I can't see where...

Hi All, I'm having a problem with an EINT interrupt. It's set for rising edge, but only enters the ISR on falling edge. I can't see where I've gone wrong. I'm using freeRTOS. Here is my code: /**** inits ****/ PINSEL0 |= mainP0_14__EINT_1; EXTMODE = mainEINT_1_EDGE_SENSITIVE /*0x2*/ | mainEINT_2_EDGE_SENSITIVE /*0x4*/; EXTPOLAR = mainEINT_1_RISING_EDGE_SENSITIVE /*0x2*/ | mai...


UART Interrupt On Bit 9?

Started by Chris in LPC200019 years ago 2 replies

Is it possible to set the LPC21xx uart to interrupt only when a character with bit 9 set (parity=1) is received? I'm looking at...

Is it possible to set the LPC21xx uart to interrupt only when a character with bit 9 set (parity=1) is received? I'm looking at the LPC2138 spec, for example, and I don't a way to do this. Many microcontrollers can do this and the LPC uart is very complete so I thought


LPC2138 and RTC running from vBatt

Started by Darcy Williams in LPC200017 years ago 2 replies

Is it possible to run the RTC from vBatt while Vdd is sitting at 0V? There seem to be mixed opinions of this on the forum and the data sheet is...

Is it possible to run the RTC from vBatt while Vdd is sitting at 0V? There seem to be mixed opinions of this on the forum and the data sheet is anything but specific. There are details about how many uA the RTC draws from vBatt when the LPC is in power-down mode, but nothing about the current draw when the only thing being powered is the RTC with power removed from everything else. Can t...


lpc2138 SPI not working

Started by shwouchk in LPC200017 years ago 8 replies

Hi! Ive been working at it for at least a week and I can't find the reason why I can't get SPI to work - I haven't looked with a scope, but...

Hi! Ive been working at it for at least a week and I can't find the reason why I can't get SPI to work - I haven't looked with a scope, but I'm pretty sure that the the device doesn't even send out a clock... otherwise it seems to work fine, which is why I'm stumped.. This is most of the code which runs the SPI - can anyone spot anything obvious? P.S. I'm using a device which uses a mod...


Corssworks CTL examples

Started by rseku in LPC200019 years ago 3 replies

I am testing simplest ever Crossworks CTL examples for builtin multi tasking. When I went through test 2 for Olimex(LPC2138), I found that...

I am testing simplest ever Crossworks CTL examples for builtin multi tasking. When I went through test 2 for Olimex(LPC2138), I found that button ISR once energized never stops.I think, that button press event should be generated only once, when button is pressed ( I am not certain if LPC is working based on Edge or Level interrupt signal) Example


flash write_image doesn't do anything

Started by "log...@sbcglobal.net" in LPC200013 years ago 5 replies

Hi I'm new to ARM processors and JTAG but have some previous experience with other micros like AVR's. I am currently trying to program my...

Hi I'm new to ARM processors and JTAG but have some previous experience with other micros like AVR's. I am currently trying to program my LPC2138 on my custom made board with an Olimex ARM-USB-TINY JTAG adapter. So far I've managed to get almost everything working, except for the config/script files for flashing to device with JTAG. When I tell it to program, the console outputs this: ...


VBat and RTC

Started by Christophe in LPC200017 years ago 5 replies

Hello, reading the newsgroup, I am quite confusing about the use of VBAT/RTC. I'am using an Embeddedartists LPC2138 board and when I power...

Hello, reading the newsgroup, I am quite confusing about the use of VBAT/RTC. I'am using an Embeddedartists LPC2138 board and when I power down this board, just leaving the VBAT connected to a cell coin (3V) to keep running the RTC, my board goes to a strange state with the reset led on and random characters on the console. Do I need to setup something specific more than to say that the R...


(wiggler) openocd configuration for LPC2148?

Started by ino-...@spotteswoode.dnsalias.org in LPC200018 years ago 4 replies

i recently upgraded my openocd copy to revision 86, and i know the commands and options have gotten more detailed over time. after googling...

i recently upgraded my openocd copy to revision 86, and i know the commands and options have gotten more detailed over time. after googling for "openocd lpc2000" i found a few links: http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/openocd_intro/index.html this URL is for the LPC2138 on keil LPC2130 board, though. yagarto.de provides a number of files, but they are containe...


I2C problem

Started by allanbr08 in LPC200013 years ago 3 replies

I'm doing a program to ready a temperature from a LM75A temp. sensor IC using I2C protocol but I'm having some problems. The device don't send the...

I'm doing a program to ready a temperature from a LM75A temp. sensor IC using I2C protocol but I'm having some problems. The device don't send the acknowledge flag and I don't know what I'm doing wrong. There is my functions to control the I2C bus. I hope someone can help me. I'm using Keil Compiler and my microcontroller is the LPC2138. Thanks void start(void) { I2C0CONCLR = 0x28; I2C0CON...


USB Dongle with FTDI232

Started by acetoel in LPC200014 years ago 3 replies

Hello to everybody. I have seen at FlashMagic that supports some USB dongle for doing ICP to the LPC2l (I'm using a LPC2138). Would it be...

Hello to everybody. I have seen at FlashMagic that supports some USB dongle for doing ICP to the LPC2l (I'm using a LPC2138). Would it be possible to use a FTDI232RL (or any compatible USB-RS232) to do ICP, and that also handles Reset and P0.14 pin? I was looking and googling for a schematic with a FTDI232 connected to a LPC2000 for ICP without success. Thanks Ezequiel ---------...


Timer Match on LPC2138

Started by allendeng881028 in LPC200013 years ago 3 replies

I wrote the code to a pin toggle when timer match, but it seems the code doesnt work. Any idea what's the problem? void ping(void){ T1MR2...

I wrote the code to a pin toggle when timer match, but it seems the code doesnt work. Any idea what's the problem? void ping(void){ T1MR2 = 200; T1MCR |= 1 <


PWMEMR register, what is it?

Started by Thomas Varghese in LPC200019 years ago 4 replies

Hello, My apologies if this has been beaten to death but I couldn't find a satisfactory answer. I'm trying to implement a PWM...

Hello, My apologies if this has been beaten to death but I couldn't find a satisfactory answer. I'm trying to implement a PWM output on an LPC2138, I see that the Keil example uses an PWMEMR register, but I couldn't find the register in the Philips documentation, nor in the include files under IAR. The "Insiders Guide to ARM7-Based Microc


UART CTI ( Character time out indicator) Interrupt

Started by swetha_araga in LPC200018 years ago 8 replies

Hi, I am using MODBUS serial communication through UART on LPC2138. My transmission works fine, but for some reason during reception, I never...

Hi, I am using MODBUS serial communication through UART on LPC2138. My transmission works fine, but for some reason during reception, I never seem to get the RDA interrupt and always get the CTI instead. I have enabled only the RBR interrupt and disabled the THRE and RX line status interrupts. Anyone has faced any similar problems? Suggestions and tips are welcome Thanks, Swetha


Ethernet addon board for LPC

Started by Michael Anburaj in LPC200019 years ago 30 replies

Hi all, Some days back I came across 2 WebPages providing Ethernet add-on cards for micro-controller using CS8900A -- which I thought...

Hi all, Some days back I came across 2 WebPages providing Ethernet add-on cards for micro-controller using CS8900A -- which I thought I would use with my LPC2106 & LPC2138 boards. I some how misplaced the web links. If anyone knows them or similar pages -- which provide cheep Ethernet add-on boards based on CS8900A, please let me know.


Code Read Protection

Started by kathy_wright_ca in LPC200018 years ago 3 replies

I'm using an LPC2138 and I've figure out how to enable code read protection by writing 0x87654321 to 0x01FC. Is there any way to load new...

I'm using an LPC2138 and I've figure out how to enable code read protection by writing 0x87654321 to 0x01FC. Is there any way to load new firmware, do a full chip erase, or disable this feature now? Since the JTAG debugger and relevant ISP commands are now not available, I'm thinking that having a bit of code that uses IAP calls to read the sector, substitute a new value, then re-write...


Crossworks tasking library questions

Started by drproton2003 in LPC200017 years ago 2 replies

Hello everyone, I've used the crossworks tasking library (CTL) in the past and it works great. I want to modify a project to use the CTL. ...

Hello everyone, I've used the crossworks tasking library (CTL) in the past and it works great. I want to modify a project to use the CTL. The problem is that this application already ties up both timers of the LPC2138 for other purposes. My idea is to use ADC interrupt, set up the prescaling and divide appropriatly in the ISR to effectively have a portion of code called every 1ms. Can ...


LPC2138 Reset Problem

Started by glerind in LPC200017 years ago

Hi, I wrote a program that read and writes from a mmc. It works ok sometimes, but when i try to write a character array more then 255,...

Hi, I wrote a program that read and writes from a mmc. It works ok sometimes, but when i try to write a character array more then 255, program resets itself. I check all the data types no problem with them, all of them are big enough for longer arrays then 255. And the weird part is; when i simulate it with keil, it gives the error "Error 65: access violation at 0x3FFFFE40: no 'rea...


LPC2138 Timer0 Interrupt

Started by dodge1955 in LPC200018 years ago 4 replies

Can anyone tell me why my interrupt is not firing? The T0IR flag is set upon rollover of the TIMER0 32 bit timer, but my code is not ...

Can anyone tell me why my interrupt is not firing? The T0IR flag is set upon rollover of the TIMER0 32 bit timer, but my code is not vectored to the interrupt code. My variable 'system_timer' never gets decremented. unsigned long system_timer, j; void decrement_timers() __irq { // occurs 896 times per second system_timer--;



The 2024 Embedded Online Conference