EasyManuals Logo

Abov A96G166 User Manual

Default Icon
247 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #150 background imageLoading...
Page #150 background image
15. USART 0/1 A96G166/A96A166/A96S166 User’s manual
150
Figure 78. SPI Clock Formats when UCPHA = 1
When UCPHA=1, the slave begins to drive its MISOn output when SSn goes active low, but the data
is not defined until the first XCKn edge. The first XCKn edge shifts the first bit of data from the shifter
onto the MOSIn output of the master and the MISOn output of the slave.
The next XCKn edge causes both the master and slave to sample the data bit value on their MISOn
and MOSIn inputs, respectively.
At the third XCKn edge, the USARTn shifts the second data bit value out to the MOSIn and MISOn
output of the master and slave respectively. When UCPHA=1, the slave’s SSn input is not required to
go to its inactive high level between transfers.
Because the SPI logic reuses the USARTn resources, SPI mode of operation is similar to that of
synchronous or asynchronous operation. An SPI transfer is initiated by checking for the USARTn
Data Register Empty flag (UDRE=1) and then writing a byte of data to the UDATA Register. In master
mode of operation, even if transmission is not enabled (TXE=0), writing data to the UDATA register is
necessary because the clock XCKn is generated from transmitter block.
XCK
(UCPOL=1)
MISO2
MOSI2
XCK
(UCPOL=0)
/SS2 OUT
(MASTER)
BIT7
BIT0
/SS2 IN
(SLAVE)
BIT6
BIT1
…
…
BIT2
BIT5
BIT0
BIT7
BIT1
BIT6
SAMPLE
MSB First
LSB First

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Abov A96G166 and is the answer not in the manual?

Abov A96G166 Specifications

General IconGeneral
BrandAbov
ModelA96G166
CategoryComputer Hardware
LanguageEnglish

Related product manuals