UART Code

Started by wmk6341 in LPC200015 years ago

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...

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


LPC2136 UART1 SW flow control implementation

Started by Michael Jamet in LPC200012 years ago

Hi folks, As far I understand, HW flow control is activated using U1MCR two first bits. So, if I want to use it is quite trivial: I only have...

Hi folks, As far I understand, HW flow control is activated using U1MCR two first bits. So, if I want to use it is quite trivial: I only have to set those bits to 1 and the HW handles it. I need also to implement the SW flow control. I'm currently using IAR IDE and toolchain without OS and also UART basic driver created by MakeApp tool. Does anyone have already implemented a SW flow ...


VICIntEnable Problem

Started by mobilsiten in LPC200015 years ago 2 replies

Hi! I want to enable the interrupt for UART1 but I cant find a table for VICIntEnable so I can set the right bit. This is...

Hi! I want to enable the interrupt for UART1 but I cant find a table for VICIntEnable so I can set the right bit. This is my init_serial function: void init_serial (void) /* Initialize Serial Interface */ { WORD baud = 19200, baud_rate; baud_r


LPC2378 UART IRQ problem

Started by Mircea Stanciu in LPC200011 years ago 4 replies

I have interrupt active on UART1 RX and TX U1IER = 0x7 TX works perfectly! I wanted to implement RX interrupt. The program never goes...

I have interrupt active on UART1 RX and TX U1IER = 0x7 TX works perfectly! I wanted to implement RX interrupt. The program never goes to "case UIIR_RDA" when i press something on terminal. The handle_uart1_irq is triggered when i press something on terminal but the register U1IIR remain unchanged. I have no debug methods :(, only to set some status to see on serial. __irq __nes...


LPC2148 Uart Problem

Started by SUBRAMANIUM in LPC20008 years ago 1 reply

Hello am using LPC2148 controller. I have started to use WinArm complier now. Previously I was using Keil compiler. Now I am able to print data...

Hello am using LPC2148 controller. I have started to use WinArm complier now. Previously I was using Keil compiler. Now I am able to print data using both uart0 n uart1 but am not able to receive the data from either ports. my initialization routine is below. Kindly help. thanks in advance. /** * Initialize UART0, setup pin select, clock, parity, stop bits, FIFO, etc. * * @param baudrate...


Re: To recieve block of data

Started by Mukund Deshmukh in LPC200012 years ago

> can u explain it with a sample code.......i m now trying to read a tag > containing 22 bytes of data in uart1 of LPC2129 using > interrupt...

> can u explain it with a sample code.......i m now trying to read a tag > containing 22 bytes of data in uart1 of LPC2129 using > interrupt with > trigger level for 1 byte and sending it to uart0..in simulator its ok..but > in the target board its not > working.......The baud rate is 9600 Long time back I did a project for RFID card reader, which stored the data on mmc. But the data length was


UART0 and UART1 baud rate calculations

Started by dodge1955 in LPC200014 years ago 13 replies

Has anyone ever done some type of spreadsheet on the different UxDLL and UxDLM values along with MULVAL and DIVVAL for the most...

Has anyone ever done some type of spreadsheet on the different UxDLL and UxDLM values along with MULVAL and DIVVAL for the most popular crystals to make the baud rate come out perfect (like 9600, 19200, etc). The manual has the examples for 20Mhz, but it would be nice to have some appendix that has a table of values that come out even for a variety of commonly used crystals. 11.059Mhz is o


LPC2138 IAR UART code not always working

Started by SR in LPC200014 years ago

Hello All, Ok, I have an issue with the UART on the LPC2138(IAR starter kit) with the sample code when I call the GetChar(UART1) function it...

Hello All, Ok, I have an issue with the UART on the LPC2138(IAR starter kit) with the sample code when I call the GetChar(UART1) function it seems to work sometime, other it goes into a dead loop on the while(!...) and other times it will hit the vectors on address 0x0 anyone knows what's going on?? Samuel


Problem running LPC2106 with MAM, PLL and UART1 interrupts.

Started by karlstiller in LPC200013 years ago 8 replies

Hi guys, Another new member, and another problem. I appreciate any help, and I hope to be able to return the favor in the future. I am in...

Hi guys, Another new member, and another problem. I appreciate any help, and I hope to be able to return the favor in the future. I am in the final stages of a project that uses a LPC2106. Things work perfectly as it is, but we have recently discovered that we are getting low performance issues as we are running without the MAM and PLL. I am currently working on trying to add in...


Re: LPC2148 UART1 TTL

Started by Alexandre Kremer in LPC200012 years ago 1 reply

Hi Is the modem a 3.3V device? --- Sutton Mehaffey escreveu: > Has anyone ever connected up a LPC UART directly to > a modem? I...

Hi Is the modem a 3.3V device? --- Sutton Mehaffey escreveu: > 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 to my 2148. > However, commands > work fine when I connect it directly to my DB9 > connector (thru a RS232 > dri


LPC2138 UART0/1 and modem control

Started by czajniczek in LPC200014 years ago 3 replies

Hi ! I'm about to build a system using LPC2138. It's going to be equipped with RS232C and RS485 ports. As I need full RS232...

Hi ! I'm about to build a system using LPC2138. It's going to be equipped with RS232C and RS485 ports. As I need full RS232 implementation with modem control lines, I will use UART1 for it, and UART0 for RS485 in turn. Unfortunately I'd like to use serial ISP programming, which uses UART0, and I don't like an idea of flashing through R


When returning from an interrupt, PC is set to pre-interrupt PC + 0x04 (what's going on?)

Started by darc...@satlan.co.nz in LPC200013 years ago 3 replies

Hi, We're just starting out on the LPC2000 (LPC2134) series processors and are currently in the process of getting a basic underlying...

Hi, We're just starting out on the LPC2000 (LPC2134) series processors and are currently in the process of getting a basic underlying architecture set up. Rowely CrossWorks 1.6b3 gcc version 4.1.0 (CodeSourcery ARM) The problem we're experiencing is along these lines 1. uC configured using supplied CrossWorks startup/crt.s 2. enter main() 3. initialise UART1 (Using VectCntl0/VectA...


Re: To recieve block of data

Started by Sreedevi in LPC200012 years ago

=A0 hai thanks for the reply............... can u explain it with a sample code.......i m now trying to read a tag cont= aining 22 bytes of...

=A0 hai thanks for the reply............... can u explain it with a sample code.......i m now trying to read a tag cont= aining 22 bytes of data in uart1 of LPC2129 using interrupt with trigger le= vel for 1 byte and sending it to uart0..in simulator its ok..but in the tar= get board its not working.......The baud rate is 9600 > > If baud rate is 9600, you do not need serial port buffer.


IAR printf issue

Started by jaso...@gmail.com in LPC200011 years ago 2 replies

Hi, I am trying to use the IAR (ver 5) lib printf function to output debug messages to UART1. I followed the instruction to override the...

Hi, I am trying to use the IAR (ver 5) lib printf function to output debug messages to UART1. I followed the instruction to override the __write() function in the template file. When I step into printf("hello"), it resolves correctly to the function __write(). However, one of the parameter in the __write(), size_t size, is always 1 regardless of the different string I use. Hence only 'h' gets...


Linker Problems

Started by miruffer in LPC200014 years ago 8 replies

Hi, I have big problems with the gcc-linker. Last week I compiled the newest version of gcc(4.0.2), binutils(2.16.1) and newlib(1.13)...

Hi, I have big problems with the gcc-linker. Last week I compiled the newest version of gcc(4.0.2), binutils(2.16.1) and newlib(1.13) under linux debian. Before I worked with WinARM(gcc 4.0.0). I tried to compile my project with the new toolchain. No warnings no errors. But the printf didn't work. To let the printf work via uart1 I have initia


LPC2378 IRQ issue

Started by "Mau...@yahoo.com.br [lpc2000]" in LPC20003 years ago 5 replies

Hello guys, Im working on a new project and am having som problems using interrupts. It is a custom board and I'm using the UART1 RDA interrupt...

Hello guys, Im working on a new project and am having som problems using interrupts. It is a custom board and I'm using the UART1 RDA interrupt as FIQ, timer1 and EINT3 as vectored IRQ.The sources for EINT3 are the pins P2.5, P2.6 and P2.8, sensing the falling edge. The system starts fine and work great for a while, then, after some pin state change on one of the EINT3 pins he reaches the "__def...


Re: RS485 with UART1 RTS pin on LPC2138

Started by sengoontoh in LPC200014 years ago

How would you implement an interrupt based 485 handler then? I guess I could look for the byte that I transmitted. Hopefully the FIFO won't ...

How would you implement an interrupt based 485 handler then? I guess I could look for the byte that I transmitted. Hopefully the FIFO won't complicate issues. --- In lpc2000@lpc2..., "Karl Olsen" wrote: > --- In lpc2000@lpc2..., "gvnn77" wrote: > > > I'm searching for implem


Programming LPC2148 via JTAG

Started by rlmcgove in LPC200010 years ago 3 replies

Hi, I am very new to this. We are using an LPC2148, and I can't get it to run after a power cycle. It will run fine from IAR for debug. ...

Hi, I am very new to this. We are using an LPC2148, and I can't get it to run after a power cycle. It will run fine from IAR for debug. The board has a USB connection, but I can't use it to download new code, since it uses UART1 instead of UART0, so the only option I have is to program via the JTAG. When I download to debug, I can see that the program is being written to flash (I am...


Saving Memory in LPC2103

Started by Graham Jones in LPC200010 years ago 16 replies

Hello Group, I have been developing a program on ARM7 LPC2103 for a year. The project has grown steadily. I am driving UART1, LCD, and some...

Hello Group, I have been developing a program on ARM7 LPC2103 for a year. The project has grown steadily. I am driving UART1, LCD, and some GPIO ports. Recently I started to add code to save into flash and discovered that my program was already 31KB and almost at the limit of the CPU's flash. I am using Keil but in the last few days I downloaded CrossWorks eval and rebuilt the project but ...


IRQ - I don't know what me do. HELP!!! PLZ

Started by alexmotin in LPC200014 years ago 4 replies

Hello. I have a big problem! I use IAR 4.10B LPC2119 and i want to use IRQ UART1 I did it so: InstallHandler((unsigned...

Hello. I have a big problem! I use IAR 4.10B LPC2119 and i want to use IRQ UART1 I did it so: InstallHandler((unsigned int *)0x18, (unsigned int) IRQ_ISR_Handler); VICIntEnable |= 0x80; U1IER = 0x01; __enable_interrupt(); where unsigned int InstallHandler(unsigned int *vector, unsig