S32K3 LPCMP roundrobin

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

S32K3 LPCMP roundrobin

ソリューションへジャンプ
844件の閲覧回数
PINKMAN
Contributor III

hi experts:

I have a question regarding the round-robin function of the LPCMP. I have fixed the negative input of the comparator to the DAC, while there are two channels for the positive input. This setup allows me to use the RTC to trigger polling.

My question is: whether it is possible to set different DAC values for the two positive input channels respectively.

For example,

positive input 0 is paired with a 2.5V DAC output,

and positive input 1 is paired with a 3.0V DAC output.

My understanding is that this configuration is not supported, meaning only a single fixed DAC value can be used for the round-robin comparison.

0 件の賞賛
返信
1 解決策
820件の閲覧回数
PavelL
NXP Employee
NXP Employee

Hello @PINKMAN ,

Your understanding is correct. In the LPCMP round‑robin mode, the one input can be cycled across multiple channels (e.g., IN0, IN1), while the other input is fixed to a single source - the internal DAC. The LPCMP round-robin switch does not control the DAC.

In other words:

  • You can select multiple positive input channels for polling.
  • Only one DAC setting is used as the reference (negative input) for the entire round‑robin sequence.

This aligns with the S32K3 Reference Manual, Rev. 11, Figure 263 (LPCMP block diagram).

Possible alternatives if you need two thresholds (e.g., 2.5 V and 3.0 V):

  1. Use two LPCMP instances (if available in your S32K3 chip), each with its own DAC setting.
  2. Software-controlled DAC update: After each RTC trigger or poll, reprogram the DAC to the next threshold before the subsequent comparison. Naturally, this adds latency and you lose fully autonomous round‑robin behavior.

Best regards,

Pavel

元の投稿で解決策を見る

1 返信
821件の閲覧回数
PavelL
NXP Employee
NXP Employee

Hello @PINKMAN ,

Your understanding is correct. In the LPCMP round‑robin mode, the one input can be cycled across multiple channels (e.g., IN0, IN1), while the other input is fixed to a single source - the internal DAC. The LPCMP round-robin switch does not control the DAC.

In other words:

  • You can select multiple positive input channels for polling.
  • Only one DAC setting is used as the reference (negative input) for the entire round‑robin sequence.

This aligns with the S32K3 Reference Manual, Rev. 11, Figure 263 (LPCMP block diagram).

Possible alternatives if you need two thresholds (e.g., 2.5 V and 3.0 V):

  1. Use two LPCMP instances (if available in your S32K3 chip), each with its own DAC setting.
  2. Software-controlled DAC update: After each RTC trigger or poll, reprogram the DAC to the next threshold before the subsequent comparison. Naturally, this adds latency and you lose fully autonomous round‑robin behavior.

Best regards,

Pavel

