Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Hello,
freq= 500;
void blink(void){
static unsigned int time;
time = rtiGetPeriod(rtiREG1,rtiCOMPARE0);
if(time%freq==0){
gioSetBit(gioPORTB,6,gioGetBit(gioPORTB,6)^0x01);
}
}
In HalcoGen i have set my Compare Value to 1000ms. How can i get the current value of my Counter?
Thanks a lot