摘要 |
Disclosed are a synchronous serial interface system using a microcontroller for SPI communication and a method thereof capable of SSI encoder read with the microcontroller for the SPI communication. The disclosed synchronous serial interface system using the microcontroller for the SPI communication comprises the microcontroller, a transceiver unit, and a data selector. The microcontroller generates an encoder selection signal; generates an SPI clock corresponding to a predetermined data size; and digitizes a value inputted to an input terminal (SPI MISO terminal) by synchronizing the value with the generated serial peripheral interface (SPI) clock; and stores the value in a buffer as a data value of the synchronous serial interface (SSI) encoder. The transceiver unit converts the SPI clock generated in the microcontroller into a line drive type clock and outputs the same to an encoder unit. The transceiver unit converts the line drive type data into open collector type data. The data selector selects one of SSI data outputted in the transceiver unit according to an encoder selection signal outputted in the microcontroller and inputs one of SSI data to the input terminal of the microcontroller. |