eTimer clock configuration in simulink

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

eTimer clock configuration in simulink

663 Views
shirini
Contributor I

IP bus.PNGnxpconfig.PNG

Hi everyone

Currently I am using MBDT (Simulink) for programing NXP-MPC5744P

when using eTimer I do not know what is IP Bus clock frequency in eTimer_Config window. 

in this window I can just select prescaler and there is no option for choosing IP Bus frequency

 

I just want to know how can I configure clock in Simulink?

In  microcontroller configuration block, as you can see, I just can select 200 MHz and I do not know how to access PLLs?

Tags (3)
0 Kudos
1 Reply

645 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I am not familiar with MBDT but I will explain how clocking works for eTimer.

eTimer is supplied by MOTC_CLK as reference manual states:

petervlna_0-1626076267046.png

 

So for setting MOTC_CLK you need to configure Auxiliary Clock 0 Divider 0 Configuration Register
(MC_CGM_AC0_DC0):

petervlna_1-1626076311281.png

And also you need to know clock supply for AUX0, this is defined by your setting of MC_CGM_AC0_SC

petervlna_2-1626076392641.png

So configure divider of your MOTC_CLK according to your needs, this is your eTimer clock.

Best regards,

Peter

0 Kudos