ADC High Speed Configuration Issue on K312 ( RTD 2.0.1)

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

ADC High Speed Configuration Issue on K312 ( RTD 2.0.1)

Jump to solution
670 Views
jianjie
Contributor I

Hello NXP Team,

Due to specific reasons, we are still using RTD version ‌2.0.1‌ for our project on the K312。 I noticed discrepancies regarding the ‌ADC Clock configuration for highest conversion speeds‌ between the User Manuals from ‌2022‌ and ‌2025‌.

I have two specific questions regarding this:

  1. For the ‌HSEN bit‌ in the ‌AMSIO register‌, which value should I set to enable High Speed mode in our RTD 2.0.1 context? Should it be set to ‌1‌ or ‌3‌?
  2. The 2022 manual does not describe or provide configuration guidance for the ‌CMPCTRL0‌ bit. Do I need to explicitly configure the ‌CMPCTRL0 bit‌ to achieve the highest conversion speeds using High Speed ADC mode? If configuration is necessary, would it be sufficient to modify the Adc_Sar_EnableHighSpeed() function accordingly?

jianjie_1-1753941389537.png

jianjie_0-1753942283971.png

jianjie_0-1753941238852.png

 

Thank you for your support!

0 Kudos
Reply
1 Solution
570 Views
PavelL
NXP Employee
NXP Employee

Hello @jianjie ,

I have received feedback from our application team. The ADC clock configuration has evolved over time and both settings are valid.

That said, we do not recommend modifying the RTD driver manually. To ensure correct behavior and compatibility, it is always advised to use the latest available RTD package, which incorporates the most up-to-date configuration logic.

Best regards,

Pavel

View solution in original post

0 Kudos
Reply
3 Replies
538 Views
jianjie
Contributor I

Dear Pavel,

Thank you for your support. That has resolved my question.

Best regards,

Jianjie

0 Kudos
Reply
646 Views
PavelL
NXP Employee
NXP Employee

Hello @jianjie ,

Thank you for your interesting query and for sharing your observations regarding the ADC AMSIO HSEN configuration.

I have reviewed your comments and can confirm the discrepancies you noted between the different versions of the Reference Manual. Please be informed that your query is currently being investigated internally. I will keep you updated as soon as further information becomes available.

Thank you for your patience and understanding.

Best regards,

Pavel

0 Kudos
Reply
571 Views
PavelL
NXP Employee
NXP Employee

Hello @jianjie ,

I have received feedback from our application team. The ADC clock configuration has evolved over time and both settings are valid.

That said, we do not recommend modifying the RTD driver manually. To ensure correct behavior and compatibility, it is always advised to use the latest available RTD package, which incorporates the most up-to-date configuration logic.

Best regards,

