![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/455734/image.png)
GPIO Block in Embedded Coder Support Package for TI C2000 Processors has pins only till GPIO34
조회 수: 1 (최근 30일)
이전 댓글 표시
In the embedded coder support package for TI C2000 processors library, under C2802x devices, the GPIO block configures pins only till GPIO 34 as shown below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/447158/image.png)
However, for processors in this series, I find that there are GPIO's 35, 36, 37 and 38. I've attached the pin diagram of 2802x processors below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/447163/image.png)
How do I use GPIO's 35, 36, 37 and 38, when I'm building code from MATLAB?
댓글 수: 0
답변 (2개)
Sukrut Tamhankar
2020년 12월 9일
Please refer to the section "9.9.10 General-Purpose Input/Output (GPIO) MUX" in the following datasheet:
In the table "9-31. GPIOB MUX", you can observe that peripheral selections for GPIO35,36,37,38 are "Reserved" that means there is no peripheral assigned to this GPxMUX1/2 register setting and hence those GPIOs can not configured. Please refer the below screenshot for the same.
Also, if you select GPIO Group as "GPIO8~GPIO15" in the C2802x GPIO Digital Output Block in Simulink, you will get an option to select only one GPIO in that range which is GPIO12 as all other GPIOs are reserved.
I hope this information resolves your query.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/455734/image.png)
댓글 수: 1
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!