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.

how can I do a simple timer function on tms570 as millis() on arduino

Other Parts Discussed in Thread: HALCOGEN

i want to insert a  arduino code

unsigned long currentLCDMillis = millis();
// MUST WE SWITCH SCREEN?
if(currentLCDMillis - previousLCDMillis > lcdInterval) {
previousLCDMillis = currentLCDMillis;
screen++;
if (screen > screenMax) screen = 0; // all screens done? => start over
screenChanged = true;

I have to set a timer to read milliseconds. I cant find any example to do this. Can anybody help me?

(hercules tms570ls1224pge)