Don’t know why it would interfere with an interrupt, but I mean this
is no better than doing the same thing with software serial.Code:led off hserout[a,b,c,d,e,f,i,j] led on
The led won’t turn on until all eight bytes are sent.
Where as the above doesn’t even have to wait for the single byte to send serially.Code:led off hserout[byte] led no
If you were going to interrupt this:
You’d have to be sure your interrupt doesn’t change any vars a-j while sendingserial = 1 or you’d end upCode:sendingserial = 1 hserout[a,b,c,d,e,f,i,j] sendingserial = 0
with a composite of what was supposed to be two commands (i.e. you don’t know where it’s up to).




Bookmarks