English
Language : 

M30245_06 Datasheet, PDF (188/367 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/20 SERIES
M30245 Group
2. USB function
(continued from previous page)
Getting of new address (address state)
Setting of USB endpoint 0 control and status register
(b15)
b7
00
(b8)
b0 b7
11
1
b0
USB endpoint 0 control and status register
EP0CS [Address 029816]
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”
Waiting for completion of status phase (DATA_END flag: 1 → 0)
Setting of address to USB address register (Note 1)
(b15)
b7
00
00
00
(b8)
b0 b7
000
b0
USB address register
USBA [Address 028016]
Set the third byte (the lower of wValue) of reception data
Note 1: Only the lower 1-byte of the receive device address should be set.
Completion of SET_ADDRESS request
Figure 2.8.37. Processing routine (2) for getting device address when receiving SET_ADDRESS request
Rev.2.00 Oct 16, 2006 page 179 of 354
REJ09B0340-0200