S32K144 comparator

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

S32K144 comparator

2,635件の閲覧回数
mogilipuri_harish
Contributor II

hello 

 

we are using the S32k144 uC 64 pin package. we are planning to use analog comparator.

1.can you please tell me which we can use for comparator INP and INM.

2.please provide the hardware connection for comparator in uC(example)?

3.please provide the detailed application note for comparator?

4.which pins we can use for generating the 16kHz PWM and which pins we can use to generate the PWM?

 

0 件の賞賛
返信
2 返答(返信)

2,595件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

It is recommended that you read Chapter 45 Comparator (CMP) of S32K1xx MCU Family - Reference Manual

1. The Analog MUX (ANMUX) provides a circuit for selecting an analog input signal from eight channels. One signal is provided by the 8-bit digital-to-analog converter (DAC). So CMP0_IN0-CMP0_IN7 and DAC output can be used for comparator INP and INM.

Figure 45-1. CMP high level diagram.jpg

2. Connect the external signal to the selected pin of CMP0_IN0-CMP0_IN7. There is a S32K1 SDK sample cmp_dac_s32k144 for your reference. The example documentation can be found in the S32 SDK documentation at Examples and Demos section. (<SDK_PATH>/doc/Start_Here.html)

S32SDK_S32K1XX_RTM_4.0.3 cmp_dac_s32k144.jpg

You can also refer to Example S32K144 CMP Round-robin S32DS2.0

3. I did not find the application note for S32K1 CMP. Please read Chapter 45 Comparator (CMP) of S32K1xx MCU Family - Reference Manual

Q4. Which pins we can use for generating the 16kHz PWM and which pins we can use to generate the PWM?
A4. Do you want to use CMP to generate PWM? If it has nothing to do with the CMP topic, then please read Chapter 47 FlexTimer Module (FTM) and refer to the FTM example in the S32K1 SDK.


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信

2,557件の閲覧回数
mogilipuri_harish
Contributor II

hi

 

we are planning to generate the 16 kHZ PWM signals when ADC pins detect the 4V.

can we implement this kind of logic on uC? if it possible can you tell me how to do that ??

can you provide one example?

0 件の賞賛
返信