GPIO Block in Embedded Coder Support Package for TI C2000 Processors has pins only till GPIO34

7 views (last 30 days)
A Preetham Venkatesh
A Preetham Venkatesh on 5 Dec 2020
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.
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.
How do I use GPIO's 35, 36, 37 and 38, when I'm building code from MATLAB?

Answers (2)

Sukrut Tamhankar
Sukrut Tamhankar on 9 Dec 2020
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.

A Preetham Venkatesh
A Preetham Venkatesh on 8 Apr 2021
Edited: A Preetham Venkatesh on 8 Apr 2021
Please find the screenshots below:
I have highlighted some statements that suggest otherwise. Please let me know whether these pins can/cannot be programmed via MATLAB alone.
Please find the documents that I have taken the screenshots from:
Page 15 ->
Page 106 ->

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!