Renesas M16C Series User Manual page 152

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

Advertisement

M30245 Group
(2) Enable of USB Function Control Unit
The initialization procedure of the USB function control unit of the M30245 group after hardware reset
is explained below. Further, for power supply being supplied from the USB, the total driving current
has to be controlled to keep equal to or below 100mA.
Setting of the frequency synthesizer
1: Clear protect.
2: Set the frequency synthesizer related registers to generate 48MHz required for the fUSB.
3: Enable the frequency synthesizer by setting bit 0 in the frequency synthesizer control register to
www.DataSheet4U.com
4: Disable protect.
5: Wait for 3ms to stabilize the frequency synthesizer.
6: Check frequency synthesizer lock status bit. If the frequency synthesizer is in unlock state, waiting
Setting of the USB function control unit
7: Set the USBC5 to "1" to enable the USB clock.
8: Set the USB attach/detach register to "03
Initialize the endpoint to be used after the USB function control unit being enabled.
The setting example of frequency synthesizer division is shown in Figure 2.8.15. The setup timing of
frequency synthesizer after hardware reset is shown in Figure 2.8.16. The initialization procedure of
frequency synthesizer and USB function control unit are shown in Figure 2.8.17 and Figure 2.8.18.
The initialization procedure of endpoint is shown in Figure 2.8.19 and Figure 2.8.20.
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
"1".
for 0.1ms and rechecking are repeated.
the D+ line), and set the USBC7 to "1" to enable the USB block. For operation of the USB related
registers, a minimum 187.5ns of wait (three cycles of BCLK) is required.
page 143 of 354
" (Port P9
is set as the power supply pin for pull-up to
16
0
2. USB function

Advertisement

Table of Contents
loading

Table of Contents