This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28P559SJ-Q1: GPIO register configuration

Part Number: TMS320F28P559SJ-Q1
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi Champ,

I am asking for my customer.

(1). In 100PZ pin, pin41 is corresponding to GPIO231 and GPIO253, how to configure the registers to decide which GPIO is used on the pin ? I see there is a register named AGPIOCTRLH, the bit.GPIO253 is decided to have AGPIO functionality to be enabled or disabled, could the user use the bit to distinguish the pin as GPIO231(AGPIO enabled) and GPIO253 (AGPIO disabled)

(2). If yes, there is no corresponding Registers to Driverlib Functions for the AGPIOCTRLH register in, user should call the GPIO_setAnalogMode API, right ?

(3). How to configure pin41 to GPIO231 / GPIO253 in SysConfig ? Using CCS12.8.1 IDE, the pin could ONLY be configured as GPIO253, would the expert kindly explicitly show the setting in the GUI ? 

Thanks and regards,

Johnny

  • Hi Johnny,

    GPIO 231 isn't linked to pin 41 in the 100PZ package.

    Best Regards,

    Masoud

  • Hi Masoud,

    Thanks for your reply.

    Based on DS Table 5-1. Pin Attributes and Table 6-12. Analog Pins and Internal Connections, why it is shown pin 41 for GPIO231 ? Is there a typo here ?

    Thanks and regards,

    Johnny

  • Hi Masoud,

    Adding more input, 

    1. I tried to configure the pin41 (100-pin) as AGPIO in Analog PinMux (Use Case : Custom), then set the pin41 to GPIO (the selection pops up with B0, C11, GPIO253/41 ONLY, no selection for AGPIO231) in SysConfig, the gen. code was configured with GPIO253 reg as below in SysConfig. 

    // B0, C11, GPIO253 -> myGPIO0 Pinmux

    GPIO_setPinConfig(GPIO_253_GPIO253);

    // AGPIO -> GPIO mode selected

    GPIO_setAnalogMode(253, GPIO_ANALOG_DISABLED);

    2. Besides, the pin attribute descriptions aren't matched in Table 5-1. Same pin on pin41 (100-pin), but two GPIO configurations. Which GPIO is linked to the pin41 on 100-pin package ?

     Thanks and regards,

    Johnny

     

  • Hi Masoud,

    Any chance to get the final confirmation by today ?

    Looking forward to the input, thanks, 

    Johnny

  • I've reached out to the team handling DS for p55. I'll update you as soon as I get their response.

    Best Regards,

    Masoud

  • Johnny/Masoud,

    This is a typo, only GPIO253 is available on the B0/C11 on the 100 pin package. 

    There is no GPIO231 on this device, which is why the SYSCONFIG is not showing it,  231 is available as AIO only muxed with A0/B15/C15 pin on all packages.  

    I will file a bug to get this corrected in the above tables.  I suspect Table 5-1 was used when we created the comparator table, so that is why this is duplicated.  

    Best,

    Matthew