AT83C5136 Atmel Corporation, AT83C5136 Datasheet - Page 104

no-image

AT83C5136

Manufacturer Part Number
AT83C5136
Description
Manufacturer
Atmel Corporation
Datasheet

Specifications of AT83C5136

Max. Operating Frequency
32 MHz
Cpu
8051-12C
Max I/o Pins
34
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
1
Twi (i2c)
1
Uart
1
Sram (kbytes)
1.25
Eeprom (bytes)
512
Operating Voltage (vcc)
2.7 to 3.6
Timers
4
Mask Rom (kbytes)
32
Watchdog
Yes
21.2.2
Figure 21-5. Endpoint Selection
104
Endpoint 0
Endpoint 5
AT83C5134/35/36
Endpoint Configuration
UEPSTA0
UEPSTA5
• Set configuration
• Selection of an Endpoint
• Endpoint enable
• Endpoint type configuration
UBYCTH0
UBYCTH5
The CONFG bit in the USBCON register has to be set after a SET_CONFIGURATION
request with a non-zero value. Otherwise, this bit has to be cleared.
The endpoint register access is performed using the UEPNUM register. The registers
These registers correspond to the endpoint whose number is stored in the UEPNUM regis-
ter. To select an Endpoint, the firmware has to write the endpoint number in the UEPNUM
register.
Before using an endpoint, this one will be enabled by setting the EPEN bit in the UEPCONX
register.
An endpoint which is not enabled won’t answer to any USB request. The Default Control
Endpoint (Endpoint 0) will always be enabled in order to answer to USB standard requests.
All Standard Endpoints can be configured in Control, Bulk, Interrupt or Isochronous mode.
The Ping-pong Endpoints can be configured in Bulk, Interrupt or Isochronous mode. The
configuration of an endpoint is performed by setting the field EPTYPE with the following
values:
– UEPSTAX
– UEPCONX
– UEPDATX
– UBYCTLX
– UBYCTHX
– Control:EPTYPE = 00b
– Isochronous:EPTYPE = 01b
– Bulk:EPTYPE = 10b
– Interrupt:EPTYPE = 11b
UEPCON0
UEPCON5
UBYCTL0
UBYCTL5
UEPDAT0
UEPDAT5
UEPNUM
0
1
2
3
4
5
X
UEPSTAX
UBYCTHX
SFR registers
UEPCONX
UBYCTLX
UEPDATX
7683C–USB–11/07

Related parts for AT83C5136