So I wanted to know if this is possible and if yes, how it could be done.
I have been working on microcontrollers (AtMega8/16) for hobby purposes. I have been writing C codes for simple stuff like running a motor etc. Then I came across RTWEC feature in Simulink and was wondering that if I make a simulink model and use the RTWEC feature, I will not have to write a C code manually.
Basic question I face is - I specify the pin I want to drive the motor by in the C code. How can I specify an output pin/input pin for the microcontroller in Simulink?