Patent ID: 7584305

Claim:
A serial peripheral interface (SPI) circuit comprising: a host comprising a data output terminal, a data input terminal, a serial clock terminal, a slave select terminal, and a plurality of general purpose input/output port (GPIO) terminals; a plurality of slaves each comprising a data input terminal connected to the data output terminal of the host, a data output terminal connected to the data input terminal of the host, a serial clock terminal connected to the serial clock terminal of the host, and a select terminal; and a decoder comprising an enable terminal, a plurality of input terminals, and a plurality of output terminals, wherein, an amount of the input terminals of the decoder is equal to an amount of the GPIO terminals of the host, the input terminals are connected to the GPIO terminals respectively, an amount of the output terminals of the decoder is equal to an amount of the slaves, the output terminals of the decoder are connected to the select terminals of the slaves respectively for selecting one of the slaves.