MPC2F35E2 MEGAWIN [Megawin Technology Co., Ltd], MPC2F35E2 Datasheet - Page 16

no-image

MPC2F35E2

Manufacturer Part Number
MPC2F35E2
Description
Low-speed USB micro-controller
Manufacturer
MEGAWIN [Megawin Technology Co., Ltd]
Datasheet
Whenever USB engine finished a transaction, it will generate an interrupt to acknowledge MPC2F35.
The user can get information about the transaction through the above sequence. When USB engine
received a reset instruction from the host, it will reset by itself and generate an interrupt. When USB
engine received a wake-up instruction from the host while the device is being in the stop mode, it will
generate a signal to enable the oscillator. If the host and the device are both in the stop mode, a falling
edge on Port 3 can wake-up the device, and then remote wake up the host through USB engine.
DPM control
MPC2F35’s USB bus lines (D+ and D -) have two operating modes: USB low speed and PS/2 interface
mode. User can program the C0 and C1 bit in the CDPM_CTL SFR to determine the operating mode of
USB bus. The DPI and DMI bit in the DPMI SFR will record the content on the D+ and D- pin
respectively.
The firmware can judge the USB bus line (D+ and D-) connection will be USB or PS/2 protocol by
reading the value of the DPI and DMI bit in the DPMI SFR. For PS/2 interface application, the C1 and
C0 in the DPM_CTL SFR have to set “10” first, thus the USB function will be unavailable. The user
programs the value of USB bus (D+/D-) into the DPO and DMO bit in the DPMO SFR when MPC2F35
controls the D+/D- pin for the PS/2 operation. When DPO/DMO is programming as writing 0, it will make
the D+/D- pin to output low. On the other hand, writing 1 will cause these pins to be pulled high. This I/O
control operation would be easy to perform the PS/2 interface.
16
Address
00EAH
00E8H
00E9H
C1, C0: USB bus (D+ and D-) mode control selector.
DPMO: PS/2 data output on USB data bus line (D+/D-), 0: output low, 1: pull-high
DPMI: Value on the USB data bus line (Read only) while working at the PS/2 operation
4.
DPM_CTL
1. 0x: USB bus is at the USB operation (Default)
2. 10: USB bus is at the PS/2 interface operation
DPMO
Write 0 into the URD bit
Name
DPMI
Bit 7
-
-
-
MPC2F35_USB Data Sheet
Bit 6
-
-
-
Bit 5
-
-
-
Bit 4
-
-
-
Bit 3
-
-
-
Bit 2
-
-
-
DPO
Bit 1
DPI
C1
MEGAWIN
DMO
Bit 0
DMI
C0
R
W
-

Related parts for MPC2F35E2