English
Language : 

SH7203 Datasheet, PDF (1253/1686 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7200 Series
Section 23 USB 2.0 Host/Function Module (USB)
23.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 23.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 23.20 Procedure for Setting the USB Transceiver
Rev. 2.00 Apr. 16, 2008 Page 1223 of 1652
REJ09B0313-0200