EmbeddedRelated.com
The 2024 Embedded Online Conference

LPC2148 and uC/OS-II and UART interrupts

Started by jdauchot in LPC200015 years ago 1 reply

Hi I am writing an application for LPC2148 and uC/OS-II. I am having problems implementing a UART0 interrupt using the example posted On the...

Hi I am writing an application for LPC2148 and uC/OS-II. I am having problems implementing a UART0 interrupt using the example posted On the LPC200 group using uC/OS-II and GCC. The application works OK as long I type the characters on hyperterminal. If I send data via the file transfer, I loose characters. Can anyone help as I have done all the required searches on google etc. Has any...


lpc2148, newlib-lpc, math functions...

Started by tahoe_nanci in LPC200015 years ago 14 replies

anyone? I posted a couple messages last week and no responses. Summarizing, I can compile, link, and download the bin/hex onto the lpc2148. ...

anyone? I posted a couple messages last week and no responses. Summarizing, I can compile, link, and download the bin/hex onto the lpc2148. All examples work, until I use math functions. My simple test is to simply calculate sin(PI) and dump to uart. Any hints? help? ------------------------------------


Difference between ISP and IAP

Started by dauzat_lilian in LPC200017 years ago 7 replies

Hello, I'm working on a LPC2103 with IAR compiler and I'm looking at the best method to reprogram its flash code memory using UART. I checked...

Hello, I'm working on a LPC2103 with IAR compiler and I'm looking at the best method to reprogram its flash code memory using UART. I checked the AN10356 and AN10256 from NXP, browsed forums and groups and I still don't know which is the best method. ISP seems to be simpler since I understood that the bootloader is able to performed all the work while IAP look like a nightmare. What I...


Uart TX interrupt

Started by mrobins99 in LPC200016 years ago 1 reply

I'm having some difficulty with my transmit interrupt on an LPC2106. I'm using winarm. My rx interrupt works perfect, when new data is...

I'm having some difficulty with my transmit interrupt on an LPC2106. I'm using winarm. My rx interrupt works perfect, when new data is present I quickly add it to a buffer and take out the bytes in the buffer in my main loop. My tx buffer however has a bug. When programming for avr's I had two types of interrupts tx buffer empty(which I used) and tx complete and it worked perfectly. ...


Programming LPC2292 through UART

Started by Unnati Shah in LPC200015 years ago 7 replies

Hi, I want to know the step by step procedure for programming the LPC2292 chip through the serial port, UART0. Please tell me how to do...

Hi, I want to know the step by step procedure for programming the LPC2292 chip through the serial port, UART0. Please tell me how to do that. Also suggest which programming software is to be used to download the program on to the on chip flash. Unnati Shah __,_._uuuu ------------------------------------


UART interrupt question

Started by mhaines4102 in LPC200019 years ago 2 replies

I am having some problems getting the interrupt to fire on the LPC2138 board. I know it is just me missing something, but I don't know what...

I am having some problems getting the interrupt to fire on the LPC2138 board. I know it is just me missing something, but I don't know what I'm missing. I am using the emulator in the Keil IDE. What I want is when I type in the serial area that it fires my interrupt. I don't believe it is a limitation of the emulator and I suspect it is my code.


UART RX interrupt handlers

Started by Alaric B Snell in LPC200020 years ago 7 replies

Has anyone got a working example of a UART0 receive interrupt handler that I could study to see what I'm missing? Mine...

Has anyone got a working example of a UART0 receive interrupt handler that I could study to see what I'm missing? Mine works perfectly within Keil's ARM simulator, but in real life, sending a character in on UART0 puts the system in a new random state every time! The


FTDI's new FT232R as clock source

Started by Aryeh Eiderman in LPC200018 years ago 2 replies

Hi, The new USB-to-UART chip from FTDI - FT232R - have now all the features of SiLabs' CP210X and one additional feature: 6/12/24/48...

Hi, The new USB-to-UART chip from FTDI - FT232R - have now all the features of SiLabs' CP210X and one additional feature: 6/12/24/48 MHz clock to drive an external microcontroller. So my questions are: 1. Is this clock can be used on LPC2000 instead of crystal? 2. If yes, how to connect it to LPC2000? To leave XOUT of


ISP, UART0, UART1... comm to another cpu

Started by flashzr in LPC200013 years ago 13 replies

Hi, I'm new here and new to LPC2101. I'm reading the PDFs and creating the PCB at the same time, and I need some pointers. I know...

Hi, I'm new here and new to LPC2101. I'm reading the PDFs and creating the PCB at the same time, and I need some pointers. I know that: The chip is programmed through UART0. UART0 has RX/TX only, while UART1 has full modem control lines. My problem is that the LPC will also have to use the UART to communicate with another CPU. The simplest thing would be to use UART1 for that purpo...


Sample LPC2364 UART Program

Started by Leo Cahalan in LPC200017 years ago 1 reply

Does anyone have a very simple program that outputs a message on UART0? I am testing a new board and it appears to program correctly using the...

