fix register check error in SPI transmit-only mode.
renew SPI work function & add comment for SPI function