EmbeddedRelated.com
The 2024 Embedded Online Conference

4 x phase shift PWM modulation with LPC2138

Started by xoldikx in LPC200013 years ago 2 replies

Hello to all, Im still newbie here, I need help with PWM modulation on LPC2138. I want to riding stepper motor, I have a driver L6203, in one...

Hello to all, Im still newbie here, I need help with PWM modulation on LPC2138. I want to riding stepper motor, I have a driver L6203, in one piece of this driver there are 2 transistors, so I need 2 this drivers to riding one motor. But I want to ride motor as unipolar, so I need 4 double edge controlled pwm chanels, but procesor allow only 3 double edged controlled chanels. When I use sing...


lpc2138 Keil gives a simple error on the lcd6963.c library. I canīt solve it

Started by correoparalamierda in LPC200015 years ago 8 replies

Hi, I=B4m an spanish student and I have a problem using the library of the = T6963C LCD. I=B4m new in the world of the lpc2138 but I=B4m lost...

Hi, I=B4m an spanish student and I have a problem using the library of the = T6963C LCD. I=B4m new in the world of the lpc2138 but I=B4m lost with the u= se of the LCD library, I think It=B4s easy, however I=B4m lost with the err= or I=B4m going to tell you.=20 I need some help please. Keil gives me that error message: lcd6963.c(839): error: #513: a value of type "const unsigned char *...


LPC2138 Using IAR Compiler

Started by venu_95 in LPC200016 years ago 2 replies

Hi Friends, I just stated on a new development using IAR 5.11 compiler and LPC2138 micro controller. And used the code provided by...

Hi Friends, I just stated on a new development using IAR 5.11 compiler and LPC2138 micro controller. And used the code provided by IAR ARM/examples/NXP/LPC213x code to get started.=20 Could anyone please advise me on the following issues, 1. I was wondering whether can I the use the same files provided under "ARM/examples/NXP/LPC213x/config" directory Flash.icf, Flash.mac, RAM.ifc &...


LPC2138 JTAG connection problem

Started by mich...@yahoo.it in LPC200017 years ago 5 replies

