Setting Up Baud Rate Dynamically

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

Setting Up Baud Rate Dynamically

934 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by shree91091 on Thu Jun 02 04:52:06 MST 2016
I'm trying to use LPC1115 between application and a device which communicates through UART.
LPC1115 has single UART and 4 TX/RX Pins.
I have taken one TX/RX pair to communicate with application and another TX/RX pair to communicate with device.
Device works on 9600 baud rate.
So at present I have configured baud rate as 9600 for both LPC1115<->Application and LPC1115<->Device communication.

My intention is to use different baud rates.
1. Set 115200 baud rate between application and LPC1115.
2. Set 9600 baud rate between device and LPC1115.

Is it possible to do so ?
Labels (1)
0 Kudos
Reply
2 Replies

890 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos
Reply

890 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Mon Jun 06 07:22:10 MST 2016
Yes of course.

Just apply the different baud rate settings to the appropriate UARTs (they have different register base addresses,
but the same register offsets in each.

I write such routines in Cortex assembler and do not use LPCOpen so I have no code to share,
but it should be very straightforward.

Just change the UART numbers to reflect the desired UART. The datasheet (not user manual) will help
to know which UART is on which pins.

Good luck, Mike.
0 Kudos
Reply