Renesas M16C Series User Manual page 336

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30240 Group
C onfirm ing R eceived D ata
b7
N o te : T h e re is n o d a ta in F IF O 0 w h e n th is b it is "0 ". T h e R T S c o m m a n d
sh o u ld b e e x e c ute d a n d th e a d d re s s a c q u isitio n rou tin e sh o u ld b e e x ite d.
R ead D ata
b7
S etting U S B F unctio n A dd re ss R eg iste r (N o te)
b7
N ote: O nly the low er 8 bits of the w Value should be set
S etting U S B E nd po int 0 C on tro l a nd S ta tus R eg iste r
b7
1
Figure 3.31: USB Set_Address processing routine (1)
Rev.1.00 Sep 24, 2003 Page 318 of 360
A d d re sss A cq u isitio n P ro ce ssin g R o u tin e
b0
U S B E ndpoin t 0 C ontrol an d S tatus R egister
E P 0 C S
O U T _ P K T _ R D Y B it 1 (N o te )
0 : N o t rea d y
1 : D a ta p a c ke t re c e ive d
b0
U S B E n dpoint x F IF O R eg ister
E P O
R ead 8 bytes of received data
bm R equest T ype= 00
b R eque st= 05
b0
U S B F unction A ddress R egister
U S B A
S et 3rd byte of received data (w V alue)
b0
U S B E ndpoin t 0 C ontrol an d S tatus R egister
1
E P 0 C S
D A T A _E N D B it
1 : R e ad a ll da ta fro m F IF O 0
S E R V IC E D _ O U T _ P K T _ R D Y B it
1 : C le a r O U T _ P K T _ R D Y b it
S tatu s P hase W ait
R T S C om m a nd E xecution
A ddress
0338
=
16
P rocess other setup data
=
16
P rocess other standard requests
A ddress
030 0
16
Universal Serial Bus
A ddress
03 11
16
16
A ddress
03 11
16

Advertisement

Table of Contents
loading

Table of Contents