2
$\begingroup$

I'm using an F2802x microcontroller and I saw in Embedded Coder in Simulink that I have Digital output block. When I use this block, how does it work?

$\endgroup$
1
  • 1
    $\begingroup$ There seems to be a mismatch between the header and body. Also the way its beibg asked is incredibly broad. Please fix the question to something more understandable and manageable. What do you want to achieve? $\endgroup$
    – joojaa
    Jul 4 '16 at 7:56
2
$\begingroup$

GPIO stands for General Purpose Input Output. Lets assume you want to generate a pulse at pin 39 as in the below image. So when you wire the pulse to pin 39 the underline software will generate the necessary code to configure pin 39 to be an output pin enabling the pin to output a pulse.

enter image description here

Below is the code stack between Simulink and Microcontroller. So when you create a Digital Output block the software will essentially convert and configure your Digital Output block into a Digital output pin. The code will convert into binary code to be able to loaded into the micro controller. Below is a high level diagram that explains the process.

enter image description here


References:

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.