Renesas M16C Series User Manual page 188

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

Advertisement

M30245 Group
www.DataSheet4U.com
Figure 2.8.37. Processing routine (2) for getting device address when receiving SET_ADDRESS request
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
(continued from previous page)
Getting of new address (address state)
Setting of USB endpoint 0 control and status register
(b15)
(b8)
b7
b0
b7
0
1
1
1
0
Waiting for completion of status phase (DATA_END flag: 1 → 0)
Setting of address to USB address register (Note 1)
(b15)
(b8)
b7
b0
b7
0
0
0
0
0
0
0
0
0
Note 1: Only the lower 1-byte of the receive device address should be set.
Completion of SET_ADDRESS request
page 179 of 354
USB endpoint 0 control and status register
b0
EP0CS [Address 0298
CLR_OUT_BUF_RDY bit
1 : Clear OUT_BUF_RDY flag
CLR_SETUP flag
1 : Clear SETUP flag
SET_DATA_END bit
1 : Set DATA_END flag to "1"
b0
USB address register
USBA [Address 0280
Set the third byte (the lower of wValue) of reception data
2. USB function
]
16
]
16

Advertisement

Table of Contents
loading

Table of Contents