Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Simulink, RTWEC and a Microcontroller
Replies: 1   Last Post: Dec 11, 2012 11:44 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
ranjit

Posts: 1
Registered: 12/11/12
Simulink, RTWEC and a Microcontroller
Posted: Dec 11, 2012 11:45 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello Everyone!

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?

Regards,

R



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.