i made this code to blink an led with systick time but it does not work can you please correct this. i am using stm32l152rc discovery board. #include "stm32l1xx.h"while { if (SysTick->CTRL |= SysTick_CTRL_COUNTFLAG == 0) { GPIOB->BSRRH |= GPIO_...
i am doing point ( suggestion ) no 4 like this. Sir, i am just a beginner not an expert like you.Is this correct ?if (( SysTick->CTRL &= SysTick_CTRL_COUNTFLAG) == 1); SysTick->CTRL = 0;{ GPIOB -> BSRRL|= GPIO_BSRR_BS_6;// turn led on}
thank you very much Mr Clive for your hints but this time can you please rewrit the above code and send it to me, i would greatly appreciate. I am just a beginner and you are an expert.arif from canadak.arif4@hotmail.com
time between 2 ticks = 100 ms so the reload value would be= 32000000*100ms-1 or 32000000*.01-1 which is 319999. can you please explain me why your are dividing 32Mhz by 100ms