EmbeddedRelated.com

LPC2148 UART Fractional baud Rate and Maximal baudrate

Started by croquettegnu in LPC200017 years ago 3 replies

Hi All, 1) I'm working on the IAR Kickstart PC2148 kit and I'm facing problems to configure correctly the different UARTs regarding the...

Hi All, 1) I'm working on the IAR Kickstart PC2148 kit and I'm facing problems to configure correctly the different UARTs regarding the fractional baud rate feature... I have looked at the user manual which gives only a big formula and an example @20MHz but not how to compute the correct MULDIV DIVADDVAL for a dedicated baud rate and frequency CCLK. 2) I would like to know what is the m...


Re: LPC2378 reset pin problem

Started by misi...@gmail.com in LPC200012 years ago 4 replies

Hi Vinaya, Did you solve this problem with low level on reset pin ? I'm having the same issue with lpc2138 chip right...

Hi Vinaya, Did you solve this problem with low level on reset pin ? I'm having the same issue with lpc2138 chip right now. Regards, Darek Hi all, > We have developed a LPC2378 board.One board is fully working with all possible interfaces (SPI,UART,Ethernet etc) and i was using the JTAG emulator to load / debug the software. I want to test the ISP feature , so i have taken up another bo


How does can you use all functions lpc230x.c

Started by jefspalace in LPC200016 years ago 28 replies

Hi all, I am digging through the UART example that comes with the Olimex_LPC_2378_STK.hzq package in Crossstudio. I noticed that the file...

Hi all, I am digging through the UART example that comes with the Olimex_LPC_2378_STK.hzq package in Crossstudio. I noticed that the file lpc230x.c has no header file and that you can use the functions in that file in every other file although there is no header file used. How can this be? Regards, Jef ------------------------------------


LPC23xx UARTx CTI interrupt problem

Started by Ilian in LPC200017 years ago 2 replies

Hi, I'm using UART2 on my LPC2368 board to receive data from other device. I note that sometimes uart is blocking. The CTI interrupt is...

Hi, I'm using UART2 on my LPC2368 board to receive data from other device. I note that sometimes uart is blocking. The CTI interrupt is always assetred LSR register indicate there is no data in FIFO (i.e. RDR bit = 0) and the interrutp can not be cleared (read from UxRBR). And this crash my system. I investigate problem and I've found this is general BUG in LPC and in ARM. There is a prob...


Please Help: LPC 2103 In Application Programming ( IAP)

Started by Tushar Phadtare in LPC200014 years ago 1 reply

Dear Sir, I m using LPC2103 and free compiler from GNUARM for my project I wish to 1) Program Flash memory from my program code...