Pavel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2144203%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EADC%20High%20Speed%20Configuration%20Issue%20on%20K312%20(%20RTD%202.0.1)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144203%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3EHello%20NXP%20Team%2C%3C%2FP%3E%3CP%20class%3D%22%22%3EDue%20to%20specific%20reasons%2C%20we%20are%20still%20using%20RTD%20version%20%E2%80%8C%3CSTRONG%3E2.0.1%3C%2FSTRONG%3E%E2%80%8C%20for%20our%20project%20on%20the%20K312%E3%80%82%20I%20noticed%20discrepancies%20regarding%20the%20%E2%80%8C%3CSTRONG%3EADC%20Clock%20configuration%20for%20highest%20conversion%20speeds%3C%2FSTRONG%3E%E2%80%8C%20between%20the%20User%20Manuals%20from%20%E2%80%8C%3CSTRONG%3E2022%3C%2FSTRONG%3E%E2%80%8C%20and%20%E2%80%8C%3CSTRONG%3E2025%3C%2FSTRONG%3E%E2%80%8C.%3C%2FP%3E%3CP%20class%3D%22%22%3EI%20have%20two%20specific%20questions%20regarding%20this%3A%3C%2FP%3E%3COL%3E%3CLI%3EFor%20the%20%E2%80%8C%3CSTRONG%3EHSEN%20bit%3C%2FSTRONG%3E%E2%80%8C%20in%20the%20%E2%80%8C%3CSTRONG%3EAMSIO%20register%3C%2FSTRONG%3E%E2%80%8C%2C%20which%20value%20should%20I%20set%20to%20enable%20High%20Speed%20mode%20in%20our%20RTD%202.0.1%20context%3F%20Should%20it%20be%20set%20to%20%E2%80%8C%3CSTRONG%3E1%3C%2FSTRONG%3E%E2%80%8C%20or%20%E2%80%8C%3CSTRONG%3E3%3C%2FSTRONG%3E%E2%80%8C%3F%3C%2FLI%3E%3CLI%3EThe%202022%20manual%20does%20not%20describe%20or%20provide%20configuration%20guidance%20for%20the%20%E2%80%8C%3CSTRONG%3ECMPCTRL0%3C%2FSTRONG%3E%E2%80%8C%20bit.%20Do%20I%20need%20to%20explicitly%20configure%20the%20%E2%80%8C%3CSTRONG%3ECMPCTRL0%20%3C%2FSTRONG%3Ebit%E2%80%8C%20to%20achieve%20the%20highest%20conversion%20speeds%20using%20High%20Speed%20ADC%20mode%3F%20If%20configuration%20is%20necessary%2C%20would%20it%20be%20sufficient%20to%20modify%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EAdc_Sar_EnableHighSpeed()%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efunction%20accordingly%3F%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jianjie_1-1753941389537.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jianjie_1-1753941389537.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350393iD6C6C5EB4E014532%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22jianjie_1-1753941389537.png%22%20alt%3D%22jianjie_1-1753941389537.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jianjie_0-1753942283971.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jianjie_0-1753942283971.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350395iE83F1A1FB4C3DF12%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22jianjie_0-1753942283971.png%22%20alt%3D%22jianjie_0-1753942283971.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jianjie_0-1753941238852.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jianjie_0-1753941238852.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350390iCA1E3DCDD74641F2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22jianjie_0-1753941238852.png%22%20alt%3D%22jianjie_0-1753941238852.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22%22%3EThank%20you%20for%20your%20support!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149573%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ADC%20High%20Speed%20Configuration%20Issue%20on%20K312%20(%20RTD%202.0.1)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149573%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EDear%20Pavel%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you%20for%20your%20support.%20That%20has%20resolved%20my%20question.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EBest%20regards%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EJianjie%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2148426%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ADC%20High%20Speed%20Configuration%20Issue%20on%20K312%20(%20RTD%202.0.1)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2148426%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%2F201547%22%20target%3D%22_blank%22%3E%40jianjie%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EI%20have%20received%20feedback%20from%20our%20application%20team.%20The%20ADC%20clock%20configuration%20has%20evolved%20over%20time%20and%20both%20settings%20are%20valid.%3C%2FP%3E%0A%3CP%3EThat%20said%2C%20we%20do%20not%20recommend%20modifying%20the%20RTD%20driver%20manually.%20To%20ensure%20correct%20behavior%20and%20compatibility%2C%20it%20is%20always%20advised%20to%20use%20the%20latest%20available%20RTD%20package%2C%20which%20incorporates%20the%20most%20up-to-date%20configuration%20logic.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2145005%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ADC%20High%20Speed%20Configuration%20Issue%20on%20K312%20(%20RTD%202.0.1)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2145005%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%2F201547%22%20target%3D%22_blank%22%3E%40jianjie%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20interesting%20query%20and%20for%20sharing%20your%20observations%20regarding%20the%20ADC%20AMSIO%20HSEN%20configuration.%3C%2FP%3E%0A%3CP%3EI%20have%20reviewed%20your%20comments%20and%20can%20confirm%20the%20discrepancies%20you%20noted%20between%20the%20different%20versions%20of%20the%20Reference%20Manual.%20Please%20be%20informed%20that%20your%20query%20is%20currently%20being%20investigated%20internally.%20I%20will%20keep%20you%20updated%20as%20soon%20as%20further%20information%20becomes%20available.%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20patience%20and%20understanding.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E