S32K1 - Using analog pin in ADC and CMP simultaneously?

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

S32K1 - Using analog pin in ADC and CMP simultaneously?

Jump to solution
534 Views
Joey_van_Hummel
Contributor IV

Hi all,

Quick question. I've searched the S32K-DS and S32K-RM documents as well as AN12217 and series cookbook for answers, but couldn't find out. Hoping you can tell me;

If I have a signal connected to e.g. ADC0_SE0/CMP0_IN0, what happens if both peripherals (ADC and CMP) try to sample this signal? Can both peripherals sample this signal simultaneously? Will there be any consequences to doing this, how is muxing between these peripherals implemented?

Kind regards,

Joey

0 Kudos
Reply
1 Solution
518 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

technically, yes - since each module has its own mux and input stage, they can operate in parallel. However, if the analog signal is shared, the loading effects (e.g. input impedance, capacitance) could affect accuracy.  If both modules try to sample at the same time, you might get inaccurate ADC readings or unstable comparator behavior. The analog mux and sampling circuitry might load the signal differently depending on which module is active.
So a best practices should be a
void simultaneous use of the same pin for both ADC and CMP unless absolutely necessary.

BR, Petr

View solution in original post

2 Replies
519 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

technically, yes - since each module has its own mux and input stage, they can operate in parallel. However, if the analog signal is shared, the loading effects (e.g. input impedance, capacitance) could affect accuracy.  If both modules try to sample at the same time, you might get inaccurate ADC readings or unstable comparator behavior. The analog mux and sampling circuitry might load the signal differently depending on which module is active.
So a best practices should be a
void simultaneous use of the same pin for both ADC and CMP unless absolutely necessary.

BR, Petr

512 Views
Joey_van_Hummel
Contributor IV

Hi @PetrS 

Thank you for your quick and detailed reply. I will take this into consideration for our design.

Kind regards,

Joey

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2140684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K1%20-%20Using%20analog%20pin%20in%20ADC%20and%20CMP%20simultaneously%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EQuick%20question.%20I've%20searched%20the%20S32K-DS%20and%20S32K-RM%20documents%20as%20well%20as%20AN12217%20and%20series%20cookbook%20for%20answers%2C%20but%20couldn't%20find%20out.%20Hoping%20you%20can%20tell%20me%3B%3C%2FP%3E%3CP%3EIf%20I%20have%20a%20signal%20connected%20to%20e.g.%20ADC0_SE0%2FCMP0_IN0%2C%20what%20happens%20if%20both%20peripherals%20(ADC%20and%20CMP)%20try%20to%20sample%20this%20signal%3F%20Can%20both%20peripherals%20sample%20this%20signal%20simultaneously%3F%20Will%20there%20be%20any%20consequences%20to%20doing%20this%2C%20how%20is%20muxing%20between%20these%20peripherals%20implemented%3F%3C%2FP%3E%3CP%3EKind%20regards%2C%3C%2FP%3E%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2140814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K1%20-%20Using%20analog%20pin%20in%20ADC%20and%20CMP%20simultaneously%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140814%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F52961%22%20target%3D%22_blank%22%3E%40PetrS%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20quick%20and%20detailed%20reply.%20I%20will%20take%20this%20into%20consideration%20for%20our%20design.%3C%2FP%3E%3CP%3EKind%20regards%2C%3C%2FP%3E%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2140811%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K1%20-%20Using%20analog%20pin%20in%20ADC%20and%20CMP%20simultaneously%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140811%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3Etechnically%2C%20yes%26nbsp%3B-%26nbsp%3Bsince%20each%20module%20has%20its%20own%20mux%20and%20input%20stage%2C%20they%20can%20operate%20in%20parallel.%20However%2C%20if%20the%26nbsp%3Banalog%20signal%20is%20shared%2C%20the%26nbsp%3Bloading%20effects%26nbsp%3B(e.g.%20input%20impedance%2C%20capacitance)%20could%20affect%20accuracy.%26nbsp%3B%3CSPAN%3E%26nbsp%3BIf%20both%20modules%20try%20to%20sample%20at%20the%20same%20time%2C%20you%20might%20get%20inaccurate%20ADC%20readings%20or%20unstable%20comparator%20behavior.%26nbsp%3BThe%20analog%20mux%20and%20sampling%20circuitry%20might%20load%20the%20signal%20differently%20depending%20on%20which%20module%20is%20active.%3CBR%20%2F%3ESo%20a%20best%20practices%20should%20be%20a%3C%2FSPAN%3Evoid%20simultaneous%20use%26nbsp%3Bof%20the%20same%20pin%20for%20both%20ADC%20and%20CMP%20unless%20absolutely%20necessary.%3C%2FP%3E%0A%3CP%3EBR%2C%20Petr%3C%2FP%3E%3C%2FLINGO-BODY%3E