how can i control evdd pin configuration?
not find control block
Hi Byeongjin Kim,
For MC9S12ZVMC128 the EVDD pin can be set as output via Digital Output Block. According with Reference Manual the EVDD1 is available on microprocessor Pin 61: PP0/EVDD1/...
This pin is a high current, low voltage drop output intended for supplying external devices in a range of up to
20mA. Configuring the pin direction as output automatically enables the high current capability.
I hope this is what you are looking for.
Best regards,
Daniel
is this right?
and then, where is over current detection configuration?
Hi Byeongjin Kim,
The diagram is ok. That will set the pin to high state.
In respect with your questions "where is over current detection configuration" i'm afraid that such configuration is not supported via the toolbox.
It will be unpractical for such toolbox to support all the possible combinations and feature of such microprocessor. The MBD toolbox focus is to support the main configurations and to allow user the flexibility to achieve complex scenarios by leveraging the Matlab options.
Inline with the observation above - there is a simple way to address such additional configurations with the help of Matlab/Simulink. Using S-functions you have the possibility add custom C-code into any Simulink models. All you have to do is to write a small routine to configure the registers you are interested in.
Please have a look over these tips&tricks:
https://community.nxp.com/thread/449904#comment-900775
https://community.nxp.com/thread/449904#comment-901737
There is also a topic that describe step-by-step the procedure:
About Code generation in the Model Based Software
Hope this helps!
Best regards,
Daniel