PINSEL Queries

Started by suyash in LPC200013 years ago 4 replies

Hi all, I am using ARM LPC2106, I have following doubts about the=20 configuration of PINSEL0 and PINSEL1. 1)where exactly should I define...

Hi all, I am using ARM LPC2106, I have following doubts about the=20 configuration of PINSEL0 and PINSEL1. 1)where exactly should I define it in the initialsation? In common system initialisation or at the eac and every periphral=20 (ex. UART0 or SPI etc.) initialisation. 2) suppose I want to use a single pin as multipurpose functioning, so=20 how do I have to take care of PINSELn. ...


More on my UART woes on the LPC2106

Started by Shawn Hunt in LPC200012 years ago 3 replies

One would really think that I would have figured this out by now but I am still stuck. I am just trying to output what I receive on UART0...

One would really think that I would have figured this out by now but I am still stuck. I am just trying to output what I receive on UART0 to UART1 (hooked up to the COM port of another PC) but I end up getting mostly frame errors. The LPC2106 board has a 14.7456 crystal in it. Here is my latest function to initialize both UARTs at 9600 8N1, if anyone has any suggestions as to what I am d...


configure LPC2368 CPU clock and UART clock

Started by ben_fnr in LPC200012 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...


UART0

Started by Mehmet in LPC200011 years ago 2 replies

I'm new on ARM7 and I trying to execute modules of an LPC2468. I can=20 send datas through UART to PC but =FD cant get datas from PC. Can...

I'm new on ARM7 and I trying to execute modules of an LPC2468. I can=20 send datas through UART to PC but =FD cant get datas from PC. Can anybody=20 send me a code ssample just runs UART receive interrupt?=20 ------------------------------------


UART Loop Back

Started by majid_mokhtari in LPC200014 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


UART interrupt example programs

Started by aravindar_manikandan in LPC200015 years ago 1 reply

hi, i am in need of UART0/UART1 interrupt example programs. thanks in advance, mani ...

hi, i am in need of UART0/UART1 interrupt example programs. thanks in advance, mani


LPC2214: UART1 (DTR, CTS, DSR, ...)

Started by skymab in LPC200014 years ago 2 replies

Hi, is it possible just to use RDX1 and TDX1 (like UART0) without the additional signals like DTR, CTS, DSR and so on ... ? Because I...

Hi, is it possible just to use RDX1 and TDX1 (like UART0) without the additional signals like DTR, CTS, DSR and so on ... ? Because I need the I/O pins which are occupied by these control lines for other things. Thomas


2 stop bits

Started by in LPC200012 years ago 2 replies

Hi, has anyone used an LPC2106 with 2 Stop Bits for UART0? What do I have to set the UART0_LCR to, to get the transmission format "no parity,...

Hi, has anyone used an LPC2106 with 2 Stop Bits for UART0? What do I have to set the UART0_LCR to, to get the transmission format "no parity, 2 stop bits, 8bit chars"? Cheers, Daniel


UART0

Started by k10elex in LPC200015 years ago 2 replies

I am using Olimex LPC2106 board with 14.7456Mhz crystal. i am facing problem with the Serial port. i initialise the register ...

I am using Olimex LPC2106 board with 14.7456Mhz crystal. i am facing problem with the Serial port. i initialise the register for 9600 baudrate but its not working. some times it sending some garbage data endless!! here is the code it should send A to I and then


LPC2468 UART

Started by metnitin in LPC20009 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 LPC200015 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


How do interrupts work?

Started by Guillermo Prandi in LPC200014 years ago 6 replies

Hi! I read every doc I've found and I couldn't get a detailed description of the interrupt mechanism in the LPC2XXX. In particular, I'm...

Hi! I read every doc I've found and I couldn't get a detailed description of the interrupt mechanism in the LPC2XXX. In particular, I'm looking for the following: - What happens to interrupts while they're disabled? Do they get "cached"? I mean, if I'm in the middle of processing a UART0 interrupt and UART1 receives a new character, I'd proba


LPC2138 and ISP

Started by Owen Mooney in LPC200014 years ago 1 reply

I am having no luck with the LPC2000 Flash Utility (V2.2.1) and LPC2138 chips I tried with P14 low (although on the LPC2106 this...

I am having no luck with the LPC2000 Flash Utility (V2.2.1) and LPC2138 chips I tried with P14 low (although on the LPC2106 this doesn't matter as the ISP runs if there is not a valid program in it) I can see the data going into UART0 but the output remains high impedance. I then tried programming a chip on my developoment board (via JTAG) to


uart0 lpc1768 freertos

Started by Matthew Partyka in LPC20008 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...


Newbie question Re: static global variable

Started by Kenneth Lafond in LPC200013 years ago 3 replies

Hi all - I've just joined this list the other day when I found out that the UART baudrate formula in the documentation is...

Hi all - I've just joined this list the other day when I found out that the UART baudrate formula in the documentation is incorrect and this list had the correct answer. I'm trying to switch from using PICs to using the ARM LPC2148. In getting familiar with the chip, I've written a program that outputs a string via UART0 - this works just fine. It also can read ...


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

Started by tiogate in LPC200015 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


ISP Problems

Started by jsta...@yahoo.com in LPC200014 years ago 4 replies

Hey All, I\'m having trouble getting the ISP to work with the Philips Flash Utility for a board I made that uses the LPC2106 processor. I\'ve...

Hey All, I\'m having trouble getting the ISP to work with the Philips Flash Utility for a board I made that uses the LPC2106 processor. I\'ve also tried using hyperterminal and sending \'?\', but get no response. I\'ve connected the UART0 send and recv to an inverter and then to a max233. Anyone know if this is right? Originally I did not have the inverter, but I noticed that the max233 i...


Interfacing LPC2148 UART with 3V CPLD

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


weird problem in UART

Started by Mauricio Scaff in LPC200014 years ago 3 replies

I have the following problem that is very odd. I have a very simple program that waits one char from the uart0 and sends it back to it....

I have the following problem that is very odd. I have a very simple program that waits one char from the uart0 and sends it back to it. If I set the baudrate to 57600, it works ok, but if I set the baud rate to 115200, the host (PC) understands any data I send, but the LPC just gives Frame errors even if a single byte is sent..... I'm using a LPC2


Still trying UART0 Interrupts - almost there

Started by f lee in LPC200014 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