This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

delfino dual "sd_card_cpu01" project and file "mmc-F2837x.c" disk_timerproc

Other Parts Discussed in Thread: CONTROLSUITE

Hello, I'm using delfino dual

and "sd_card_cpu01" V100 from CONTROLSUITE.

In the file  "mmc-F2837x.c"

at row 811 there is "disk_timerproc" routine

which "[...] must be called in period of 10ms [...]"

so in the outer code you have to implement periodic isr.

If I analyze the code I see that this routine decrement two timer ("Timer1" and "Timer2") used

to implement timeouts.

Why not use, for example 64-bit "IPC Counter Register" which is gifted ?

  • Mauro,
    Like the Clock train question in another thread, there can be multiple ways to implement the timer. The author of the code chose to use the timers. It looks like they are used in multiple other places in the project, so they re-used the code for this section.
    It is also possible that the device the code was originally wrote for did not have an IPC, so no IPCCounter would have been available. If i remember correctly, this example was ported from another device to work on F2837x, so that is likely the reason.

    Does the IpcCounter() function work for you in this case?

    Thanks,
    Mark

  • yes, I've tried, it's ok