Help with UART coding for LPC1769?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help with UART coding for LPC1769?

422 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jodoe on Wed Nov 02 08:21:13 MST 2011
hi, i am new to this and have trouble understanding how to code a simple program in 'C' using the lpcXpresso to send/receive data to my LPC1769 via UART using USB to UART? could someone provide a simple 'C' coding for the proper way to do so? my main beef is not knowing how to use the UART_Receive and UART_Send functions properly

eg using the console panel in LPCXpresso, i want to type "hello world" and make the LPC1769 board be able to display this on the OLED screen as well as see the result on the console panel in LPCXpresso via printf function?

could someone take me through the steps, from initialising the uart, to writing the actual 'C' coding in the main.c file? i'm using semihosting redlib, and the default libaries (Lib_MCU, Lib_EaBaseBoard, Lib_CMSISv1p30_LPC17xx) which were used by the demo program which came with the baseboard, and my LPC1769 is connected via usb cables by the way.
0 Kudos
3 Replies

272 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by FlySnake on Wed Nov 02 23:48:07 MST 2011
Here http://www.coocox.org/Forum/topic.php?id=206 you can find example of using UARTs
0 Kudos

272 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by fjrg76 on Wed Nov 02 22:34:43 MST 2011
Hi

There is a thing called "semihosting" that allows you to use a virtual serial channel, and it is as easy as using printf and scanf. Check this link out:

http://support.code-red-tech.com/CodeRedWiki/UsingPrintf

Regards :)
0 Kudos

272 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jodoe on Wed Nov 02 15:50:41 MST 2011
anyone??
0 Kudos