EmbeddedRelated.com
Memfault Beyond the Launch

LPC2368 UART TEMT not set

Started by dave_albert in LPC200012 years ago 2 replies

I am using the LPC2368 and have reproduced this problem several times: In my application, there is a serial console for debugging on UART0. ...

I am using the LPC2368 and have reproduced this problem several times: In my application, there is a serial console for debugging on UART0. The application is working normally, periodically sending a status message out TXD0 when suddenly, often in the middle of a message, no more characters come out TXD0. My board has two interfaces (UART0 and an RF interface) so I'm able to query it via the ...


Configuring GPIO on lpc2468

Started by khader_s_s in LPC200016 years ago 6 replies

Hi I have an lpc2468 board where I have uart0 and a GSM module connected to uart1 and a GPS module connected to uart2 where UART0= P0.2 ~...

Hi I have an lpc2468 board where I have uart0 and a GSM module connected to uart1 and a GPS module connected to uart2 where UART0= P0.2 ~ P0.3 UART1= P2.0 ~ P2.7 UART2= P0.10 ~ P0.11 UART3= P0.25 ~ P0.26 I am trying set GPIO for this. PINSEL0 |= 0x00500050; /* P0.2 TXD0 , P0.3 RXD0 & P0.10 TXD2 , P0.11 RXD2 */ PINSEL1 |= 0x003b0000; /* P0.25 TXD3 , P0.26 R...


lpc1751 uart

Started by archaiwy in LPC200014 years ago 2 replies

is there somebody using lpc1751 mcu? I have made uart0/1 work. but the uart2/3 do not. nxp's manual says uart0/2/3 are alike. is it real. why do...

is there somebody using lpc1751 mcu? I have made uart0/1 work. but the uart2/3 do not. nxp's manual says uart0/2/3 are alike. is it real. why do they not work. Help me to check the initial piece. void uart_init(void) { LPC_PINCON-> PINSEL0 &= ~(0xf); // 3 LPC_PINCON-> PINSEL0 |= (0xa); // 3 LPC_PINCON-> PINSEL1 |= (0xf <


Crosswork UART0 interrupt problem

Started by g_gambler2000 in LPC200017 years ago 10 replies

Hi, My Uart0 interrupt cant be triggered. It seems that my program doesn't jump to the irq handler. I have defined...

Hi, My Uart0 interrupt cant be triggered. It seems that my program doesn't jump to the irq handler. I have defined "VECTORED_IRQ_INTERRUPTS" and i'm not using any optimization. what else could i miss?? I need help!! static void IRQ_UART0(void) __attribute__ ((interrupt ("IRQ"))); static void IRQ_UART0(void) { int8 dummy; if((U0IIR & 0x0F)==0x04) { received = 1; ...


Lpc2103 could not enter UART0 IRQ

Started by hjiongh in LPC200014 years ago 6 replies

Hi, I'm using LPC2103, IAR4.42A. Now I use IAR setup file lpc2xxx_cstartup.s79 and setup a new project. In main funciton , I setup PLL and...

Hi, I'm using LPC2103, IAR4.42A. Now I use IAR setup file lpc2xxx_cstartup.s79 and setup a new project. In main funciton , I setup PLL and UART0 as below: ================================= void SysControl_Init(void) { #ifdef xFLASH MEMMAP=3; #elif xSDRAM MEMMAP = 2; // xSDRAM should be defined in PRO_Sys_Macro.h , modify in the future #elif iRAM MEMMAP = 2; #else ...


IAR Interrupt based UART

Started by Hanns Tappeiner in LPC200015 years ago 3 replies

Hi everyone, I am using an LPC2103, compiler IAR EW. While it is easy to get the polled version of UART0 communication to work, I can't get...

Hi everyone, I am using an LPC2103, compiler IAR EW. While it is easy to get the polled version of UART0 communication to work, I can't get the interrupt based version to work. Can anyone point me to an example on how to initialize a simple interrupt based communication via UART0/1 using IAR EW for an LPC 2103? Or froma similar controller? Thanks a lot, Tappo ----------------------...


how to find flash occupied by hex file in LPC2138

Started by "NAGARAJU R." in LPC200016 years ago 2 replies

Hi, I am using local IDE for lpc2138 in which there is no facility to know how much flsh has been used by our hex file which is loaded in...

Hi, I am using local IDE for lpc2138 in which there is no facility to know how much flsh has been used by our hex file which is loaded in controller through uart0.I am not using jtag debugging, i am just using uart0 for programming and debugging. But I want to know how much flah memory has been occupied in controller flash memory and how much is left. Please tell me how to calculate the...


how to calculate values of U0DLM and U0DLL in UART0

Started by "Niren.R" in LPC200016 years ago 4 replies

how to calculate values of U0DLM and U0DLL in UART0 ? Is there any standard equation for it ? ------------------------------------

how to calculate values of U0DLM and U0DLL in UART0 ? Is there any standard equation for it ? ------------------------------------


LPC2103 UART0 Interrupt Help

Started by John in LPC200016 years ago

I am having trouble getting the interrupt to work when data is received on UART0. I have verified that the UART is working, both sending an...

I am having trouble getting the interrupt to work when data is received on UART0. I have verified that the UART is working, both sending an receiving. I am using GNUARM, any pointers would be great. //main.c #include #include "lpc2103.h" #include "uart.h" char data; unsigned char test = 0; void UNDEF_Routine(); void SWI_Routine(); void IRQ_Routine()__attribute__ ((inter


LPC2148 setting Uart0 at 12mhz pclk - not working

Started by ssonderhoff in LPC200014 years ago 26 replies

I am running the lpc2148 at a low clock speed of 12 mhz to reduce power usage. This is working, the power consumption is down and a light blinks...

I am running the lpc2148 at a low clock speed of 12 mhz to reduce power usage. This is working, the power consumption is down and a light blinks at the correct rate. for each speed I reset the Uart0 parameters to take the pclk into account (code below) the PLL_int(code below) sets processor to 12mhz(slow). At 60mhz Everything is working fine fine and I can read the output debug text without...


How to use UART0 as LIN in LPC2378 ?

Started by Aji Pamungkas in LPC200014 years ago 2 replies

Hello, lpc2000 users. i'm trying to use UART0 as LIN (TJA1020 chip) in LPC2378?as master on?MCB2300 board. I use flexdevel board as it's slave,...

Hello, lpc2000 users. i'm trying to use UART0 as LIN (TJA1020 chip) in LPC2378?as master on?MCB2300 board. I use flexdevel board as it's slave, using TH8082 as LIN transceiver and SCI in flexdevel.?I initialize both of them using 9600 bps, 8 bit, 1 stop bit and no parity.?In MCB2300, I use modified version?of UART API?by Martin Thomas . Before using MCB2300, I use two FlexDevel board as a master...


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


configure LPC2368 CPU clock and UART clock

Started by ben_fnr in LPC200017 years ago 4 replies

can someone help me, I am confused by the datasheet and by what I appear to be getting when setting up the clocks. I am using...

can someone help me, I am confused by the datasheet and by what I appear to be getting when setting up the clocks. I am using FreeRTOS. Basically I have some simple code that just flashes an LED and I am now trying to get UART0 up and running but the baudrate is wrong. I think this is because CCLK is not what I think it is. My main XTAL is 4Mhz and I will need to use the USB so luckily...


UART Loop Back

Started by majid_mokhtari in LPC200018 years ago 2 replies

Hi Everybody , First of all , Merry Christams and I hope a happy new year for everybody. May be already answered but I couldn't find...

Hi Everybody , First of all , Merry Christams and I hope a happy new year for everybody. May be already answered but I couldn't find it . I tried to read data from UART0 by initializing exactly based around Insider Guide book from Hitex . I could not receive data by Hyperterminal . After checking all parameters , I used Oscilloscope and I had serial


LPC2468 UART

Started by metnitin in LPC200014 years ago 8 replies

Hi, I am a newbie and trying to drive UART0 of LPC2468 but not able to drive it properly. Followed following steps: 1. Initialize UART...

Hi, I am a newbie and trying to drive UART0 of LPC2468 but not able to drive it properly. Followed following steps: 1. Initialize UART registers Baud rate : 9600-8-N-1 2. Check the LSR value 3. If LSP value is 0x40 then transmit the character on THR Can anybody guide me ------------------------------------


Problems w/ UART

Started by peterburdine in LPC200020 years ago 17 replies

I think I may be missing something stupid, but can anyone help me? I am tring to write to UART0, but it doesn't seem to work. I...

I think I may be missing something stupid, but can anyone help me? I am tring to write to UART0, but it doesn't seem to work. I am trying to write a software buffer to help out the one byte hardware buffer. Specifically I am using the LPC 2294. Below is my code. I am us


uart0 lpc1768 freertos

Started by Matthew Partyka in LPC200012 years ago 3 replies

Hello, I have sent posted to the group yesterday (seems to not have worked first time around) - so if repeat please discard Im having trouble...

Hello, I have sent posted to the group yesterday (seems to not have worked first time around) - so if repeat please discard Im having trouble with my UART functions, the send seems to be working fine but when receive the buffer does not seem to be empty and is resent as if there was a interrupt triggered every time there is a send. (hence going back to the vUAR0RX function) -so my questi...


can't get printf() to print on UART0 with GNU

Started by tiogate in LPC200019 years ago 11 replies

Hello, gentlemen, I am experiencing something that does not make sense to me. To make my debugging easier I wish to use the...

Hello, gentlemen, I am experiencing something that does not make sense to me. To make my debugging easier I wish to use the printf function to send formatted output to UARTO. Fine. As far as I can see, I did everything right: I rewrote the putchar funct


Interfacing LPC2148 UART with 3V CPLD

Started by Sutton Mehaffey in LPC200017 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...


Still trying UART0 Interrupts - almost there

Started by f lee in LPC200018 years ago 1 reply

I've spent a lot of time trying to get this UART Interrupt to work. Not enough I suppose. What have I missed? This is written for the...

I've spent a lot of time trying to get this UART Interrupt to work. Not enough I suppose. What have I missed? This is written for the OLIMEX 2148 compiles and runs under GCC and uses the Phillips std LPC214x.h I hope this will be useful to others who have tried and failed! Thanks for your help! Flee #include "LPC214x.h" #define OSCILLATOR_CLOCK 60000000



Memfault Beyond the Launch