Other Parts Discussed in Thread: C2000WARE
Hello,
I found a problem, but I don't understand why. I didn't find the answer in the TRM.
The ePWM1 moudle route to two pairs of pins, one pair of GPIO0 and GPIO1, another pair of GPIO145 and GPIO146, when these two sets of pins are associated with CLB output, I find some differences:
GPIO_setDirectionMode(0, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(0, GPIO_PIN_TYPE_STD);
GPIO_setDirectionMode(1, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(1, GPIO_PIN_TYPE_STD);
GPIO_setDirectionMode(145, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(145, GPIO_PIN_TYPE_STD);
GPIO_setDirectionMode(146, GPIO_DIR_MODE_OUT);
GPIO_setPadConfig(146, GPIO_PIN_TYPE_STD);