AN2131QC Cypress Semiconductor Corp, AN2131QC Datasheet - Page 110

no-image

AN2131QC

Manufacturer Part Number
AN2131QC
Description
IC MCU 8051 8K RAM 24MHZ 80BQFP
Manufacturer
Cypress Semiconductor Corp
Series
EZ-USB®r
Datasheet

Specifications of AN2131QC

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
24
Voltage - Supply
3 V ~ 3.6 V
Operating Temperature
0°C ~ 70°C
Mounting Type
Surface Mount
Package / Case
80-QFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
428-1307

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AN2131QC
Manufacturer:
BUSSMANN
Quantity:
3 000
Part Number:
AN2131QC
Manufacturer:
CYPRESS
Quantity:
528
Part Number:
AN2131QC
Manufacturer:
Cypress Semiconductor Corp
Quantity:
10 000
Part Number:
AN2131QC
Manufacturer:
CYPRESS
Quantity:
20 000
The following code illustrates the EZ-USB registers used for a simple bulk transfer. In
this example, 8051 register R1 keeps track of the number of endpoint 2-IN transfers and
register R2 keeps track of the number of endpoint 2-OUT transfers (mod-256). Every
endpoint 2-IN transfer consists of 64 bytes of a decrementing count, with the first byte
replaced by the number of IN transfers and the second byte replaced by the number of
OUT transfers.
EZ-USB TRM v1.9
6.11
1
2
3
4
5
6
7
8
9
10
11
12
13
14 ;
15 loop:
16 movx
17
18
19
20
21 ;
22 serviceOUT2:
23
24
25
26
27 ;
28 serviceIN2:
29
30
31
32
33
34
35
36
37
38
39
40 ;
41
start:
fill:
;
Polled Bulk Transfer Example
Figure 6-6. Example Code for a Simple (Polled) BULK Transfer
mov
mov
mov
mov
movx
inc
djnz
mov
mov
mov
mov
movx
mov
a,@dptr
jnb
mov
movx
jb
inc
mov
movx
sjmp
inc
mov
mov
movx
inc
mov
movx
mov
mov
movx
sjmp
END
SP,#STACK-1
dptr,#IN2BUF
r7,#64
a,r7
@dptr,a
dptr
r7,rill
r1,#0
r2,#0
dptr,#IN2BC
a,#40h
@dptr,a
dptr,#IN2CS
acc.1,serviceIN2
dptr,#OUT2CS
a,@dptr
acc.1,loop
r2
dptr,#OUT2BC
@dptr,a
loop
r1
dptr,3IN2BUF
a,r1
@dptr,a
dptr
a,r2
@dptr,a
dptr,#IN2BC
a,#40h
@dptr,a
loop
Chapter 6. EZ-USB CPU
; set stack
; fill EP2IN buffer with
; decrementing counter
; r1 is IN token counter
; r2 is OUT token counter
; Point to EP2 Byte Count register
; 64-byte transfer
; arm the IN2 transfer
; poll the EP2-IN Status
; not busy--keep looping
; EP2OUT is busy--keep looping
; OUT packet counter
; load byte count register to re-arm
; (any value)
; IN packet counter
; update the first data byte
; in EP2IN buffer
; second byte in buffer
; get number of OUT packets
; point to EP2IN Byte Count Register
; load bc=64 to re-arm IN2
Page 6-13

Related parts for AN2131QC