Part Number:TMS570LC4357
Tool/software: Code Composer Studio
/* USER CODE BEGIN (2) */ unsigned int start_app; /* USER CODE END */ void main(void) { /* USER CODE BEGIN (3) */ gioInit(); rtiInit(); /* enable Interrupts*/ _enable_IRQ(); rtiEnableNotification(rtiREG1,rtiNOTIFICATION_COMPARE0); rtiStartCounter(rtiREG1,rtiCOUNTER_BLOCK0); while(1){ if(start_app){ rtiResetCounter(rtiREG1,rtiCOUNTER_BLOCK0); start_app = 0; /* Execute TL generated Code (); */ //Subsystem(); gioSetBit(gioPORTB,6,1); } rtiStartCounter(rtiREG1,rtiCOUNTER_BLOCK0); } void rtiNotification(rtiBASE_t *rtiREG, uint32 notification) { /* enter user code between the USER CODE BEGIN and USER CODE END. */ /* USER CODE BEGIN (12) */ rtiStopCounter(rtiREG1,rtiCOUNTER_BLOCK0); start_app = 1; /* USER CODE END */ }
Hi,
i want that every 10ms an interrupt accurs and the LED gets on.
I cannot find my mistake.
thanks a lot