Not returning from, or getting stuck in interrupts (maybe)

Started by kd7vn in LPC200014 years ago 5 replies

I'm new to arm and the tools, but have done some PIC in the past, and I could use some help. I have a OLIMEX board with a lpc2103, and doing...

I'm new to arm and the tools, but have done some PIC in the past, and I could use some help. I have a OLIMEX board with a lpc2103, and doing the developement with the GNU ARM tools. I have made two interrupt routines. One turns on an LED when I get a Uart0 interrupt, and the other prints "Philips" to the serial port when the button gets pushed (extint2). Both interrupt routines get...


Reinvoke ISP

Started by joseluispepe007 in LPC200014 years ago 4 replies

Hi, I'm having a problem with the booloader... I'm trying to start the ISP using the Reinvoke ISP IAP command, first I deisable irq and fiq,...

Hi, I'm having a problem with the booloader... I'm trying to start the ISP using the Reinvoke ISP IAP command, first I deisable irq and fiq, then clear every register associated with TIMER 1 and then i disable the PLL and finally call the IAP command... The current consumption of the circuits fall (because the PLL is disabled), but the Philips Flash utility can't find the device (LPC2103 ...


LPC2103 GPIO interfering with PWM

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


Is this a typo in the 2103 UM ? Open-drain pins

Started by Mike Harrison in LPC200013 years ago 2 replies

Looking at the pin description in the LPC2103 UM, the pins that are marked with "[3]Open-drain 5V tolerant digital I/O I C-bus 400kHz...

Looking at the pin description in the LPC2103 UM, the pins that are marked with "[3]Open-drain 5V tolerant digital I/O I C-bus 400kHz specification compatible pad. It requires external pull-up to provide an output functionality." are : P0.2/SCL0 P0.3/SDA0 These make sense as they are on I2C ports P0.11/CTS1/CAP1.1 P0.14/DCD1/SCK1 These don't - do they actually mean P0.17/SCL1 and P...


3 hardware async serial ports on LPC2103...

Started by Mike Harrison in LPC200013 years ago

Just having a play with the SSP on the LPC2103 for a DMX application to see if I can coerce it into pretending to be a third async transmit...