%3CLINGO-SUB%20id%3D%22lingo-sub-2253013%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K3%20LPCMP%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89%E3%83%AD%E3%83%93%E3%83%B3%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2253013%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%E5%B0%82%E9%96%80%E5%AE%B6%E3%81%AE%E7%9A%86%E3%81%95%E3%82%93%3A%3C%2FP%3E%3CP%3E%3CSPAN%3ELPCMP%E3%81%AE%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89%E3%83%AD%E3%83%93%E3%83%B3%E6%A9%9F%E8%83%BD%E3%81%AB%E9%96%A2%E3%81%97%E3%81%A6%E8%B3%AA%E5%95%8F%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E3%82%B3%E3%83%B3%E3%83%91%E3%83%AC%E3%83%BC%E3%82%BF%E3%81%AE%E8%B2%A0%E3%81%AE%E5%85%A5%E5%8A%9B%E3%82%92%20DAC%20%E3%81%AB%E5%9B%BA%E5%AE%9A%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E6%AD%A3%E3%81%AE%E5%85%A5%E5%8A%9B%E3%81%AB%E3%81%AF%202%20%E3%81%A4%E3%81%AE%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E3%81%93%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%81%AB%E3%82%88%E3%82%8A%E3%80%81RTC%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%83%9D%E3%83%BC%E3%83%AA%E3%83%B3%E3%82%B0%E3%82%92%E3%83%88%E3%83%AA%E3%82%AC%E3%83%BC%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%82%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E7%A7%81%E3%81%AE%E8%B3%AA%E5%95%8F%E3%81%AF%E3%80%812%20%E3%81%A4%E3%81%AE%E6%AD%A3%E3%81%AE%E5%85%A5%E5%8A%9B%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%AB%E3%81%9D%E3%82%8C%E3%81%9E%E3%82%8C%E7%95%B0%E3%81%AA%E3%82%8B%20DAC%20%E5%80%A4%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%AF%E5%8F%AF%E8%83%BD%E3%81%8B%E3%81%A9%E3%81%86%E3%81%8B%E3%81%A7%E3%81%99%E3%80%82%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E4%BE%8B%E3%81%88%E3%81%B0%E3%80%81%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E6%AD%A3%E5%85%A5%E5%8A%9B0%E3%81%AF2.5V%20DAC%E5%87%BA%E5%8A%9B%E3%81%A8%E3%83%9A%E3%82%A2%E3%81%AB%E3%81%AA%E3%82%8A%E3%80%81%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E6%AD%A3%E5%85%A5%E5%8A%9B%201%20%E3%81%AF%203.0V%20DAC%20%E5%87%BA%E5%8A%9B%E3%81%A8%E3%83%9A%E3%82%A2%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%E7%A7%81%E3%81%AE%E7%90%86%E8%A7%A3%E3%81%A7%E3%81%AF%E3%80%81%E3%81%93%E3%81%AE%E6%A7%8B%E6%88%90%E3%81%AF%E3%82%B5%E3%83%9D%E3%83%BC%E3%83%88%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%AA%E3%81%84%E3%81%9F%E3%82%81%E3%80%81%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89%E3%83%AD%E3%83%93%E3%83%B3%E6%AF%94%E8%BC%83%E3%81%AB%E3%81%AF%E5%8D%98%E4%B8%80%E3%81%AE%E5%9B%BA%E5%AE%9A%20DAC%20%E5%80%A4%E3%81%97%E3%81%8B%E4%BD%BF%E7%94%A8%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2253169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3%20LPCMP%20roundrobin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2253169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F193092%22%20target%3D%22_blank%22%3E%40PINKMAN%3C%2FA%3E%20%E3%80%81%3C%2FP%3E%0A%3CDIV%3E%0A%3CP%3E%E3%81%82%E3%81%AA%E3%81%9F%E3%81%AE%E7%90%86%E8%A7%A3%E3%81%AF%E6%AD%A3%E3%81%97%E3%81%84%E3%81%A7%E3%81%99%E3%80%82LPCMP%20%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89%E3%83%AD%E3%83%93%E3%83%B3%20%E3%83%A2%E3%83%BC%E3%83%89%E3%81%A7%E3%81%AF%E3%80%811%20%E3%81%A4%E3%81%AE%E5%85%A5%E5%8A%9B%E3%82%92%E8%A4%87%E6%95%B0%E3%81%AE%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%20(IN0%E3%80%81IN1%20%E3%81%AA%E3%81%A9)%20%E3%81%AB%E3%82%8F%E3%81%9F%E3%81%A3%E3%81%A6%E5%BE%AA%E7%92%B0%E3%81%95%E3%81%9B%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81%E3%82%82%E3%81%86%201%20%E3%81%A4%E3%81%AE%E5%85%A5%E5%8A%9B%E3%81%AF%E5%8D%98%E4%B8%80%E3%81%AE%E3%82%BD%E3%83%BC%E3%82%B9%20(%E5%86%85%E9%83%A8%20DAC)%20%E3%81%AB%E5%9B%BA%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82LPCMP%20%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89%E3%83%AD%E3%83%93%E3%83%B3%20%E3%82%B9%E3%82%A4%E3%83%83%E3%83%81%E3%81%AF%20DAC%20%E3%82%92%E5%88%B6%E5%BE%A1%E3%81%97%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%0A%3CP%3E%E8%A8%80%E3%81%84%E6%8F%9B%E3%81%88%E3%82%8B%E3%81%A8%EF%BC%9A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%E3%83%9D%E3%83%BC%E3%83%AA%E3%83%B3%E3%82%B0%E5%AF%BE%E8%B1%A1%E3%81%A8%E3%81%97%E3%81%A6%E8%A4%87%E6%95%B0%E3%81%AE%E6%AD%A3%E3%81%AE%E5%85%A5%E5%8A%9B%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89%E3%83%AD%E3%83%93%E3%83%B3%20%E3%82%B7%E3%83%BC%E3%82%B1%E3%83%B3%E3%82%B9%E5%85%A8%E4%BD%93%E3%81%AE%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9%20(%E8%B2%A0%E3%81%AE%E5%85%A5%E5%8A%9B)%20%E3%81%A8%E3%81%97%E3%81%A6%E4%BD%BF%E7%94%A8%E3%81%95%E3%82%8C%E3%82%8B%20DAC%20%E8%A8%AD%E5%AE%9A%E3%81%AF%201%20%E3%81%A4%E3%81%A0%E3%81%91%E3%81%A7%E3%81%99%E3%80%82%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%E3%81%93%E3%82%8C%E3%81%AF%E3%80%81S32K3%20%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9%20%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB%E3%80%81Rev.%2011%E3%80%81%E5%9B%B3%20263%20(LPCMP%20%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E5%9B%B3)%20%E3%81%A8%E4%B8%80%E8%87%B4%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E2%20%E3%81%A4%E3%81%AE%E3%81%97%E3%81%8D%E3%81%84%E5%80%A4%20(%E4%BE%8B%3A%202.5%20V%20%E3%81%A8%203.0%20V)%20%E3%81%8C%E5%BF%85%E8%A6%81%E3%81%AA%E5%A0%B4%E5%90%88%E3%81%AE%E4%BB%A3%E6%9B%BF%E6%A1%88%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%E3%81%9D%E3%82%8C%E3%81%9E%E3%82%8C%E7%8B%AC%E8%87%AA%E3%81%AE%20DAC%20%E8%A8%AD%E5%AE%9A%E3%82%92%E6%8C%81%E3%81%A4%202%20%E3%81%A4%E3%81%AE%20LPCMP%20%E3%82%A4%E3%83%B3%E3%82%B9%E3%82%BF%E3%83%B3%E3%82%B9%20(S32K3%20%E3%83%81%E3%83%83%E3%83%97%E3%81%A7%E4%BD%BF%E7%94%A8%E5%8F%AF%E8%83%BD%E3%81%AA%E5%A0%B4%E5%90%88)%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2%E5%88%B6%E5%BE%A1%E3%81%AE%20DAC%20%E6%9B%B4%E6%96%B0%3A%20%E5%90%84%20RTC%20%E3%83%88%E3%83%AA%E3%82%AC%E3%83%BC%E3%81%BE%E3%81%9F%E3%81%AF%E3%83%9D%E3%83%BC%E3%83%AA%E3%83%B3%E3%82%B0%E3%81%AE%E5%BE%8C%E3%81%AB%E3%80%81%E5%BE%8C%E7%B6%9A%E3%81%AE%E6%AF%94%E8%BC%83%E3%81%AE%E5%89%8D%E3%81%AB%20DAC%20%E3%82%92%E6%AC%A1%E3%81%AE%E3%81%97%E3%81%8D%E3%81%84%E5%80%A4%E3%81%AB%E5%86%8D%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E5%BD%93%E7%84%B6%E3%80%81%E3%81%93%E3%82%8C%E3%81%AB%E3%82%88%E3%82%8A%E3%83%AC%E3%82%A4%E3%83%86%E3%83%B3%E3%82%B7%E3%81%8C%E5%A2%97%E5%8A%A0%E3%81%97%E3%80%81%E5%AE%8C%E5%85%A8%E3%81%AB%E8%87%AA%E5%BE%8B%E7%9A%84%E3%81%AA%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89%E3%83%AD%E3%83%93%E3%83%B3%E5%8B%95%E4%BD%9C%E3%81%8C%E5%A4%B1%E3%82%8F%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FDIV%3E%0A%3CP%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%81%8A%E9%A1%98%E3%81%84%E3%81%84%E3%81%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%83%91%E3%83%99%E3%83%AB%3C%2FP%3E%3C%2FLINGO-BODY%3E