Other Parts Discussed in Thread: C2000WARE
I want to serially communicate with an external device via serial port of C2000 microcontroller TMS320F28377D.
// For this example, only init the pins for the SCI-A port. // GPIO_SetupPinMux() - Sets the GPxMUX1/2 and GPyMUX1/2 register bits // GPIO_SetupPinOptions() - Sets the direction and configuration of the GPIOS // These functions are found in the F2837xD_Gpio.c file. // GPIO_SetupPinMux(28, GPIO_MUX_CPU1, 1); GPIO_SetupPinOptions(28, GPIO_INPUT, GPIO_PUSHPULL); GPIO_SetupPinMux(29, GPIO_MUX_CPU1, 1); GPIO_SetupPinOptions(29, GPIO_OUTPUT, GPIO_ASYNC);
The above given piece of code should enable GPIO 28 & 29 for serial port.
Issue: I am not having a proper document for the docking station [R4.1] and the pin header outputs coming out of it.
PS - It will be great if a detailed pinout diagram or sheet is available to find different GPOIs separately, different ADC channels etc.