Part Number: TMS320F28P659DH-Q1
Tool/software:
Hi Champ,
Reading from this post, it is answered by all GPIOs have internal pullup enabled by default at reset except AIOs and and EPWM-capable pins.
Then, reading the F28P65x TRM GPIO configuration overview, it is written all pullups are disabled by default.
(1). Do we have a GPIO structure change from time to time ?
(2). In our example (i.e. epwm / GPIO / ecap), even if the GPIO direction is set as output, we would always enable the pullup with GPIO_setPadConfig(GPIOx, GPIO_PIN_TYPE_PULLUP); every times in the beginning ? What is the purpose for ?


(3). Any effect to do with GPIO as output w/ and w/o internal pullup enable ?
(4). If the GPIO is set as below,
GPIO_setPadConfig(0, GPIO_PIN_TYPE_PULLUP); // Enable pullup on GPIO0 GPIO_writePin(0, 0); // Load output initial GPIO_setPinConfig(GPIO_0_GPIO0); // GPIO0 = GPIO0 GPIO_setDirectionMode(0, GPIO_DIR_MODE_OUT);// GPIO0 = output
Then, I/O pin is either configure to EPWM or GPIO output, and there is an "external" pulldown resistor (~4.7k-10 Ohm) connected to pin, in such scenario, considering IO internal weak pullup here, what would the pin behave like GPIO with pullup or pulldown or should be push-pull mode ?
Thanks and regards,
Johnny