MC35XS3400 PWM setting

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC35XS3400 PWM setting

1,210 次查看
kentseng
Contributor II

Dear Sir

I try to set the MC35XS3400, reference the example code. ( MC10XS3412 ) 

But can't set the output as the PWM control. Please help check the register setting have something error.

------------------------------------------------------------------------------------------------------------------------------------------

H : High level, L : Low level

step 1 : 

Set the reset pin H-->L-->H.

step2 :

set IN0 to H

Step3 :

set GCR--> 0x94C0.

set PWM-->0x84C0.

set Confr0_S--> 0x8800.

set Confr1_S--> 0x8C7C

 

after setting, the HS0 output 12V DC, modify the PWM register is no useful.

the MISO message show openload in ON state fault.

 

thanks.

0 项奖励
2 回复数

1,202 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi,

 

This seems to me a correct setting for the 50% PWM on HS0.

PWM.JPG

 

set Confr1_S--> 0x8C7C - This should disable the ON output open load detection for the HS0 output.

 

How is the FSI pin connected in your application?

FSI.JPG

Maybe the watchdog is enabled and WDIN bit must be toggled at least once within the timeout period.

 

Best regards,

Tomas

0 项奖励

1,183 次查看
kentseng
Contributor II

Hi Tomas

FSI pin connect 10k pull down. setting the watchdog enable.

//WDIN bit must be toggled at least once within the timeout period.

it means WDIN toggled 0<-->1?

 

0 项奖励