EmbeddedRelated.com
The 2024 Embedded Online Conference

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


Uart 1 problem in LPC2103

Started by ahmedfarazvit in LPC200015 years ago

Hi all, The problem seems to be with the fractional divider registers of UART1. I have configured UART0 and UART1 for 9600bps with and...

Hi all, The problem seems to be with the fractional divider registers of UART1. I have configured UART0 and UART1 for 9600bps with and without fractional divider registers. The baud rate matches for both UARTs when there is no fractional divider used.=20 In configuration 1, I have taken MUL =3D 15 and DIV =3D 13 so that fractional division factor is less than 1.=20 In configuration 2, I...


LPC 2148 - UART1 Error Characters obtain in Hyperterminal.

Started by mahaboob in LPC200014 years ago 1 reply

Hi Guys, I am very new to LPC2148, I try to implement the UART1 for the serial communication. I am using the following code, which provide...

Hi Guys, I am very new to LPC2148, I try to implement the UART1 for the serial communication. I am using the following code, which provide error characters in the Hyberterminal not the desired one. I need your Help. regards, Mahaboob. #include "LPC214x.H" #include void UART1_Init(void); void UART1_Write(char); void delay(unsigned long int); void main() { int i;


LPC2136/01 UART1 serial driver

Started by m_jamet in LPC200017 years ago 1 reply

Hi buddies, I'm need to develop a full serial driver for the enhanced UART1 (LPC2136/01 device). This includes flow control, which can be...

Hi buddies, I'm need to develop a full serial driver for the enhanced UART1 (LPC2136/01 device). This includes flow control, which can be softtware (XON/XOFF), hardware (RTS/CTS or DTR/DSR) or none. I have found many examples of simple uart drivers not using flow control but NONE using flow control. Can anyone may help me with this issue, since I have no idea how to write a serial dri...


interfacing ADS7825 with lpc2148 blueboard

Started by shweta in LPC200014 years ago 37 replies

i am working in the project of interfacing ADS7825 with lpc2148 blueboard.i am using ADS7825 in parallel with blueboard.i am connect potentiometer...

i am working in the project of interfacing ADS7825 with lpc2148 blueboard.i am using ADS7825 in parallel with blueboard.i am connect potentiometer at pin 2 of ADS7825.I am interested to display Output of ADS7825(digital data) of ADS7825 into LCD and also uart1 but no data is come into uart1 and LCD. If anybody have idea about then plz help me . thanks in advance. ----------------------------...


LPC2368 UART1 vs. UART0 - 115k baud issue?

Started by goodgodgivemeanaliasalready in LPC200014 years ago 12 replies

Hi all, I am trying to get a simple pass thru of data at 115k from uart 1 to uart 0 on an lpc2368. Both are enabled (powered) and if I use...

Hi all, I am trying to get a simple pass thru of data at 115k from uart 1 to uart 0 on an lpc2368. Both are enabled (powered) and if I use 9600 baud rates, everything is fine. I'm running the unit off the 4MHz IRC. I then bumped uart0 up to 115k, had to switch the fractional baud rate settings. No problem, have 9600 baud message coming in UART1, shooting out UART0 at 115k. Then, I...


UART1 problem receiving but ok transmitt

Started by fredrikssonjohan in LPC200018 years ago 25 replies

Hi! I'm stucked with this and can't figure out why it will not work. Anyone seeing the obvious or have any friendly ideas of what might...

Hi! I'm stucked with this and can't figure out why it will not work. Anyone seeing the obvious or have any friendly ideas of what might be wrong? OK. I'll try to give an as good description as possible of what I have and try do. The first problem is that if I send, as a test, 8 "A" I will get 4 or 5 "A"s in return and then one or two non ascii visible chars and mostly a FF as end. I wou...


AutoBaud

Started by Bruce Paterson in LPC200015 years ago 1 reply

Hi, I know this topic has been mentioned a couple of times, but I can't recall an outcome. Anyway, I'm trying to get autobauding going...

Hi, I know this topic has been mentioned a couple of times, but I can't recall an outcome. Anyway, I'm trying to get autobauding going on an lpc2468 Uart1 I am using the fractional divider too (it's also a USB app), but the manual implies that's all OK, and it uses the prescaled PCLK for it's autobauding rather than the raw value. In my case the prescaler is effectively 0.737, and...


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


UART Problem

Started by mobilsiten in LPC200019 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; /*


What is the UART CTI Interrupt?

Started by Robert Davis in LPC200020 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


LPC2388 -- UART2 and UART3

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


LPC21xx and UART0 problem

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


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


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


UART0 and UART1 baud rate calculations

Started by dodge1955 in LPC200018 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


IAR printf issue

Started by jaso...@gmail.com in LPC200015 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...


LPC2378 IRQ issue

Started by "Mau...@yahoo.com.br [lpc2000]" in LPC20007 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...


Saving Memory in LPC2103

Started by Graham Jones in LPC200014 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 ...


LPC2136 UART1 Hardware Flow Control

Started by uedogan in LPC200019 years ago 2 replies

Hi Experts, i'm currently designing a new project based on the LPC2136. Its my first ARM project (and someone gives me not much...

Hi Experts, i'm currently designing a new project based on the LPC2136. Its my first ARM project (and someone gives me not much time...). I am coming from AVR and 8051 types. In such projects i always implemented RTS/CTS hardware flow control simply by checking the CTS state before sending the next characters (there where no FIFOs). Now,



The 2024 Embedded Online Conference