Usage of 32-Bit CPU-Timer 0/1/2. Timer will be configured in microseconds.
CPU-Timer 0 and CPU-Timer 1 can be used in user applications. CPU-Timer 2 is reserved for DSP/BIOS. If the application is not using DSP/BIOS, then CPU-Timer 2 can be used in the application.
Code example
__interrupt void isr(void);
void main(void){
int result = 0;
while(1){
}
}
__interrupt void isr(void){
static int led_on=0;
if(!led_on){
led_on = 1;
}
else{
led_on = 0;
}
}
Documented C-Code of module:
cpu_timer
Detailed description in Technical Reference Manual:
Technical_Reference_Manual