Question
Addition Problem
Hi,
I am doing something fundamental and cannot get this thing running.
n =(TIM1->CNT);
z= n + 3;
for the first loop cycle 'z' is =3 This is as expected, But as soon as the CNT is increased by 1 the value of 'z' is 4 as shown
| LOOP COUNT | COUNTER VALUES | VARIABLE WITH +3 OPERATION |
| 1 | 20 | 23 |
| 2 | 21 | 24 |
| 3 | 22 | 25 |
| 4 | 23 | 26 |
| 5 | 24 | 27 |
