參數(shù)資料
型號(hào): AT43USB355E-AU
廠商: ATMEL CORP
元件分類: 微控制器/微處理器
英文描述: Full-speed USB Microcontroller with Embedded Hub, ADC and PWM
中文描述: 8-BIT, 12 MHz, RISC MICROCONTROLLER, PQFP64
封裝: 1.40 MM, GREEN, PLASTIC, MS-026ACB, LQFP-64
文件頁(yè)數(shù): 74/115頁(yè)
文件大?。?/td> 610K
代理商: AT43USB355E-AU
第1頁(yè)第2頁(yè)第3頁(yè)第4頁(yè)第5頁(yè)第6頁(yè)第7頁(yè)第8頁(yè)第9頁(yè)第10頁(yè)第11頁(yè)第12頁(yè)第13頁(yè)第14頁(yè)第15頁(yè)第16頁(yè)第17頁(yè)第18頁(yè)第19頁(yè)第20頁(yè)第21頁(yè)第22頁(yè)第23頁(yè)第24頁(yè)第25頁(yè)第26頁(yè)第27頁(yè)第28頁(yè)第29頁(yè)第30頁(yè)第31頁(yè)第32頁(yè)第33頁(yè)第34頁(yè)第35頁(yè)第36頁(yè)第37頁(yè)第38頁(yè)第39頁(yè)第40頁(yè)第41頁(yè)第42頁(yè)第43頁(yè)第44頁(yè)第45頁(yè)第46頁(yè)第47頁(yè)第48頁(yè)第49頁(yè)第50頁(yè)第51頁(yè)第52頁(yè)第53頁(yè)第54頁(yè)第55頁(yè)第56頁(yè)第57頁(yè)第58頁(yè)第59頁(yè)第60頁(yè)第61頁(yè)第62頁(yè)第63頁(yè)第64頁(yè)第65頁(yè)第66頁(yè)第67頁(yè)第68頁(yè)第69頁(yè)第70頁(yè)第71頁(yè)第72頁(yè)第73頁(yè)當(dāng)前第74頁(yè)第75頁(yè)第76頁(yè)第77頁(yè)第78頁(yè)第79頁(yè)第80頁(yè)第81頁(yè)第82頁(yè)第83頁(yè)第84頁(yè)第85頁(yè)第86頁(yè)第87頁(yè)第88頁(yè)第89頁(yè)第90頁(yè)第91頁(yè)第92頁(yè)第93頁(yè)第94頁(yè)第95頁(yè)第96頁(yè)第97頁(yè)第98頁(yè)第99頁(yè)第100頁(yè)第101頁(yè)第102頁(yè)第103頁(yè)第104頁(yè)第105頁(yè)第106頁(yè)第107頁(yè)第108頁(yè)第109頁(yè)第110頁(yè)第111頁(yè)第112頁(yè)第113頁(yè)第114頁(yè)第115頁(yè)
74
AT43USB355
2603G–USB–04/06
Programming
the USB Module
The USB hardware consists of two devices, hub and function, each with their own device
address and end-points. Its operation is controlled through a set of memory mapped registers.
The exact configuration of the USB device is defined by the software and it can be pro-
grammed to operate as a compound device, or as a hub only or as a function only. The hub
has the required control and interrupt end-points. The number of external downstream ports is
programmable as 1 or 2. The DP and DM pins of the unused port(s) must be connected to
ground. The USB function has one control end-point and 3 programmable end-points. All the
end-points have their own FIFO. Function end-points 1 and 2 FIFOs are 64 bytes deep and
function end-point 3 has an 8-byte FIFO. If the hub is disabled, one extra end-point becomes
available to the function.
The USB Function
The USB function hardware is designed to operate in the single packet mode and to manage
the USB protocol layer. It consists of a Serial Interface Engine (SIE), end-point FIFOs and a
Function Interface Unit (FIU). The SIE performs the following tasks: USB signaling detec-
tion/generation, data serialization/de-serialization, data encoding/decoding, bit stuffing and un-
stuffing, clock/data separation, and CRC generation/checking. It also decodes and manages
all packet data types and packet fields.
The end-point FIFO buffers the data to be sent out or data received. The FIU manages the
flow of data between the SIE, FIFO and the internal microcontroller bus. It controls the FIFO
and monitors the status of the transactions and interfaces to the CPU. It initiates interrupts and
acts upon commands sent by the firmware.
The USB function hardware of the AT43USB355 makes the physical interface and the proto-
col layer transparent to the user. To start the process, the firmware must first enable the end-
points and which place them in receive mode by default. The device address by default is
address 0. The USB function hardware then waits for a SETUP token from the host. When a
valid the SETUP token is received, it automatically stores the DATA packet in end-point 0
FIFO and responds with an ACK. It then notifies the microcontroller through an interrupt. The
microcontroller reads the FIFO and parses the request.
Transactions for the non-control end-points are even simpler. Once the end-point is enabled, it
waits for an IN or an OUT token depending whether it is programmed as an IN or OUT end-
point. For example, if it is an IN end-point, the microcontroller simply loads the data into the
end-point's FIFO and sets a bit in the control and status register. The USB hardware will
assemble the data in a USB packet and waits for an IN token. When it receives one, it auto-
matically responds by transmitting the DATA packet and completes the transaction by waiting
for the host's ACK. When one is received, the USB hardware will signal the microcontroller
that the transaction has been completed successfully. Retries and data toggles are performed
automatically by the USB hardware. When the IN end-point is not ready to send data, in the
case where the microcontroller has not filled the FIFO, it will automatically respond with a
NAK.
Similarly, an OUT end-point will wait for an OUT token. When one is received, it will store the
data in the FIFO, completes the transaction and interrupt the microcontroller, which then reads
the FIFO and enables the end-point for the next packet. If the FIFO is not cleared, the USB
hardware will responds with a NAK.
A detailed description of how USB transactions are handled is described in the following sec-
tions. First for a control end-point and then for non-control end-points.
相關(guān)PDF資料
PDF描述
AT43USB355M-AC Full-speed USB Microcontroller with Embedded Hub, ADC and PWM
AT43USB355M-AU Full-speed USB Microcontroller with Embedded Hub, ADC and PWM
AT43USB380 On-The-Go Upgrade of the AT43USB370 USB 2.0 Full-Speed Host/Function Processor
AT45BR3214B 32-MEGABIT DATAFLASH + 4-MEGABIT SRAM STACK MEMORY
AT45BR3214B-C1 32-MEGABIT DATAFLASH + 4-MEGABIT SRAM STACK MEMORY
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AT43USB355M-AC 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:Full-speed USB Microcontroller with Embedded Hub, ADC and PWM
AT43USB355M-AU 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:Full-speed USB Microcontroller with Embedded Hub, ADC and PWM
AT43USB370 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:USB 2.0 Full-Speed Host/Function Processor
AT43USB370E-AC 功能描述:USB 接口集成電路 USB HOST DEVICE CONTROL - COM TEMP RoHS:否 制造商:Cypress Semiconductor 產(chǎn)品:USB 2.0 數(shù)據(jù)速率: 接口類型:SPI 工作電源電壓:3.15 V to 3.45 V 工作電源電流: 最大工作溫度:+ 85 C 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:WLCSP-20
AT43USB380 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:On-The-Go Upgrade of the AT43USB370 USB 2.0 Full-Speed Host/Function Processor