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?
-
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$– joojaaCommented Jul 4, 2016 at 7:56
1 Answer
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.
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.
References: