Posted on May 17, 2011 at 15:06Should I disable interrupts during EPROM block programming? (I think so...but where can I read it?) If so, what are the exact points to first disable and then reenable ints?
Posted on May 17, 2011 at 15:04It seems to me that you can't write access both PR and RLR register of IWDG before enabling it...I.e. you must first load 0xCC (ENABLE_KEY) in KR, then 0x55 (ACCESS_KEY) again in KR, and finally write the prescaler and...
Posted on May 17, 2011 at 15:03Many thanks to COSMIC. In fact the particular construct line was taken from the ST library stm8s_tim1.c, that I expected to be written in accordance with a standard C behaviour. I also think that the embedded union is ...
Posted on May 17, 2011 at 15:03It seems to me that Cosmic compiler makes a wrong assembly sequence in compiling this: return (u16)(((u16)TIM1->CNTRH << 8) | (u16)(TIM1->CNTRL)); In fact it should read CNTRH first, and then CNTRL (that has an offset ...