1 out of 1 members found this post helpful.
Did you find this post helpful?
|
Re: GOTO statement causing jitter in output frequency, can be this fixed?
And since the four pins are on the same port you could do away with the individual RMW-instructions for each pin and just do
Code:
x = 0
masfrk:
PortC = x
x = x + 16
pauseus 194
goto masfrk
Or even
Code:
PortC = 0
masfrk:
PortC = PortC + 16
pauseus 194
goto masfrk
Obviously this will cause the bottom 4 bits of PortC to be 0 but it doesn't look like you're using those for anything.
Bookmarks