Does anyone have a very simple program that outputs a message on UART0? I am testing a new board and it appears to program correctly using the Flash utility, but the program does not execute and is not turning on LEDs or outputing data on UART0 as it should. I may not have configured the PLL correctly or have some othe problem. I would just like to be able to load a known working app to ...


9 bit uart

Started by gen_4p in LPC200017 years ago 13 replies

Hi, I need to interface an existing 485 network to ethernet. Protocol is using 9 bit communication for the address recognition. I was going...

Hi, I need to interface an existing 485 network to ethernet. Protocol is using 9 bit communication for the address recognition. I was going to use lpc2376 for 485 Ethernet adapter, but can't find any 9 bit capability on lpc uarts. Have I overlooked something, or LPCs don't have it. May anyone suggest a way to implement it on LPC? Thank you, Gennady


LPC2129 watchdog reset

Started by "t.herbi" in LPC200018 years ago 4 replies

Hello, im designing a project with the lpc2129 and need to reset the controller by software after i have received a command over uart. To...

Hello, im designing a project with the lpc2129 and need to reset the controller by software after i have received a command over uart. To realice this i set and start the watchdog and wait till the wd period is over. But after the reset occoured the uC doesn't come back to live. When i'm debugging this problem i see that the boot vector at adress 0x00 is overwritten with 0xFF. But that ...


Available Software for SSP peripheral (LPC2148 - IAR) ???

Started by croquettegnu in LPC200017 years ago 6 replies

Hi All, I'm looking for software examples concerning the fast SPI called SSP but I was not able to find one especially under the IAR...

Hi All, I'm looking for software examples concerning the fast SPI called SSP but I was not able to find one especially under the IAR toolchain: there are UART, timer, usb but not SPI examples. Could you point me to some soft please? Thanks a lot Frederic


How handle Cortex-M0 Interrupts on IAR using C++?

Started by in LPC200013 years ago 7 replies

Hello everybody, This is my first email in here, hope we can help each-other. I'm using IAR 6.21 compiler and a LPC11C14 IAR's dev board,...

Hello everybody, This is my first email in here, hope we can help each-other. I'm using IAR 6.21 compiler and a LPC11C14 IAR's dev board, doing my firsts test with C++. Also I'm simulating UART interrupts in the C-SPY simulator, all working great on C, so the problem is not the macros or whatever. I search on the web how to handle interrupts in C++, and found that: http://www.eetimes.c....


LPC2148 T0CTCR counter value

Started by dingdingchen23 in LPC200015 years ago 2 replies

Hi guys, I'm new to the arm. I have someproblems with the external event counter, please help. I configured an external event counter,...

Hi guys, I'm new to the arm. I have someproblems with the external event counter, please help. I configured an external event counter, anduse the UART to check the TC value in the hyper terminal. However it only worksat very low frequency, i.e 1 or 2 Hz, when the frequency reaches 20Hz andabove, the TC started to increment by 2 or 3 or even more. My pclk is 30MHz. Thank you very much! ...


Developing on the LPC2478

Started by ostehaps01 in LPC200016 years ago 4 replies

Hi I'm about to start develop a new system using the brand new LPC2478 (LPC2468 with a LCD controller) I have a dev board from Embedded...

Hi I'm about to start develop a new system using the brand new LPC2478 (LPC2468 with a LCD controller) I have a dev board from Embedded Artist So before I use $$$ on development tool, j-tag etc. I just whant to ask some Q here. My needs are as following: - Good supply of samples for the interfaces (USB Host, Ethernet, UART, SPI, LCD etc) Prefered is that the development tool c...


LPC2378 UART IRQ problem

Started by Mircea Stanciu in LPC200016 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 LPC200013 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...


Interference problems on Port 1 of LPC2148

Started by capiman26061973 in LPC200016 years ago 1 reply

Hello, i currently tring to understand a problem, which almost drives me crazy. I hunt for it for a few hours now, just a simple code. I try...

Hello, i currently tring to understand a problem, which almost drives me crazy. I hunt for it for a few hours now, just a simple code. I try to implement a soft uart, 9600 baud, 8N1, only sending via a timer routine. Processor is LPC2148 (i have a 'A' revision and a not 'A' revision, same results). 12 MHz oscillator. MAMTIM = 0x3; MAMCR = 0x2; SCS = 3; USB in use. gcc was 3.x, now 4...


lpc2368 Timer0 Interrupt

Started by Andy Zammy in LPC200015 years ago 11 replies

Hello again, i'm having real difficulty in getting the timer0 interrupt to work. as it is atm, it looks like the interrupt occurs, but then the...

Hello again, i'm having real difficulty in getting the timer0 interrupt to work. as it is atm, it looks like the interrupt occurs, but then the program just feezes and does nothing. I set the interrupt to occur every millisecond, and i know the interrupt occurs when it should because in my full version of the program i'm sending a string out of the uart, and it stops when it should. nothing el...



The 2024 Embedded Online Conference