AT89C5130A-M Atmel Corporation, AT89C5130A-M Datasheet - Page 124

no-image

AT89C5130A-M

Manufacturer Part Number
AT89C5130A-M
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89C5130A-M

Flash (kbytes)
16 Kbytes
Max. Operating Frequency
48 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)
1024
Self Program Memory
API
Operating Voltage (vcc)
2.7 to 5.5
Timers
4
Isp
UART/USB
Watchdog
Yes
21.3
21.3.1
124
Read/Write Data FIFO
AT89C5130A/31A-M
FIFO Mapping
Table 21-1.
Depending on the selected endpoint through the UEPNUM register, the UEPDATX register
allows to access the corresponding endpoint data fifo.
Endpoint Configuration
Disabled
Control
Bulk-in
Bulk-out
Interrupt-In
Interrupt-Out
Isochronous-In
Isochronous-Out
• Endpoint direction configuration
• Summary of Endpoint Configuration:
• Endpoint FIFO reset
The Endpoint 0 is the Default Control Endpoint and will always be configured in Control type.
For Bulk, Interrupt and Isochronous endpoints, the direction is defined with the EPDIR bit of
the UEPCONX register with the following values:
For Control endpoints, the EPDIR bit has no effect.
Do not forget to select the correct endpoint number in the UEPNUM register before access-
ing to endpoint specific registers.
Before using an endpoint, its FIFO will be reset. This action resets the FIFO pointer to its
original value, resets the byte counter of the endpoint (UBYCTLX and UBYCTHX registers),
and resets the data toggle bit (DTGL bit in UEPCONX).
The reset of an endpoint FIFO is performed by setting to 1 and resetting to 0 the corre-
sponding bit in the UEPRST register.
For example, in order to reset the Endpoint number 2 FIFO, write 0000 0100b then 0000
0000b in the UEPRST register.
Note that the endpoint reset doesn’t reset the bank number for ping-pong endpoints.
– IN:EPDIR = 1b
– OUT:EPDIR = 0b
Summary of Endpoint Configuration
EPEN
0b
1b
1b
1b
1b
1b
1b
1b
EPDIR
Xb
Xb
1b
0b
1b
0b
1b
0b
EPTYPE
XXb
00b
10b
10b
01b
01b
11b
11b
0XXX XXXb
UEPCONX
4337K–USB–04/08
80h
86h
82h
87h
83h
85h
81h

Related parts for AT89C5130A-M