Part Number: TMS320F28379D
I notice a timing problem when timing some code. I can duplicate it using a slightly modified version of the GPIO Toggle example for the f2837xD. I am running this on the '379D launchpad. The SYSCLK is setup as follows:
InitSysPll(XTAL_OSC,IMULT_40,FMULT_0,PLLCLK_BY_2);
I execute the following instructions:
GpioDataRegs.GPADAT.bit.GPIO10 = 1;
GpioDataRegs.GPADAT.bit.GPIO10 = 0;
When I scope the output it takes about 35ns to toggle the bit. However, When I step through the instructions in Code Composer the CCS clock says it should only take 3 clock cycles (I'm not sure why it is not 2 but 3 is ok). The clock is running at 200Mhz so 3 clock cycles should be 15ns. Here is the scope output:

What am I missing here? Do I have something set wrong? Thanks