How is the BCTL and BCTLC pin set?

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

How is the BCTL and BCTLC pin set?

1,501 Views
byeongjinkim
Contributor II

pastedImage_1.png

     <codewarrior>

How is the default value set for the above parameters?

VDDX uses internal power transistor? external BJT? (same BTCL pin configuration)

0 Kudos
6 Replies

1,127 Views
dumitru-daniel_
NXP Employee
NXP Employee

Ok, now i understood. The picture tricked me.

I'll come back with details asap.

Thank you!

Daniel

0 Kudos

1,127 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi byeongjinkim‌,

I checked the toolbox initialization and configurations. There are no particular settings involving the Voltage Regulator Control Register (CPMUVREGCTL) therefore this register will have the default values after reset.

According with the Reference Manual both EXTXON an INTXON have reset value 1's - which is confusing.

I agree with you that we need an initialization sequence according with this table in order to specify the exact setup. 

Capture.JPG

Same story with BCTL and BCTLC pins. No initialization done from Simulink Toolbox.

In order to address this and configure the target the way you want, i think you can use the PEX to generate the configuration headers and then you can inject that code via S-Function into the Simulink generated code. That would do the trick in this case.

Hope it helps!

Daniel

1,127 Views
byeongjinkim
Contributor II

Thank you, Can i see an example configured with S-function?

0 Kudos

1,127 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi byeongjinkim,

Unfortunately we are out of office due to some national holidays until June 6th. I can prepare an example after that to cover this.

In the mean time you can have a look at this topic: https://community.nxp.com/thread/450048 since it is basically the same procedure.

Best regards,
Daniel 

0 Kudos

1,127 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hi byeongjinkim‌,

I presume this is a screenshot for CodeWarrior Processor Expert right ?

Honestly, i do not know how PEX is setting the defaults. You may want to ask the pex experts here: https://community.nxp.com/community/pex 

On this community we can help you with Simulink toolbox related issues.

Thanks for your understanding!

Best regards,
Daniel

0 Kudos

1,127 Views
byeongjinkim
Contributor II

nono... 

My question is default setting in MCtoolbox.

Above parameter(BCTL, BCTLC, etc) can change the settings in PEX.

Then, How is the default value set for the parameters in MCtoolbox?

0 Kudos