Hi Guys, I've made a board with a lpc2138 and a 20-pin jtag connector. I've used the schematic of olimex dev board (...

Hi Guys, I've made a board with a lpc2138 and a 20-pin jtag connector. I've used the schematic of olimex dev board ( http://www.olimex.com/dev/pdf/lpc-p2138.pdf ) as starting point. I've connected the TMS,TDI,TCK, TRST and TDO pins to the connector, I've connected all power pins to 3.3V or GND, I've connected a cristal between X1 and X2 with the capacitors to GND. There are also a ...


LPC2138 Timer0 & Timer1

Started by yvesr123 in LPC200019 years ago 1 reply

Hello , I have a small soft running on the LPC2138 using CAP0.0 input & timer0 -1. I'm using Timer1 as a free running Timer (Pclk =...

Hello , I have a small soft running on the LPC2138 using CAP0.0 input & timer0 -1. I'm using Timer1 as a free running Timer (Pclk = Timer1) 1:1 Clock on CAP0.0 input clock Timer0. Match Register (MR0) is set to 200. No need for interrupt. When Timer0 match MR0 , I stop Timer1 then read it. Purpose : Setting of UART on di


Data abort in release mode, but not in debug mode. LPC2138-CrossStudio

Started by chjv...@yahoo.com.ar in LPC200016 years ago 3 replies

Hi, I use LPC2138 with CrossStudio 1.5. I have a problem when try to run my code compiled in release mode. When the code is compiled in debub...

Hi, I use LPC2138 with CrossStudio 1.5. I have a problem when try to run my code compiled in release mode. When the code is compiled in debub mode works fine. In release mode occurs a "data abort". Why can occur this? Obviously there is a diference when the compiler optimize the code in release mode. How can identify where is the place that "data abort" occurs? I will try to fix that...


LPC2138 GPIO Pull Downs ?

Started by nknight62 in LPC200018 years ago 4 replies

We have an application where we use the GPIO I/O pins on Port 1 of LPC2138 to an LCV244 buffer/driver. We found that randomly, some pins on...

We have an application where we use the GPIO I/O pins on Port 1 of LPC2138 to an LCV244 buffer/driver. We found that randomly, some pins on the buffer driver were high or low at power-up with no program loaded to control the pins. We added 32k pull downs between the 2138 and the buffer/driver inputs to pull the lines low because the GPIO lines are floating inputs before program change


LPC2138 Real Time Clock

Started by iahneyugn in LPC200019 years ago 3 replies

Does nayone have document telling how to hook up a 32.768KHz crystal to pins RTCX1 and RTCX2? What capacitors value to use in parallel to ...

Does nayone have document telling how to hook up a 32.768KHz crystal to pins RTCX1 and RTCX2? What capacitors value to use in parallel to the crystal? Thank you.


LPC 2138 Tutorials

Started by Volmir in LPC200014 years ago 5 replies

Hi people, Im looking for a place good on the net to find LPC2138 tutorials. If someone know where can i find this and want to share with...

Hi people, Im looking for a place good on the net to find LPC2138 tutorials. If someone know where can i find this and want to share with me, please, im really need it. Thanks a lot.


Fast-IO not working with pre LPC2148 parts (which identifies as LPC2138...) ???

Started by Martin Maurer in LPC200018 years ago 2 replies

Hello, i am using the following code: main() { // Switch P1.16, P0.28, P0.29, P0.30 to output (2 x Duo-LED) PINSEL1 &= ~(3 < <...

Hello, i am using the following code: main() { // Switch P1.16, P0.28, P0.29, P0.30 to output (2 x Duo-LED) PINSEL1 &= ~(3 < < ((28 - 16) < < 1)); PINSEL1 &= ~(3 < < ((29 - 16) < < 1)); PINSEL1 &= ~(3 < < ((30 - 16) < < 1)); PINSEL2 &= ~0x0c; #if 0 IODIR0 |= (1 < < 28) | (1 < < 29) | (1 < < 30); IODIR1 |= (1 < < 16); IOSET0 |= (1 < < 28) | (1 < < 29) | (1 < < 30)


Interrupt Select Register (VicIntSelect) bit positions

Started by javida13 in LPC200019 years ago 1 reply

The LPC2138 User's Manual does not provide a description of each of the 32 bits for VICIntSelect (Table39). Does anyone have this ...

The LPC2138 User's Manual does not provide a description of each of the 32 bits for VICIntSelect (Table39). Does anyone have this information? For instance, UART0 is bit 6. Barry


firmware upgrade using I2C only

Started by niri...@gmail.com in LPC200015 years ago 4 replies

Hi, I would like to program the lpc2138 flash (on board) to a new firmware by using only the i2c. Can it be done? Should I use the IAR-EW...

Hi, I would like to program the lpc2138 flash (on board) to a new firmware by using only the i2c. Can it be done? Should I use the IAR-EW ?intel-extended? output? If so, can anyone please tell me if there are any specific settings I should take care of, and which address should I start programming from? Thank you. ------------------------------------


Porting FreeRTOS to LPC2138 + GCC + MSYS + Yagarto

Started by Giuseppe Marullo in LPC200015 years ago 5 replies

Could someone tell me how to start to perform said operation? I would like to know which is the project that I need to start with for this...

Could someone tell me how to start to perform said operation? I would like to know which is the project that I need to start with for this conversion. I am guessing it is the one with LPC2368 / Eclipse more than the one with LPC2318 / Rowley. The board is a Xylo-LM, I would like to use both serials as console (I don't know at the moment which one I will use). TIA, Giuseppe ...


how read ibutton (ds1990 )

Started by Mehmet Kurnaz in LPC200017 years ago 1 reply

hi all i use lpc2138 and have to read ds1990a ibutton.is there anyone who has source code for this.and another problem is how do i...

hi all i use lpc2138 and have to read ds1990a ibutton.is there anyone who has source code for this.and another problem is how do i initialize the input pin from ibutton.it is on p0.20 (so gpio or eint3).you see i am new.So thanks Mehmet Kurnaz __________________________________________________


FreeRTOS queues and ISRs

Started by Guillermo Prandi in LPC200018 years ago 2 replies

Hi. Perhaps this is not the right place to post this, so sorry if it is not. I am implementing FreeRTOS in my LPC2138 board. I am using...

Hi. Perhaps this is not the right place to post this, so sorry if it is not. I am implementing FreeRTOS in my LPC2138 board. I am using the queue mechanism to serve the serial ports (this include an SPI port). In the ISRs I am using the xQueueSendFromISR() and xQueueReceiveFromISR () functions, to whom I pass the xTaskPreviouslyWoken parameter with


IAR & CRP {Code Read Protection} help

Started by juval_esi in LPC200018 years ago 1 reply

Hi All Dose any one Know a way to program the {code read protection} via the compiler or via linker script for NXP LPC2138 ? Thanks in...

Hi All Dose any one Know a way to program the {code read protection} via the compiler or via linker script for NXP LPC2138 ? Thanks in advance Juval


LPC 2138 programmer - LINUX

Started by Sara Fonseca in LPC200019 years ago 2 replies

Hi, I am looking for a LPC2138 serial programmer based on Linux. Do you know about anyone?

Hi, I am looking for a LPC2138 serial programmer based on Linux. Do you know about anyone?


proteus

Started by Pankaj in LPC200015 years ago 5 replies

i am working on lpc 2148, and i am using proteus as stimulator but proteous library does not have lpc2148 insted has lpc2138 can i asume that if i...

i am working on lpc 2148, and i am using proteus as stimulator but proteous library does not have lpc2148 insted has lpc2138 can i asume that if i write programs for lpc 2138 would work same as on lpc2148. ------------------------------------


I2C slave routines

Started by zvonkobharije in LPC200019 years ago 2 replies

hello does anyone know if there are some examples for I2C slave reciever/transmitter mode for LPC2138 (or any other LPC),...

hello does anyone know if there are some examples for I2C slave reciever/transmitter mode for LPC2138 (or any other LPC), preferrable in C? I've searched the net a lot, however I didn't find a thing. if anyone has an example (or at least something that r


RTC resolution less than a second ?

Started by r_bottleneck in LPC200018 years ago 9 replies

Hello, I would like to get a more or less precise time between two events (0 to some seconds with 1 or 10 ms resolution would be fine), but I...

Hello, I would like to get a more or less precise time between two events (0 to some seconds with 1 or 10 ms resolution would be fine), but I have no timer left and the WDT is also in use. So I just could use the RTC of the LPC2138/48. Has anybody experiences using the RTC and CTCR to get a better resolution than a second ? I think it's a bit more work to manage the overflow of th...



The 2024 Embedded Online Conference