Just having a play with the SSP on the LPC2103 for a DMX application to see if I can coerce it into pretending to be a third async transmit channel... After initial disappointment in SPI mode due to it asserting the data line early, I found that in SSI mode it works just fine. Set Data length to 11 bits ( start+8+2stop - use 10 for 1 stop bit), and send "0abcdefgh11" ("0abcdefgh1" for 1 st...


LPC2103 power errata

Started by Mike Harrison in LPC200013 years ago 5 replies

Has anyone experienced the problems with the 1.8v power issue mentioned in the LPC2103 errata ( Core voltage low due to voltage drop between pin...

Has anyone experienced the problems with the 1.8v power issue mentioned in the LPC2103 errata ( Core voltage low due to voltage drop between pin and core at high currents) I have an upcoming application that may need to run at 64MHz, with PCLK undivided. Although there are a few 1.85 and 1.9v regulators, they are mostly in tricky packages. Texas TPS71519 is the only thing I can immediately fi...


Slooooow JTAG using GDG/OCDremote

Started by Richard in LPC200013 years ago 2 replies

Using Eclipse/OCDremote/GDB ala Mr. Lynch's tutorial. I am debugging from flash (lpc2103) but it is soooo slooooow. Inserting a...

Using Eclipse/OCDremote/GDB ala Mr. Lynch's tutorial. I am debugging from flash (lpc2103) but it is soooo slooooow. Inserting a single breakpoint into a two line blinky program requires ~30 seconds between breaks! The parallel port is set fo EPP. What is this thing doing with all that time? Rich


Help with LPC2000 flash utility v2.2.3 for newbie

Started by johan_tr2000 in LPC200013 years ago 2 replies

Hi, I just jump in the LPC2000 ARM world. I try LPC2103 for my entry point. I can not find LPC2103 in the device colom of LPC2000 flsh...

Hi, I just jump in the LPC2000 ARM world. I try LPC2103 for my entry point. I can not find LPC2103 in the device colom of LPC2000 flsh utility v2.2.3. I need a quick practical help. Thanks in advance. TR2000


Why is my UART rx interrupt not clearing....

Started by Mike Harrison in LPC200013 years ago 1 reply

Having problems setting up UART receive interrupt on LPC2103 (IAR, using J-Link) VIC is set up OK as int code is executing, but it is not...

Having problems setting up UART receive interrupt on LPC2103 (IAR, using J-Link) VIC is set up OK as int code is executing, but it is not clearing the interrupt, so int code is getting executed continuously, despite no data actually being sent to it. IIR is showing to 0C, i.e. CTI int, but LSR bit 0 is clear, indicating no data.... The int occurs as soon as the UART interrupt is enabled, ...


printf function with Realview Compiler

Started by nooknikz in LPC200013 years ago 6 replies

I have problem when use printf function in Keil uvision when select Realview Compiler ( Not Keil CARM Compiler ) . it can compile ( not have...

I have problem when use printf function in Keil uvision when select Realview Compiler ( Not Keil CARM Compiler ) . it can compile ( not have error ) but not have any response send to serial port. system = LPC2103 + 12.000MHz + RealView MDK-ARM 3.03q Evaluation #include #include void init_serial0 (void); int main(void) { init_serial0(); printf("Hello LPC2103


GNUARM Eclipse Problems (Philips LPC2103)

Started by Richard in LPC200013 years ago 5 replies

Toolset assemnbled ala Lynch tutorial. I am starting to add UART code to blinky. I have added a uart.c and uart.h. uart.c added to...

Toolset assemnbled ala Lynch tutorial. I am starting to add UART code to blinky. I have added a uart.c and uart.h. uart.c added to Makefile. In uart.h I have declared: void uart0Putch(unsigned char byte_out); In main.c I call: uart0Putch(0xAA); This results in a "undefined reference" error at this line. I add a void to get: void uart0Putch(0xAA); and I get the errors: "parse error...


Connection new LPC2103

Started by Michael Gerkens in LPC200013 years ago 5 replies

Hello all, i have build a board with an ARM LPC2103, very simple. But i can't get a Connection via JTAG to the Controller. I work with...

Hello all, i have build a board with an ARM LPC2103, very simple. But i can't get a Connection via JTAG to the Controller. I work with CrossStudio for ARM an i'm using an USB-> JTAG Interface from CrossConnect. With a Demo-Board, i'll get a connection. All JTAG-Signal's are ok. Reset is ok. Thanks Michael


lpc2103 interrupt

Started by leszek_kula in LPC200013 years ago 3 replies

Is it possible to call function from timers interrupts routine ? LK

Is it possible to call function from timers interrupts routine ? LK


RDI-JTAG Error with LPC2103

Started by johan_tr2000 in LPC200013 years ago 7 replies

Hi, I build the simple board with LPC2103 to start learning LPC21xx. I have success to access the serial bootloader and software download with...

Hi, I build the simple board with LPC2103 to start learning LPC21xx. I have success to access the serial bootloader and software download with it. Next step I build the RDI-JTAG (Wiggler type), and use H-JTAG dll with Keil Software. The Wiggler-JTAG seems to work OK, since I have success to Flash it with H-FLASHER, the H-JTAG also recognized my LPC2103. The problem come when I try the...


LPC2103 baudrates - UM typo?

Started by Mike Harrison in LPC200013 years ago 2 replies

Just going nuts figuring out baudrates on the LPC2103 I think there is a typo in the formula in the datasheet - section 10.3.4 I think the...

Just going nuts figuring out baudrates on the LPC2103 I think there is a typo in the formula in the datasheet - section 10.3.4 I think the bottom line should read (16x(256*U1DLM+U1DLL)), not (16x(256*U1DLM+U1DLL)) 256 makes more sense and appears to agree with the hardware.


Getting "Data Abort" using global variable

Started by johnlewis754 in LPC200013 years ago 4 replies

Hello all, I am new with ARM. I am using Keil uv3 and running an application on LPC2103. The application has run OK until I declared a...

Hello all, I am new with ARM. I am using Keil uv3 and running an application on LPC2103. The application has run OK until I declared a global variable. To investigate the problem I have reduced the code to this core: int iDummy ; void main (void) { iDummy = 5 ; while(1) ; } When I comment out the iDummy (and its reference) the program runs as expected (enters the infinite...


Really wierd thing - accessing U1IER causes processor reset...!

Started by Mike Harrison in LPC200013 years ago 7 replies

Just been doing much head-scratching over this.... Using LPC2103 with IAR Kickstart & J-link. ARM mode This is my "put a character in the...

Just been doing much head-scratching over this.... Using LPC2103 with IAR Kickstart & J-link. ARM mode This is my "put a character in the Uart1 1 TX buffer" code void u1txbyte(Int32U d) { txsum+=d; FIOSET=expsel; // debug flag U1IER&=0xFD; // disable THRE int FIOCLR=expsel; u1txbuf[u1txinptr++]=d; u1txinptr&=(u1txbufsize-1); if (txbusy==0) U1THR=d; txbusy=1; ...


LPC2103 and IAP

Started by sds597 in LPC200013 years ago

Hello, I am running an LPC2103 with an external clock of 25MHz. I am trying to use the IAP code to erase and reprogram a section of flash but...

Hello, I am running an LPC2103 with an external clock of 25MHz. I am trying to use the IAP code to erase and reprogram a section of flash but it is not working. I am issuing the IAP erase sector command and the return code is showing 0x0 indicating success but the actual flash content is not changeing. Has anyone run into similar situations to this? Thanks in advance for any insight. ...


buying lpc210x

Started by Augusto Simon in LPC200013 years ago 5 replies

Hi, I'm brazilian and I have some questions. Excuse me if I'm out of the purpose of this list, but I need to use the lpc2103 in my projects. The...

Hi, I'm brazilian and I have some questions. Excuse me if I'm out of the purpose of this list, but I need to use the lpc2103 in my projects. The problem is that I don't know were can I buy this devices in quantitys under than 50 pieces. Somebody knows where can I buy with good prices, in Brazil? What?s the normal cost? Thank you, bye __________________________________________________ F...


Baud Rate on the LPC2103

Started by slb885 in LPC200013 years ago 3 replies

I have a question regarding the baud rate on the LPC2103. I have downloaded a couple of baud rate calculators (from this group), but it seems...

I have a question regarding the baud rate on the LPC2103. I have downloaded a couple of baud rate calculators (from this group), but it seems that they calculate the baud using this equation (ignoring the MulVal and DivAddVal variables): baud = PCLK / ( 16*(256*DLM + DLL) ) However, according to the user manual I downloaded (http://www.embeddedartists.com/knowledge/lpc_overview.php?PHPS...