Haha, you’re right there. I can’t even measure the start bit alone because the next bit could be either value.
I didn’t consider that!
IIRC, 2400 baud timing is 417uS, so you’d maybe subtract a little from that to make up for the instruction time of the serial code itself.
No, it’s not fair to compare with Serout, and Debug didn’t even occur to me.
So long as I could use asm like PBP compiler does in the end, it could be smaller.
When I did decompile PBP in the past, all bytes were sent to functions like this via it’s intermediate system variables,
so that’s an extra copy for nothing:
Unless that has been changed in further PBP revisions, it’s still one upCode:Your PBP var -> system var -> serial routine
It also occurred to me since last night that serial input code may, or may not be included in a PBP program if only output code is used.
Ps. It probably goes without saying, the main loop in that example was verbose for readability, and should be replaced by reading the data out of an array!





Bookmarks