I using Port_IO.h no problem when each time a byte is sent。
but when sending multiple consecutive bytes, are sent the wrong data.
code:
function func_write()
{

byte last_test[8] ={ 0x01, 0x02,0x03, 0x04,0x05, 0x06,0x07, 0x08};

port_write_bytes(hPortwrite, &last_test,8,50);
}


Thank you!