Dear Sir, I m using LPC2103 and free compiler from GNUARM for my project I wish to 1) Program Flash memory from my program code (incorporating IAP) besides other execution routines. 2) Operate UART in interrupt mode. 3) Configure & Use RTC in my application. Can you please elaborate with sample code. I m enclosing source and initialisation files herewith (Compiling through c....


RTC Power Down Problem

Started by Shashank Maheshwari in LPC200012 years ago 3 replies

Hello I have issues with the RTC of my LPC2148 board. The system is always in PD mode. I want it to wake up every few seconds(say 5sec)...

Hello I have issues with the RTC of my LPC2148 board. The system is always in PD mode. I want it to wake up every few seconds(say 5sec) transmit at UART and go back to PD mode. I use external 32kHz oscillator with external 3.0 V battery for the RTC. The same when added with external interrupts works perfect for external interrupts however no result on the RTC peripheral. Following is th...


LPC1769 timer issue

Started by r_goncalves2000 in LPC200012 years ago 4 replies

Hello I'm using an LPC1769 and CMSISv2p00_LPC17xx. I use a 12MHz crystal and the CPU is running at 120MHZ. In my board I use the UART0, I2C,...

Hello I'm using an LPC1769 and CMSISv2p00_LPC17xx. I use a 12MHz crystal and the CPU is running at 120MHZ. In my board I use the UART0, I2C, watchdog, LCD, etc.. I also have timer 0 running. Sometimes after a reset it seens like the timer is running without the correct value but much more slower. Everything else seems to work ok (UART, E2PROM access, LCD, etc...) This problem seens to b...


LPC1114 Deep Sleep

Started by Shashank Maheshwari in LPC200011 years ago 4 replies

Hi I have a system in which I have an external interrupt which wakes the system transmits UART data and the system sleeps again on LPC1114...

Hi I have a system in which I have an external interrupt which wakes the system transmits UART data and the system sleeps again on LPC1114 (302). When I put this system in deep sleep mode it consumes 7mA of current. I do not understand why this consumption is so high ??? There are 2 more sensors on the board with it which consume around 10uA combined current. There is no other IC on the ...


USB Host controller for LPC17xx

Started by prab...@yahoo.co.in in LPC200013 years ago 6 replies

Hi all, We are developing USB host controller for LPC17xx.I would like proper guide from urs.Here is my Quries 1.Is there any sample...

Hi all, We are developing USB host controller for LPC17xx.I would like proper guide from urs.Here is my Quries 1.Is there any sample code frm(NXP etc)? 2.What are the documents have to refer for write USB host controller? 3.Pls give me the steps i have to follow? Note:I have already developed UART driver.We will have(LPC) to connect with USBDatacard. Anyone have already...


The best way to solder an ARM processor

Started by roccogalati in LPC200013 years ago 36 replies

Hi to all! I have to connect the ARM processor's pins to my circuit in order to interface it with UART and some sensors. If needed, the ARM...

Hi to all! I have to connect the ARM processor's pins to my circuit in order to interface it with UART and some sensors. If needed, the ARM datasheet is: http://docs-europe.origin.electrocomponents.com/webdocs/0db0/0900766b80db0f69.pdf It is possible to buy a socket where I can plug my ARM processor or I have to solder it directly in the circuit? I've never soldering a smd device, so I...


Problem with LPC2378 UART

Started by jkasinathan in LPC200013 years ago 2 replies

Problem regarding UART1 in LPC2378. I am using LPC2378 microcontroller. Programming uart1 for communication.=20 Using P2.0 for TXD1 and P2.1...

Problem regarding UART1 in LPC2378. I am using LPC2378 microcontroller. Programming uart1 for communication.=20 Using P2.0 for TXD1 and P2.1 for RXD1. The initialization section of the co= de is given below. Using Crystal clock 12MHz, Baud rate is 9600 bps. PINSEL10 =3D 0X000000000; //To disable the ETM interface. PINSEL4 =3D 0X0000000a; //select TXD1 and RXD1 lines IO0DIR =3D 0...


Any Example assembler Program for ARM

Started by Rajendra in LPC200018 years ago 8 replies

Hi, I am a silent member of this group. I always program ARM using C- Languages. Now i want to learn how to do coding using Assembley. I...

Hi, I am a silent member of this group. I always program ARM using C- Languages. Now i want to learn how to do coding using Assembley. I am using IAR Kick-Start card. Does anyone have any example Program for ARM using this IAR Compiler. Now i started of studying the Asm CODEs for ARM. Kindly support me by giving a simple UART communication program to start with. regards, Raje...


Timer and UART interrupt simultaneously

Started by "emiel.guide" in LPC200015 years ago 18 replies

I am working with Crossworks 1.7 and I am having some trouble with the interrupts that occur. The interrupts are working fine untill they occur...

I am working with Crossworks 1.7 and I am having some trouble with the interrupts that occur. The interrupts are working fine untill they occur simultaneously. (I have 5 interrupts total, 3 external(buttons)) The interrupts are all vectored based. Timer IRQ is on vector adress 0 to give it the highest priority. The programs seems to go to 'pabort handler' when there are more than 2 flags...


LPC2103 - having trouble getting UART working

Started by ah_sandiego in LPC200017 years ago 3 replies

Below is the code I am using. It is based on code I had working on the LPC2148. I don't know what I am missing. Has anyone got this working...

Below is the code I am using. It is based on code I had working on the LPC2148. I don't know what I am missing. Has anyone got this working on the LPC2103?? Thanks AH. #define PLOCK 0x400 void InitializeClocksAndMemory(void) { // LPC2103 has clock at FOSC=14.7456MHz (crystal) // P=2 gives an FCCO = 14.7456MHz * M * 2 * P = 235.9296MHz PLLCFG=0x23; // MSEL=3 and PSEL=1 ...


lpc2103 return from power down uart issue

Started by Daniel K Melchior in LPC200012 years ago 3 replies

Hi group, I am a relatively new member to the group - just monitoring messages, and picking up useful information. Presently I have a problem...

Hi group, I am a relatively new member to the group - just monitoring messages, and picking up useful information. Presently I have a problem with an lpc2103 project that others may be able to provide some insight. We have a very low power timer application using an lpc2103, in which we are setting an RTC alarm, and going into deep power down state. The application can be woken by an alarm, ...


Lpc2378 Debug problem

Started by otomeran in LPC200015 years ago 1 reply

Hello all, I have problem with Olimex 2378stk Devlopment board. Before few days, i tried to debug lpc2378 uart(my first atempt on ARM)...

Hello all, I have problem with Olimex 2378stk Devlopment board. Before few days, i tried to debug lpc2378 uart(my first atempt on ARM) throught JTAG. Everything worked fine, but suddenly debug with eclipse stopped to work. Starting app is completed with errors, but when i run debug, message could not set hardware breakpoint appear. When i try to connect throught ISP, i see some prog...


FreeRTOS and high speed UARTs of LPC210x

Started by stevec in LPC200013 years ago 1 reply

Testing FreeRTOS on LPC2106 with both UART channels outputting at 115K baud. I'm using the transmit FIFOs, so the interrupt rate is 1/16th what...

Testing FreeRTOS on LPC2106 with both UART channels outputting at 115K baud. I'm using the transmit FIFOs, so the interrupt rate is 1/16th what it would be without FIFOs (I'm amazed at how rarely I see sample code using the FIFO or using it such that it cannot do its purpose). The issue and question is: I'm using the FreeRTOS message queue to service the transmit UARTs. With message queues o...


