How do interrupts work?

Started by Guillermo Prandi in LPC200013 years ago 6 replies

Hi! I read every doc I've found and I couldn't get a detailed description of the interrupt mechanism in the LPC2XXX. In particular, I'm...

Hi! I read every doc I've found and I couldn't get a detailed description of the interrupt mechanism in the LPC2XXX. In particular, I'm looking for the following: - What happens to interrupts while they're disabled? Do they get "cached"? I mean, if I'm in the middle of processing a UART0 interrupt and UART1 receives a new character, I'd proba


Interrupt pending but not raised

Started by andersryl in LPC200013 years ago 4 replies

Hi, I have a very peculiar problem regarding interrupts on my Olimex E2214 board (using gcc and gld with Eclipse). I'm trying to...

Hi, I have a very peculiar problem regarding interrupts on my Olimex E2214 board (using gcc and gld with Eclipse). I'm trying to get my board to communicate with a Windows application using the UART1. The way it works is that the Win app sends frames with commands to the test board to which the ARM responds by sending a new frame back to t


Interfacing LPC2148 UART with 3V CPLD

Started by Sutton Mehaffey in LPC200011 years ago 4 replies

I have a requirement for 3 RS232 links to my LPC2148. I have run one directly to UART0. The others (for connecting a PC and a modem) I have...

I have a requirement for 3 RS232 links to my LPC2148. I have run one directly to UART0. The others (for connecting a PC and a modem) I have input into a 3V CPLD and am doing the switching in there to UART1. However, I didn't take into account the signal differences. I was using a Linear LT1382 between the PC and the CPLD, but that won't work because the LT is a 5V TTL out and the CPLD ca...


About UART registers

Started by francesco bartoli in LPC200011 years ago

Dear All, I am experiencing with LPC2138 and I have some doubts about the UART registers. I see that in file "lpc2138.h" some registers...

Dear All, I am experiencing with LPC2138 and I have some doubts about the UART registers. I see that in file "lpc2138.h" some registers (such as U0FCR, U0THCR, U0LSR and others, as well as all the registers of the UART1) are missing. Why? Should I manually insert them like in the files relative to other families (lpc2129.h, for example). thanks in advance ----------------------...


What is the UART CTI Interrupt?

Started by Robert Davis in LPC200015 years ago 3 replies

Hi, I am working with the UART1 of the LPC2106 using the UARTecho sample program with the KickStart board from IAR. The UART...

Hi, I am working with the UART1 of the LPC2106 using the UARTecho sample program with the KickStart board from IAR. The UART keeps generating the character time-out indicator interrupt. I have looked through all of the documentation from Philips and I cannot find an explanation of what actually


UART Problem

Started by mobilsiten in LPC200014 years ago 3 replies

I cant get this to work. I only want to turn on a led if I recive something on UART1. This is the code: void init_serial...

I cant get this to work. I only want to turn on a led if I recive something on UART1. This is the code: void init_serial (void) // Initialize Serial Interface { unsigned dummy; unsigned short baud = 9600, baud_rate; PINSEL0 = 0x00050000; /*


Re: LPC2114 UART1 works but UART0 does not

Started by Tom Walsh in LPC200012 years ago

o...@hotmail.com wrote: > > Hello all > I'm starting a new project with the LPC2114. I just got the first > prototype board and started...

o...@hotmail.com wrote: > > Hello all > I'm starting a new project with the LPC2114. I just got the first > prototype board and started to check out the hardware when I noticed > the UART0 would cause the micro to jump to never never land after > sending a few bytes. ( < 100). > > I commented out my code that sets up the PLL & other memory speed > devices. After doing this UART0 would


Re: UART Code

Started by fabi...@tekel.it in LPC200013 years ago 2 replies

> > > > I've done a couple of changes to the Blinky Lights / UART code > and uploaded the new version. The major change is adding...

> > > > I've done a couple of changes to the Blinky Lights / UART code > and uploaded the new version. The major change is adding code > to initialize the VIC when UART1 is used in interrupt mode. > UT040803A - Uart Test (20)04 (/) 08 (/) 03 A (1st of the day) > > -Bill Knight > theARMPatch > > > Where I can looking for this source, I've look into the yahoo group


UART, Flash and other Questions ?

Started by Lasse Madsen in LPC200015 years ago 1 reply

Hi all ... I have an application where I would like to use a GPRS modem coupled directly to the UART1's modem interface etc... ...

Hi all ... I have an application where I would like to use a GPRS modem coupled directly to the UART1's modem interface etc... I have never worked with such a full modem interface before (RTS,CTS,DTR etc...) so I was curious ... Do one have to control the modem signals in


MCB2300 strange behaviour - erratic speed?!

Started by active_si in LPC200010 years ago 2 replies

Hi all! I own a MCB2300 board (version 3) and I have noticed lately that sometimes when I turn on the board the speed is not as it is supposed...

Hi all! I own a MCB2300 board (version 3) and I have noticed lately that sometimes when I turn on the board the speed is not as it is supposed to be - about 20x faster. I have a RTC interrupt setup for every second and normally the interrupr outputs 1line/second to my UART1 but when the speed is not correct I get about 20 lines/second and of course everything else doesn't work as it is suppo...


LPC2129 & UART1

Started by tsyrjala2 in LPC200013 years ago 3 replies

Hello, I am quite new with these ARM based controllers. I've been trying to get the uart working with code from Philips application note...

