English
Language : 

SH7263 Datasheet, PDF (1397/1862 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7260 Series
Section 25 USB 2.0 Host/Function Module (USB)
25.5.2 Procedure for Setting the USB Transceiver
The internal USB transceiver must be set up before this module can be used. The procedure is
described below. Furthermore, figure 25.20 gives an example of a program that implements the
procedure.
1. Write 1 to the UACS23 bit in the USB AC characteristics switching register.
2. Write 1 to the HOSTPCC bit in the test mode register (TESTMODE).
A special sequence can be used to ensure that these bits are not erroneously overwritten. The
sequence for writing is given below.
1. Write 1 to the UACKEY0 and UACKEY1 bits in the device control register (DVSTCTR).
2. Write 1 to the HOSTPCC bit in the test mode register (TESTMODE).
3. Write 0 to the UACKEY0 and UACKEY1 bits in the device control register (DVSTCTR).
;Initialization routine
;Set USBE = 1
MOVI20 #H'FFFC1C00, R0
MOV.W #H'0001, R1
MOV.W R1, @R0
;(1) Set UACS23 = 1
MOVI20 #H'FFFC1C84, R0
MOV.L #H'00800000, R1
MOV.L R1, @R0
;(2) Set HOSTPCC = 1
;1. UACKEY0, UACKEY1 = 1
MOVI20 #H'FFFC1C04, R0
MOV.W #H'9000, R1
MOV.W R1, @R0
;2. HOSTPCC = 1
MOVI20 #H'FFFC1C06, R0
MOV.W #H'8000, R1
MOV.W R1, @R0
;3. UACKEY0, UACKEY1 = 0
MOVI20 #H'FFFC1C04, R0
MOV.W #H'0000, R1
MOV.W R1, @R0
.
.
.
.
Figure 25.20 Procedure for Setting the USB Transceiver
Rev. 2.00 Mar. 14, 2008 Page 1363 of 1824
REJ09B0290-0200