LPC2468 UARTs

Started by micka060 in LPC200016 years ago

Hi all, I'm currently writing a software where I will use all four UARTs of the LPC2468. I base my software upon the FreeRTOS real time...

Hi all, I'm currently writing a software where I will use all four UARTs of the LPC2468. I base my software upon the FreeRTOS real time system. My plan is to write an ISR that handles requests from all 4 UARTs. to avoid having to jump in and out of the ISR my plan is to do like this: * Set up the VIC to run the same ISR on all UART interrupts. * When any of the UARTs request an interr...


Newbie: simple questions?

Started by JoeR in LPC200016 years ago 9 replies

Hi all, Wheres the links for newbie arm7? I am new to raw arm7, having used the Coridium arm7 C setup. Where I am. I hava yagarto installed...

Hi all, Wheres the links for newbie arm7? I am new to raw arm7, having used the Coridium arm7 C setup. Where I am. I hava yagarto installed and compiling, I have Procylon armlib installed, and I built the example uart. I have NXP Flash Magic installed, and flashed the hex to my board. Heres my trouble. Its a Futurlec 2103F proto board. Now this board is different from other boards...


Re: lpc 2138 read protection jtag

Started by Danish Ali in LPC200016 years ago 2 replies

That's the whole point. With JTAG you would be able to read the FLASH or download a new program that can read the FLASH. So that would defeat...

That's the whole point. With JTAG you would be able to read the FLASH or download a new program that can read the FLASH. So that would defeat read protection! All you can do is erase everything by in-system programming over the UART. But. If you want to debug your own code that has read-protection enabled, you can set bit 2 in PINSEL2 as an early step in your code. This will switch P...