2344954_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2344954_en-US

2344954_en-US

Question about K5 ADC with RTD(MCAL)

Hi Team


Could you check my feedback from Customer?

The target is S32K5 with RTD(MCAL).


1. To allow ReadGroup to read the result, the conversion‑complete flag must be set to 1.
1-1) Which flag does this refer to—EOC, ECH, etc.?
→ It is EOC.


1-2) If the flag is not set, does ReadGroup return E_NOT_OK?
→ Yes, it returns E_NOT_OK. (The state is checked in Adc_ValidateStateNotIdle.)


1-3) Is there any retry logic inside ReadGroup when a read fails?
→ No, there isn’t. The user must handle retry logic.


1-4) If I implement the retry logic myself,
is it okay to call ReadGroup repeatedly after StartGroupConversion, until I get E_OK?

For example, trying ReadGroup 100 times in a for‑loop.


2. When the value is successfully read, the group state is said to change. Does it change to E_IDLE?
→ It becomes ADC_COMPLETED.


3. After Adc_StartConversion, once Adc_ReadGroup returns E_OK, is it okay to call StartConversion again without StopConversion?
→ STOP is used to stop an ongoing conversion.

So, calling START again without STOP is correct.


4. Also, for the next StartGroupConversion call,
is the state transition supposed to be COMPLETED → BUSY?

Or should it be COMPLETED → IDLE → BUSY,
instead of directly COMPLETED → BUSY?


Thank you.

RTDSource: Direct CustomerRe: Question about K5 ADC with RTD(MCAL)

Hi @Luke_Chun,

Those are my answers:

1-1 Which flag does this refer to—EOC, ECH, etc.?

  • if user enables ADC interrupt (user doesn't enable "Adc Group Without Interrupts"): 
    Sequence call: Adc_StartGroupConversion --> wait group conversion complete via checking "Adc Group Notification" function is invoked --> Adc_ReadGroup().
    when an Adc channel is converted:
    - if user enables "Adc Normal Interrupt Enable", "Adc Group Notification" will be invoked when ECH = 1.
    - if user enables "Adc Injected Interrupt Enable", "Adc Group Notification" will be invoked when JECH = 1.
  • if user uses pooling:
    Sequence call: Adc_StartGroupConversion --> wait group conversion complete via checking Adc_GetGroupStatus = STD_OK (ECH = 1) --> Adc_ReadGroup.

1-2 => OK

1-3 => OK

1-4 is it okay to call ReadGroup repeatedly after StartGroupConversion, until I get E_OK?

=> Yes, it's okay, but NOT the most efficient approach. User should check status first by calling Adc_GetGroupStatus before call ReadGroup.

2. Group state must be ADC_COMPLETED before reading, and it will be changed to ADC_IDLE after successful read.

3 => OK

4. ADC_COMPLETED → (ReadGroup) → ADC_IDLE → (StartGroupConversion) → ADC_BUSY

Best regards,

Dan


Re: Question about K5 ADC with RTD(MCAL)

Hi @Luke_Chun,

If you are supporting a Direct Customer, Could you let me know below information?

  • BSSM Contract: Yes / No
  • Customer Company*:
  • Project Name*:
  • Customer Contact Point* (Name & Email):
  • Software & Hardware Information:
  • SW Package Info*:
  • HW* (Board/Chipset/Platform):
  • SW Version*:

Best regards,

Dan

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎04-08-2026 04:31 AM
更新者: