MC35XS3400 PWM setting

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

MC35XS3400 PWM setting

682 Views
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 Kudos
2 Replies

674 Views
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 Kudos

655 Views
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 Kudos