clock function in STM8S103F3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-01-21 10:19 PM
Posted on January 22, 2018 at 07:19
unsigned int clock(void) { unsigned char h = TIM1_CNTRH; unsigned char l = TIM1_CNTRL;
return((unsigned int)(h) << 8 | l);
}Can i know the function of above highlighted statement. I have experimented on that statement by change the number in place of 8 i have replaced with different numbers, it given me different type of blinking conditions.But only in 8 it is giving me perfect blinking output.
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
