Other Parts Discussed in Thread: SYSCONFIG, C2000WARE
Hi,
I am trying to include SCI communication in the "adc_ex2_soc_epwm" example using GPIO28 and GPIO29 pins as SCI_RX and SCI_TX.
But the PinMux_init() function called within the Board_init() function does:
GPIO_setAnalogMode(28, GPIO_ANALOG_ENABLED);
Right after calling the Board_init() function I do:
Board_init();
GPIO_setPinConfig(DEVICE_GPIO_CFG_SCIRXDA);
GPIO_setDirectionMode(DEVICE_GPIO_PIN_SCIRXDA, GPIO_DIR_MODE_IN);
GPIO_setPadConfig(DEVICE_GPIO_PIN_SCIRXDA, GPIO_PIN_TYPE_STD);
GPIO_setQualificationMode(DEVICE_GPIO_PIN_SCIRXDA, GPIO_QUAL_ASYNC);
GPIO_setPinConfig(DEVICE_GPIO_CFG_SCITXDA);
GPIO_setDirectionMode(DEVICE_GPIO_PIN_SCITXDA, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(DEVICE_GPIO_PIN_SCITXDA, GPIO_PIN_TYPE_STD);
GPIO_setQualificationMode(DEVICE_GPIO_PIN_SCITXDA, GPIO_QUAL_ASYNC);
I noticed that serial reception doesn't work and it's because of the "GPIO_setAnalogMode(28, GPIO_ANALOG_ENABLED)" configuration called inside the PinMux_init() function.
Why is the GPIO28 configuration as analog not overridden by the GPIO28 pin configuration as SCI_RX?
How to make sysconfig not configure the GPIO28 pin as analog?
Thanks,
Ari

