English
Language : 

AT90SCR100_09 Datasheet, PDF (211/433 Pages) ATMEL Corporation – 8-bit Microcontroller for Smart Card Readers
Figure 17-6. Pipe activation flow:
Pipe Activation
AT90SCR100
UPNUM.PNUM=X
Select the pipe to configure
UPCRX.PEN=1
Update: UPCFG0X
.PTYPE
.PTOKEN
.PEPNUM
Select the pipe type:
- Type (Control, Isochronous, Bulk, I
- Token (IN, OUT, SETUP)
- Endpoint Number
Update: UPCFG1X
.PSIZE
.PBK
.CFGMEM
Configure the Pipe memory:
- Pipesize
- Number Of Banks
UPSTAX.CFGOK=1
?
ERROR
Update UPCFG2X
.INTFRQ
(interrupt only)
Configure the polling interval for
interrupt pipe
Pipe activated
and freezed
Once the Pipe is activated (UPCRX.PEN set), the hardware is ready to send requests to the
Device.
When configured (UPSTAX.CFGOK=1), only the Pipe Token (UPCFG0X.PTOKEN) and the
polling interval for Interrupt pipe can be modified.
There are 4 pipes to configure. A Control type pipe supports only 1 bank (or data bank). Any
other value will lead to a configuration error (UPSTAX.CFGOK=0).
!
Caution
To guarantee a correct operation of the USB Host Controller:
• The pipe 0 size must not be greater than 32 bytes.
• The pipe 1 size must not be greater than 64 bytes.
• The pipe 2 size must not be greater than 64 bytes.
• The pipe 3 size must not be greater than 8 bytes.
TPR0327AY–SMS–30Jan09
211