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

no-image

MPC2F35E2

Manufacturer Part Number
MPC2F35E2
Description
Low-speed USB micro-controller
Manufacturer
MEGAWIN [Megawin Technology Co., Ltd]
Datasheet
USB INTERFACE
MPC2F35 provides the interface of PS/2 and USB combinative operation by programming the below
registers, the user can be easily change the configuration between USB and PS/2 for meeting the
environment of the host.
USB register access control
MPC2F35 is a Low-speed USB 1.1 version compliant with the USB transceiver and a built-in 3.3V
regulator. The 3.3V regulator can be controlled by programming the REGC bit in the USB_CTL SFR.
There are some USB registers in MPC2F35. The user can access these USB registers through the
access the control registers, which is provided by
should be as the following:
A. Write sequence:
B. Read sequence:
MEGAWIN
Address
00E0H
00E1H
00E2H
00E2H
USB_CTL: USB bus control register,
USB_ADDR: One USB register address to be accessed
USB_DI: Data to be written into the USB register addressed by the USB_ADDR SFR
USB_DO: Data to be read out from the USB register addressed by the USB_ADDR SFR
1. Write the address of USB register to be accessed into the USB_ADDR SFR
2. Write 1 into the UWT bit in the USB_CTL SFR
3. Write data into the USB_DI SFR
4. Write 0 into the UWT bit
1. Write the address of USB register to be accessed into the USB_ADDR SFR
2. Write 1 into the URD bit in the USB_CTL SFR
3. Read data from the USB_DO SFR
USB_ADDR
USB_CTL
REGC: 3.3V regulator control. 0: Disable (default), 1: Enable
URD: USB register read control, writing 1 into this bit to read the USB register
UWT: USB register write control, writing 1 into this bit to write the USB register
USB_DO
USB_DI
Name
addressed by the USB_ADDR SFR
addressed by the USB_ADDR SFR
REGC
UDO7
UDI7
Bit 7
-
MPC2F35_USB Data Sheet
UDO6
UDI6
Bit 6
-
-
UDO5
UDI5
Bit 5
UA5
-
UDO4
MPC2F35.
UDI4
Bit 4
UA4
-
UDO3
UDI3
Bit 3
UA3
-
The sequence to access USB register
UDO2
UDI2
Bit 2
UA2
-
UDO1
UWT
UDI1
Bit 1
UA1
UDO0
UDI0
URD
Bit 0
UA0
R
-
15
W
-

Related parts for MPC2F35E2