ADC Frequency and Sample rate in LPC55xx

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

ADC Frequency and Sample rate in LPC55xx

Jump to solution
217 Views
pejo
Contributor III

Hi!

I'm configuring ADC Conversion in my LPC5504. 

Currently the configuration is the following:

* Main Clock: 96MHz

* ADCK Configuration:

  - CLOCK_SetClkDiv to Prescaler = 2   (48MHz)

* 10 conversion operations:

  - 9 with 35 ADCK cycles total sample time

  - 1 with  131 ADCK cycles total sample time

* Conversion start trigger:

  - Callback function in PWM at 10KHz

This is already working.

In the document from the NXP Knowledge base "ADC multi-channel sampling and DMA transfer in LPC55xx" it is said that maximum frequency is 24MHz but as I said we selected ADCK to 48MHz.

Question #1 Should we set a smaller prescaler (4 instead) according to this limitation or we could even use prescaler=1 ?

In this same document and in the user manual it is said that maximum sample conversion is 1 Mega samples per second. In our case we are doing 10 conversions at 10kHz which are 100,000 conversions pers second

Question #2 should I understand that we are still under the limitation of 1MSPS ?

 

Labels (1)
0 Kudos
Reply
1 Solution
135 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @pejo 

For details about the ADC clock frequency and sample rate, please refer to the Datasheet.

Alice_Yang_0-1765166017884.png

 

Thank you.

 

BR

Alice

 

 

View solution in original post

0 Kudos
Reply
1 Reply
136 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @pejo 

For details about the ADC clock frequency and sample rate, please refer to the Datasheet.

Alice_Yang_0-1765166017884.png

 

Thank you.

 

BR

Alice

 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2254173%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EADC%20Frequency%20and%20Sample%20rate%20in%20LPC55xx%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2254173%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi!%3C%2FP%3E%3CP%3EI'm%20configuring%20ADC%20Conversion%20in%20my%20LPC5504.%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%20the%20configuration%20is%20the%20following%3A%3C%2FP%3E%3CP%3E*%20%3CSTRONG%3EMain%20Clock%3C%2FSTRONG%3E%3A%2096MHz%3C%2FP%3E%3CP%3E*%20%3CSTRONG%3EADCK%20Configuration%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%20-%26nbsp%3B%3CSPAN%3ECLOCK_SetClkDiv%20to%20Prescaler%20%3D%202%26nbsp%3B%20%26nbsp%3B(48MHz)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E*%3CSTRONG%3E%2010%20conversion%20operations%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%20-%209%20with%26nbsp%3B35%20ADCK%20cycles%20total%20sample%20time%3C%2FP%3E%3CP%3E%26nbsp%3B%20-%201%20with%26nbsp%3B%26nbsp%3B131%20ADCK%20cycles%20total%20sample%20time%3C%2FP%3E%3CP%3E*%3CSTRONG%3E%20Conversion%20start%20trigger%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%20-%20Callback%20function%20in%20PWM%20at%2010KHz%3C%2FP%3E%3CP%3EThis%20is%20already%20working.%3C%2FP%3E%3CP%3EIn%20the%20document%20from%20the%20NXP%20Knowledge%20base%20%22%3CSPAN%3EADC%20multi-channel%20sampling%20and%20DMA%20transfer%20in%20LPC55xx%22%20it%20is%20said%20that%20maximum%20frequency%20is%2024MHz%20but%20as%20I%20said%20we%20selected%20ADCK%20to%2048MHz.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EQuestion%20%231%20Should%20we%20set%20a%20smaller%20prescaler%20(4%20instead)%20according%20to%20this%20limitation%20or%20we%20could%20even%20use%20prescaler%3D1%20%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIn%20this%20same%20document%20and%20in%20the%20user%20manual%20it%20is%20said%20that%20maximum%20sample%20conversion%20is%201%20Mega%20samples%20per%20second.%20In%20our%20case%20we%20are%20doing%2010%20conversions%20at%2010kHz%20which%20are%20100%2C000%20conversions%20pers%20second%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EQuestion%20%232%20should%20I%20understand%20that%20we%20are%20still%20under%20the%20limitation%20of%201MSPS%20%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2254173%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELPC55xx%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2256637%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ADC%20Frequency%20and%20Sample%20rate%20in%20LPC55xx%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2256637%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F232719%22%20target%3D%22_blank%22%3E%40pejo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3EFor%20details%20about%20the%20ADC%20clock%20frequency%20and%20sample%20rate%2C%20please%20refer%20to%20the%20Datasheet.%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_0-1765166017884.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_0-1765166017884.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368868i038CFE73E812CF93%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_0-1765166017884.png%22%20alt%3D%22Alice_Yang_0-1765166017884.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E