| Electronic Components Datasheet Search |
|
ADuC7122BBCZ Datasheet(PDF) 69 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADuC7122BBCZ Datasheet(HTML) 69 Page - Analog Devices |
|
69 / 96 page ![]() Data Sheet ADuC7122 SERIAL PERIPHERAL INTERFACE The ADuC7122 integrates a complete hardware serial peripheral interface (SPI) on chip. SPI is an industry standard, synchronous serial interface that allows eight bits of data to be synchronously transmitted and simultaneously received, that is, full duplex up to a maximum bit rate of 20 Mb. The SPI port can be configured for master or slave operation and typically consists of four pins: SPIMISO, SPIMOSI, SPICLK, and SPI EE AA . CS 66B SPIMISO (MASTER IN, SLAVE OUT) PIN The SPIMISO pin is configured as an input line in master mode and an output line in slave mode. The SPIMISO line on the master (data in) should be connected to the SPIMISO line in the slave device (data out). The data is transferred as byte wide (8-bit) serial data, MSB first. 67B SPIMOSI (MASTER OUT, SLAVE IN) PIN The SPIMOSI pin is configured as an output line in master mode and an input line in slave mode. The SPIMOSI line on the master (data out) should be connected to the SPIMOSI line in the slave device (data in). The data is transferred as byte wide (8-bit) serial data, MSB first. 68B SPICLK (SERIAL CLOCK I/O) PIN The master serial clock (SPICLK) synchronizes the data being transmitted and received through the MOSI SPICLK period. Therefore, a byte is transmitted/received after eight SPICLK periods. The SPICLK pin is configured as an output in master mode and as an input in slave mode. In master mode, polarity and phase of the clock are controlled by the SPICON register, and the bit rate is defined in the SPIDIV register as follows: ) 1 ( 2 SPIDIV f f UCLK CLOCK SERIAL + × = The maximum speed of the SPI clock is independent on the clock divider bits. In slave mode, the SPICON register must be configured with the phase and polarity of the expected input clock. The slave accepts data from an external master up to 10 Mb. In both master and slave modes, data is transmitted on one edge of the SPICLK signal and sampled on the other. Therefore, it is important that the polarity and phase are configured the same for the master and slave devices. 69B SPI CHIP SELECT (SPI AA CSEE AA INPUT) PIN In SPI slave mode, a transfer is initiated by the assertion of SPI AA CSEE AA , which is an active low input signal. The SPI port then transmits and receives 8-bit data until the transfer is concluded by deassertion of SPI AA CSEE AA . In slave mode, SPI AA CSEE AA is always an input. In SPI master mode, SPI AA CSEE AA is an active low output signal. It asserts itself automatically at the beginning of a transfer and deasserts itself upon completion. 70B CONFIGURING EXTERNAL PINS FOR SPI FUNCTIONALITY The SPI pins of the ADuC7122 device are P0.2 to P0.5. P0.5 is the slave chip select pin. In slave mode, this pin is an input and must be driven low by the master. In master mode, this pin is an output and goes low at the beginning of a transfer and high at the end of a transfer. P0.2 is the SPICLK pin. P0.3 is the master in, slave out (SPIMISO) pin. P0.4 is the master out, slave in (SPIMOSI) pin. To configure P0.2 to P0.5 for SPI mode, see the General- Purpose I/O section. Rev. A | Page 69 of 96 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |