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