參數(shù)資料
型號: AT43USB320A-AC
廠商: ATMEL CORP
元件分類: 微控制器/微處理器
英文描述: Full-speed USB Microcontroller with an Embedded Hub
中文描述: 8-BIT, 12 MHz, RISC MICROCONTROLLER, PQFP100
封裝: 14 X 14 MM, 1.40 MM HEIGHT, 0.50 MM PITCH, MS-026AED, LQFP-100
文件頁數(shù): 53/115頁
文件大?。?/td> 722K
代理商: AT43USB320A-AC
53
AT43USB320A
1443E–USB–4/04
The interconnection between master and slave CPUs with SPI is shown in Figure 16. The
PB7(SCK) pin is the clock output in the master mode and is the clock input in the slave mode.
Writing to the SPI data register of the master CPU starts the SPI clock generator, and the data
written shifts out of the PB5(MOSI) pin and into the PB5(MOSI) pin of the slave CPU. After
shifting one byte, the SPI clock generator stops, setting the end of transmission flag (SPIF). If
the SPI interrupt enable bit (SPIE) in the SPCR register is set, an interrupt is requested. The
Slave Select input, PB4(SS), is set low to select an individual slave SPI device. The two shift
registers in the Master and the Slave can be considered as one distributed 16-bit circular shift
register. This is shown in Figure 16. When data is shifted from the master to the slave, data is
also shifted in the opposite direction, simultaneously. This means that during one shift cycle,
data in the master and the slave are interchanged.
Figure 16.
SPI Master/Slave Interconnection
The system is single buffered in the transmit direction and double buffered in the receive direc-
tion. This means that bytes to be transmitted cannot be written to the SPI Data Register before
the entire shift cycle is completed. When receiving data, however, a received byte must be
read from the SPI Data Register before the next byte has been completely shifted in. Other-
wise, the first byte is lost.
When the SPI is enabled, the data direction of the MOSI, MISO, SCK and SS pins is overrid-
den according to the following table:
Note:
See “Port B” on page 64. for a detailed description of how to define the direction of the user
defined SPI pins.
SCK
SS
SCK
SS
V
CC
MISO MISO
MOSI MOSI
LSB
MASTER
MSB
8-bit Shift Register
SPI
Clock Generator
LSB
SLAVE
MSB
8-bit Shift Register
Table 20.
SPI Pin Overrides
Pin
Direction, Master SPI
Direction, Slave SPI
MOSI
User Defined
Input
MISO
Input
User Defined
SCK
User Defined
Input
SSN
User Defined
Input
相關(guān)PDF資料
PDF描述
AT43USB321 Full-speed USB Hub/Function Microcontroller
AT43USB325E-AC Multimedia USB Keyboard Controller with Embedded Hub
AT43USB325E-AU Multimedia USB Keyboard Controller with Embedded Hub
AT43USB326-AC Multimedia USB Keyboard Controller with Embedded Hub
AT43USB326-AU Multimedia USB Keyboard Controller with Embedded Hub
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AT43USB321 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:Full-speed USB Hub/Function Microcontroller
AT43USB324AC 制造商:未知廠家 制造商全稱:未知廠家 功能描述:KEYBOARD CONTROLLER
AT43USB324YC 制造商:未知廠家 制造商全稱:未知廠家 功能描述:KEYBOARD CONTROLLER
AT43USB325 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:Missed Watchdog Timer Reset
AT43USB325_05 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:Multimedia USB Keyboard Controller with Embedded Hub