Setting Up Baud Rate Dynamically

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Setting Up Baud Rate Dynamically

938 次查看
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 ?
标签 (1)
0 项奖励
回复
2 回复数

894 次查看
lpcware
NXP Employee
NXP Employee
bump
0 项奖励
回复

894 次查看
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 项奖励
回复