Hello, I am quite new with these ARM based controllers. I've been trying to get the uart working with code from Philips application note AN10369. -------------cut-------------------------cut----------------- #include "lpc21xx.h" void Initialize(void); #define TEMT (1<<6) #define LINE_FEED 0xA #d


Re: LPC2148 UART1 TTL

Started by Sutton Mehaffey in LPC200011 years ago

Yes. --- In l...@yahoogroups.com, Alexandre Kremer wrote: > > Hi > =20=20 > Is the modem a 3.3V device? > =20 > =20 > =20 > ---...

Yes. --- In l...@yahoogroups.com, Alexandre Kremer wrote: > > Hi > =20=20 > Is the modem a 3.3V device? > =20 > =20 > =20 > --- Sutton Mehaffey escreveu: > =20 > > Has anyone ever connected up a LPC UART directly to > > a modem? I have a > > RJModem made by Multitech, which is TTL. I haven't > > been able to get > > it to accept commands when connected up


LPC2388 -- UART2 and UART3

Started by Carolina in LPC20008 years ago 2 replies

Hello everyone, I am simply trying to use UART2 and UART3 to implement my printf function. I have tested my code with UART1 and UART0 and it...

Hello everyone, I am simply trying to use UART2 and UART3 to implement my printf function. I have tested my code with UART1 and UART0 and it works fine. However, when I change the settings for UART2 or UART3 it doesn't work. I was wondering if maybe in order to use those serial ports I need to add an extra step to my initialization. Please let me know. #include


[lpc2468] configuration and coding problem for uart1

Started by Sabbir Ahmad in LPC20008 years ago 1 reply

Hello everyone, ?I am a new programmer in embedded world though my programming life giving me tough time because of not solving the problem till...

Hello everyone, ?I am a new programmer in embedded world though my programming life giving me tough time because of not solving the problem till now. I got stuck with lpc2468 board where i have to program for uart0 for for transfer and receive character in cpp but i have to no idea how can i start with. I have search for documents that provide some initial guideline but it ?was not sufficient. Pl...


PLEASE HELP ME

Started by miro _eng in LPC200012 years ago 1 reply

iam interfacing a micro controller"lpc2119" to a gsm modem , please if anyone has a c code for just sending sms via the modem using lpc2119 . ...

iam interfacing a micro controller"lpc2119" to a gsm modem , please if anyone has a c code for just sending sms via the modem using lpc2119 . or please tell me how to use the uart1 to send an AT COMMAND to the modem i.e : i need to send some thing like AT+cmgf=1 then (ENTER) how can i do this $ what is the hex of the (ENTER) ??? please help me as fast as you can with the c...


LPC21xx and UART0 problem

Started by riccardoventrella in LPC200012 years ago 9 replies

Hi, I'm using a MCB2100 with a LPC2129. I've written a sort of home made printf using the hyperterminal as a debugger window, but up to now I...

Hi, I'm using a MCB2100 with a LPC2129. I've written a sort of home made printf using the hyperterminal as a debugger window, but up to now I used UART1 and all went good. Now I have to port my code on a proprietary board mounting a LPC2194 that has just the UART0 exposed. I've ported the code to the UART0 in this way: ...init stuff PINSEL0 = 0x00000005; /* Enable RxD0 and TxD0 ...


Re: printf statements - help needed

Started by ashwin athani in LPC200012 years ago

Assuming LPC2378 has two UART's, one more possibility could be that it is dumping to UART0 and you have the cable connected to UART1 Warm...

Assuming LPC2378 has two UART's, one more possibility could be that it is dumping to UART0 and you have the cable connected to UART1 Warm regards, Ashwin Tom Walsh wrote: Raghunath Santhanam wrote: > > Hi All, > I am new to LPC boards and I have a basic query > I dont see any prints on the screen. I am using LPC 2378, Amontec JTAG > and FlashM


Erratic booting LPC2119

Started by zerealbigboss in LPC200011 years ago 2 replies

Last year I bought two ARM LPC2119 stamps from Futurlec and did some programming with Keil uV3 and the Philips flash utility. Rather simple...

Last year I bought two ARM LPC2119 stamps from Futurlec and did some programming with Keil uV3 and the Philips flash utility. Rather simple job: UART0 goes to a keyboard/screen with a PIC16F88, UART1 to a Vodafone modem and there are a range of inputs and outputs. Everything goes fine: bootloader accepts and installs program, program runs and does what it should do. However, after a few ...


Help with LPC2106

Started by shunt_2000 in LPC200011 years ago 9 replies

Hi, I am a newbie to the board but I have tried my best to find the answer to my question before posting for help. I am using a QuickStart...

Hi, I am a newbie to the board but I have tried my best to find the answer to my question before posting for help. I am using a QuickStart LPC2106 board with a 14.7456 crystal. I want to be able to accept data from the PC on UART0 and command a PTZ camera using UART1. UART0 is working just great. The camera requires 9600 bps and I am configuring PINSEL0 with the following code: //i...


external Interrupt not able to wake up the controller

Started by SUBRAT MODAK in LPC200011 years ago

Hi, I have developed a board with LPC2148. I am enabling the INT3 (P0.9) external interrupt and going to Power Down Mode. But when a positive...

Hi, I have developed a board with LPC2148. I am enabling the INT3 (P0.9) external interrupt and going to Power Down Mode. But when a positive edge is given as an input to this pin, the controller is not waking up to transmit the data. Someone please suggest solution for it. I have written the following code: void main() { PLL0CON = 0; PCONP = 0x00000010; //uart1 enabled uart1_init(0...