Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
I am evaluating the TMS320F28379D processor via the Launchpad28379D and creating my own project from the examples provided using the Bit field header files. I can get the GPIO and interrupts set up and working and wanted to check the clocks of the system. Reading through the technical manual I found that the XCLKOUT can be used to output the clock on GPIO73. However this pin is only routed to the high density connector on the back of the launchpad. I found a related forum post where the solution is to use the XBAR to route the clock signal from the GPIO73 to the GPIO Output XBAR. The goal is to route the clock signal on GPIO73 to InputXBAR1 and then to GPIO output XBAR1 (GPIO24) on a scope. I am having trouble and so far all I can see is a 200mV 60Hz signal on the pin no matter what clock source is congfigured. From the information in the technical manual I have set the following regesters with the following commands:
//Want to make GPIO73 output XCLK but needs 69 clock cycles between writes so write this at the beginning
ClkCfgRegs.CLKSRCCTL3.bit.XCLKOUTSEL = 6; //Select the INTOSC2 for now
/*Output the system clock on GPIO73 to monitor on scope*/
GpioCtrlRegs.GPCMUX1.bit.GPIO73 = 3; // Set mux to XCLK
GpioCtrlRegs.GPCDIR.bit.GPIO73 = 1; //Set as output
GpioCtrlRegs.GPAPUD.bit.GPIO24 = 0; // Enable pullup on GPIO24
GpioCtrlRegs.GPADIR.bit.GPIO24 = 1; //Set to output
GpioCtrlRegs.GPAMUX2.bit.GPIO24 = 1; //Set mux so pin 24 is XBAROUT0
//Need to route this pin to the INPUT XBAR, to then route to OUTPUTXBAR since
//This pin 73 is not brought out from package on the Launchpad!!
OutputXbarRegs.OUTPUTLOCK.bit.LOCK = 0;
InputXbarRegs.INPUTSELECTLOCK.bit.INPUT1SELECT = 0;
InputXbarRegs.INPUT1SELECT = 73;
OutputXbarRegs.OUTPUT1MUX0TO15CFG.bit.MUX1 = 0x1;
OutputXbarRegs.OUTPUT1MUXENABLE.bit.MUX1 = 1;
OutputXbarRegs.OUTPUTLATCHENABLE.bit.OUTPUT1 = 0;
OutputXbarRegs.OUTPUTINV.bit.OUTPUT1 = 0;
Please advise if I have neglected to set a particular register or why I may not be able to see the clock outputting on GPIO24.
Thank you for your time
