Fast data transfer to pc with lpc 82x

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

Fast data transfer to pc with lpc 82x

943 次查看
topspin
Contributor II

Hello,

I am using the adc of the lpc824 microcntroller and I would like to send the samples to my pc for post processing. Currently I am using an interrupt generated by the mrt to get a data from the adc and send this data through the uart. So far I am running the interrupt at 1ms and everything works fine. I would like to go up to 50 us (20kS/s the ADC is rated for 1MS/s so there should not be a problem for that.. but I am afraid that the Uart code and communication could take too much time and cannot be executed in 50us. Is there a better way to have fast data transfer with the LPC82x microcontrollers? 

 

0 项奖励
回复
1 回复

879 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

If the sampling frequency is 20KHz, the required baut-rate will be

20K*2*(2+8)bits=400000.

From data sheet of LPC82x, the Maximum bit rates of 1.875 Mbit/s in asynchronous mode is okay. But I suggest you use external crystal which has accurate clock frequency and have a try

xiangjun_rong_0-1695611332237.png

 

 

BR

XiangJun Rong

0 项奖励
回复