Hehe... been there, done that, myself. Pulling the wrong MCU from the shelf sucks, thats why I toss or erase all out-of-date mcu's now.
I'll have a look at the port-write-bytes again because I can vaguely remember that being a bug I had for a while. I thought I had fixed it but I may be wrong... I dont remember if I tested it with an MCU, only with hyperterminal.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial