2020-04-27 11:31 AM
this is also correct: ISEQUAL(CH1_int,“on“)&&ISEQUAL(CH2_int,“on“)&&ISEQUAL(TIM_IRQ,“on“)
3. if have also configurate the timer-channel 3/4 as output compare with enabled interrupts.
Every time i generate the code it will generate the HAL_TIM_OC_DelayElapsedCallback and the ISRs I'm use via the functionscalls from the timer-block (isr channel outputs).
But in the HAL_TIM_OC_DelayElapsedCallback the the generatet code will override my
compare values like this:
/* Set the Capture Compare Register value */
__HAL_TIM_SET_COMPARE(&htim8,TIM_CHANNEL_1,(uint32_t)((capture + htim->Instance->CCR1)));
the onle way i found to disable this is to manipulate also the TIMER_Config.tlc with the follow line:
Can I configurate that without manipulate the TIMER_Config.tlc?
Thanks
2020-09-29 12:57 PM
I didn't know if this is a Bug or the normal behavior.
When i'm use the register access block it lose his settings (selected peripheral) every time Simulink reopens the model.