Hello everyone,
I have had this issue for a long time and just can't over-come it. I've searched and search the reference material, but have no luck.
I have a stm32f303 and a Keil uVision 4 IDE. I am simulating using the IDE and I am not the hardware. Internal Oscillator. 8Mhz
When I run the program I have the "System Viewer" pulled up and I am looking at the TIM7 CNT register.
When the program runs, the CNT register just stays at 0x0000.
Below is the code I am using.
Does anyone have any idea what could be the fix for this?????
//Enable SYSCFG clock RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE); //Timer clock RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM7, ENABLE); //Time base configuration TIM_TimeBaseStructInit(&TIM_TimeBaseStructure); TIM_TimeBaseStructure.TIM_Period = 9999; TIM_TimeBaseStructure.TIM_Prescaler = 99; TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up; TIM_TimeBaseInit(TIM7, &TIM_TimeBaseStructure); //TIM Interrupts enable TIM_ITConfig(TIM7, TIM_IT_Update, ENABLE); TIM_Cmd(TIM7, ENABLE);
Thanks so much for the help, Jim