BeanieBots
Moderator
Just been having a quick play with the AXE181 touch sensor demo board.
I'm a bit confused by the behaviour of the following code:-
I was expecting to have four LEDs flashing with a slight variation in flash rate.
Outputs B.4 and B.7 do indeed toggle as expected but B.5 and B.6 are perfectly synchronised with each other
A variation in toggle rate is only observed when the difference in pause values gets quite a bit larger.
I'm sure this is related to multi-tasking overhead but surely not > 10mS?
I'm a bit confused by the behaviour of the following code:-
Code:
#picaxe 18m2
start0:
do
toggle B.4
pause 300
loop
start1:
do
toggle b.5
pause 290
loop
start2:
do
toggle b.6
pause 280
loop
start3:
do
toggle b.7
pause 270
loop
Outputs B.4 and B.7 do indeed toggle as expected but B.5 and B.6 are perfectly synchronised with each other
A variation in toggle rate is only observed when the difference in pause values gets quite a bit larger.
I'm sure this is related to multi-tasking overhead but surely not > 10mS?