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

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.2.2
Figure 21-5. Endpoint Selection
4337K–USB–04/08
Endpoint 0
Endpoint 6
Endpoint Configuration
UEPSTA0
UEPSTA6
• Set configuration
• Selection of an Endpoint
• Endpoint enable
• Endpoint type configuration
UBYCTH0
UBYCTH6
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
UEPCON6
UBYCTL0
UBYCTL6
UEPDAT0
UEPDAT6
UEPNUM
0
1
2
3
4
5
6
X
UEPSTAX
AT89C5130A/31A-M
UBYCTHX
SFR registers
UEPCONX
UBYCTLX
UEPDATX
123

Related parts for AT89C5130A-M