Other Parts Discussed in Thread: TMS320F28379D
Tool/software: TI C/C++ Compiler
Hi,
We try to drive the GPIO as a parallel bus (as fast as possible) by reading a table, the code is simple :
for(j=0;j<30;j++)
{
GpioDataRegs.GPADAT.all = tab[j];
}
with this code we get 2MHz max probably because of the loop overhead.
By unrolling the loop manually, we get about 22MHz
At this moment, we thought that RPTB would help because the number of cycles is a constant (30 in this case)
We tried with different optimization levels, but the precious RPTB instruction doesn't appear.
- Do you know why ?
- How to force this instruction to be used in C ?
Regards,
Marc