AN2131SC Cypress Semiconductor Corp, AN2131SC Datasheet - Page 115

no-image

AN2131SC

Manufacturer Part Number
AN2131SC
Description
IC MCU 8051 8K RAM 24MHZ 44QFP
Manufacturer
Cypress Semiconductor Corp
Series
EZ-USB®r
Datasheet

Specifications of AN2131SC

Applications
USB Microcontroller
Core Processor
8051
Program Memory Type
ROMless
Controller Series
AN213x
Ram Size
8K x 8
Interface
I²C, USB
Number Of I /o
16
Voltage - Supply
3 V ~ 3.6 V
Operating Temperature
0°C ~ 70°C
Mounting Type
Surface Mount
Package / Case
44-QFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
428-1306
AN2131SC

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AN2131SC
Manufacturer:
CYPRESS
Quantity:
5 510
Part Number:
AN2131SC
Manufacturer:
Cypress Semiconductor Corp
Quantity:
10 000
Part Number:
AN2131SC
Manufacturer:
CY
Quantity:
1 000
Part Number:
AN2131SC
Manufacturer:
PANASONIC
Quantity:
1 000
Part Number:
AN2131SC
Manufacturer:
CYPRESS
Quantity:
8 000
Part Number:
AN2131SC
Manufacturer:
CYPRSS
Quantity:
20 000
2.
3.
Put it anywhere in memory and the jump table in step 1 will automatically jump to it.
In this example, the ISR simply sets the 8051 flag “got_EP2_data” to indicate to the back-
ground program that the endpoint requires service. Note that both data pointers and the
DPS (Data Pointer Select) registers must be saved and restored in addition to the accumu-
lator.
Page 6-18
; -----------------
; Interrupt Vectors
; -----------------
Write the INT2 interrupt vector.
Write the interrupt service routine.
org
ljmp
; -----------------------------
; USB Interrupt Service Routine
; -----------------------------
EP2OUT_ISR
Figure 6-9. Interrupt Service Routine (ISR) for Endpoint 2-OUT
push
push
push
push
push
push
mov
clr
mov
mov
mov
movx
setb
pop
pop
pop
pop
pop
pop
reti
43h
USB_Jump_Table
dps
dpl
dph
dpl1
dph1
acc
a,EXIF
acc.4
EXIF,a
dptr,#OUT07IRQ
a,#01000000b
@dptr,a
got_EP2_data
acc
dph1
dpl1
dph
dpl
dps
Figure 6-8. INT2 Interrupt Vector
Chapter 6. EZ-USB CPU
; save both dptrs, dps, and acc
; clear USB IRQ (INT2)
;
; clear OUT2 int request
; set my flag
; restore vital registers
a “1” clears the IRQ bit
; int2 is the USB vector
; Autovector will replace byte 45
EZ-USB TRM v1.9

Related parts for AN2131SC