Associate III
February 9, 2021
Solved
Output of interrupt routine inconsistent between different bits?
- February 9, 2021
- 3 replies
- 1448 views
Hi,
I'm having an issue which I can't seem to resolve:
I'm trying to change the output value of Pin9 (Port C) through an interrupt routine (TIM3).
If I put a simple XOR statement for this pin in the interrupt routine it works as expected.
However if I try to load in values from an array the output starts to become inconsistent. This is best seen in the attached screenshots from the oscilloscope.
I have checked in debug mode how many cycles there are between writes to the pin which is pretty consistent for both (40 for xor, 70 for array load). Why is there then a difference between the length of the two 1's (see screenshot array-output).
