AT89C5122D-PSTUM Atmel, AT89C5122D-PSTUM Datasheet - Page 105
AT89C5122D-PSTUM
Manufacturer Part Number
AT89C5122D-PSTUM
Description
IC 8051 MCU FLASH 32K 64QFN
Manufacturer
Atmel
Series
89Cr
Datasheet
1.AT89C5122D-PSTUM.pdf
(208 pages)
Specifications of AT89C5122D-PSTUM
Core Processor
8051
Core Size
8-Bit
Speed
48MHz
Connectivity
SmartCard, SPI, UART/USART, USB
Peripherals
LED, POR, WDT
Number Of I /o
46
Program Memory Size
32KB (32K x 8)
Program Memory Type
FLASH
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-QFN
For Use With
AT89STK-10 - KIT EVAL APPL MASS STORAGEAT89STK-03 - KIT STARTER FOR MCU AT8XC5122/23
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
- Current page: 105 of 208
- Download datasheet (3Mb)
Control Transactions
Setup Stage
Data Stage: Control Endpoint
Direction
Status Stage
4202F–SCR–07/2008
The DIR bit in the UEPSTAX register should be at 0.
Receiving Setup packets is the same as receiving Bulk Out packets, except that the
Rxsetup bit in the UEPSTAX register is set by the USB controller instead of the
RXOUTB0 bit to indicate that an Out packet with a Setup PID has been received on the
Control endpoint. When the RXSETUP bit has been set, all the other bits of the UEP-
STAX register are cleared and an interrupt is triggered if enabled.
The firmware has to read the Setup request stored in the Control endpoint FIFO before
clearing the RXSETUP bit to free the endpoint FIFO for the next transaction.
The data stage management is similar to Bulk management.
A Control endpoint is managed by the USB controller as a full-duplex endpoint: IN and
OUT. All other endpoint types are managed as half-duplex endpoint: IN or OUT. The
firmware has to specify the control endpoint direction for the data stage using the DIR bit
in the UEPSTAX register.
•
•
The bit DIR is used to send the correct data toggle in the data stage.
To send a STALL handshake, see “STALL Handshake” on page 108.
The DIR bit in the UEPSTAX register should be reset at 0 for IN and OUT status stage.
The status stage management is similar to Bulk management.
•
•
If the data stage consists of INs,
the firmware has to set the DIR bit in the UEPSTAX register before writing into the
FIFO and sending the data by setting to 1 the TXRDY bit in the UEPSTAX register.
The IN transaction is complete when the TXCMPL has been set by the hardware.
The firmware should clear the TXCMPL bit before any other transaction.
If the data stage consists of OUTs,
the firmware has to leave the DIR bit at 0. The RXOUTB0 bit is set by hardware
when a new valid packet has been received on the endpoint. The firmware must
read the data stored into the FIFO and then clear the RXOUTB0 bit to reset the
FIFO and to allow the next transaction.
For a Control Write transaction or a No-Data Control transaction, the status stage
consists of a IN Zero Length Packet (see “Bulk/Interrupt IN Transactions In
Standard Mode” on page 103). To send a STALL handshake, see “STALL
Handshake” on page 108.
For a Control Read transaction, the status stage consists of a OUT Zero Length
Packet (see “Bulk/Interrupt OUT Transactions in Standard Mode” on page 101).
AT83R5122, AT8xC5122/23
105
Related parts for AT89C5122D-PSTUM
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
IC 8051 MCU 32K CRAM USB 64-VQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC 8051 MCU W/SMART CARD 64VQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC 8051 MCU FLASH 32K 64VQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC MCU 80C51 W/SMART CARD 64VQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC 8051 MCU FLASH 32K 28PLCC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MICROCONTROLLER WITH USB AND SMART CARD READER INTERFACES
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
KIT STARTER FOR MCU AT8XC5122/23
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC MICRO CTRL 24MHZ 44TQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC MICRO CTRL 24MHZ 44PLCC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC MICRO CTRL 24MHZ 44PLCC
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC MICRO CTRL 24MHZ 40DIP
Manufacturer:
Atmel
Datasheet: