PEDL60841-01
OKI Semiconductor
ML60841
Types and Mapping of Common Registers
Offset
000h
004h
008h
00Ch
010h
014h
018h
01Ch
Symbol
HostDevSel
ConSel
PolModeSel
DmaMode0
DmaMode1
HdVbusIntStt
HdVbusIntMask
SrstPDownCtl
Name
Host/Device select register
Common connector use/no use select register
Pin polarity and USB transceiver mode select register
DMA0 mode setting register
DAM1 mode setting register
Interrupt status register for a status change in the D/H pin and VBUS
Interrupt mask register for a status change in the D/H pin and VBUS
Software reset/Power down control register
•
HostDevSel Register (000h)
Bits
31:02
Field
Reset
X
R/W
X
Don’t care
Indicates that the ML60841 is under internal processing when changing
the D/H pin setting or bit 00 set value.
01
0b
R
0: Not under internal processing, 1: Under internal processing
Specifies Host or Device function.
00
Note
R/W
0: Host,
1: Device
Note) Depends on the status of the D/H pin.
[Description]
By writing in bit 00, host/device selection is possible irrespective of the D/H pin status. For example even if
D/H pin is at device setting, it is possible to operate as host by writing “0000h” in this register. However,
after writing in this register, change of D/H pin setting is ignored. (An interrupt is generated due to a change
in the state of the D/H pin the status changes.)
When change occurs in value set in bit 00, the ML60841 resets both the host block and the device block
internal to the LSI. During reset, bit 01 gets set at “1” and then becomes “0” when reset is completed and
operation becomes possible. Therefore, after change in setting, it is necessary for the microcontroller to
execute initialization. Start initialization after bit 01 has become “0”. See “Precautions in control of
ML60841” for details related to the timing of starting the initialization processing.
•
ConSel Register (004h)
Bits
31:01
Field
Reset
X
R/W
X
Don’t care
Specifies common connector use/no use.
00
0b
R/W
0: Common connector not used
1: Common connector used
[Description]
When common connector is used, the operation becomes as follows.
• In Host mode: the HD+ and HD– pins are designated for host.
• In Device mode: the HD+ and HD– pins are designated for device.
12/74