Fast data transfer to pc with lpc 82x

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

Fast data transfer to pc with lpc 82x

338 Views
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 Kudos
Reply
1 Reply

274 Views
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 Kudos
Reply