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

no-image

MPC2F35E2

Manufacturer Part Number
MPC2F35E2
Description
Low-speed USB micro-controller
Manufacturer
MEGAWIN [Megawin Technology Co., Ltd]
Datasheet
When port 3 is used as the input mode, it provides the pin interrupt function while a falling edge occurs
at any pin of the port 3 and will set the P3 bit of the IRQ_ST SFR. The same event can release the stop
mode to enable the oscillator, and this interrupt also can release the halt mode if the P3 bit in the
RLH_EN SFR is set. Finally, an interrupt subroutine will be executed if setting the P3 bit in the IRQ_E
SFR.
Port 4
MPC2F35 only provide two pins (P4.0 and P4.1) on the port 4, and these pins also are I/O pins. The
structure is the same with Port
14
Address
00DCH
00D1H
0250H
0251H
P3_CR: Configure P3.0 ~ P3.7 to be input or output individually. 0: input, 1: output
P3_MR: Configure the output mode of P3.0 ~ P3.7 with a 17k ohm pull-high resistor, CMOS
P4_BUF: Port 4 output buffer. When P4.n is configured as an output pin, it outputs the content
P4: Values on Port 4 pins while reading from Port 4.
P4_CR: Configure P4.0 and P4.1 to be input or output individually. 0: input, 1: output
P4_MR: Configure the output mode of P4.0 and P4.1 with a 17k ohm pull-high resistor,
DATA
BUS
or NMOS open drain
CMOS or NMOS open drain
of P4_BUF.n.
P4_BUF
P4_MR
P4_CR
Name
P0_CR.x
P0_MR.1
P4
LDA P0_BUF
Enable
Instruction
P0_MR.1
Output
Buffer
BP47
Bit 7
P0_CR.x
-
-
-
0,
Input/Output Pin --- P0~P4
and please refers to Port 0 for more information.
MPC2F35_USB Data Sheet
BP46
Bit 6
P0_MR.0
-
-
-
Enable
BP45
Bit 5
-
-
-
BP44
Bit 4
Instruction
LDA P0
-
-
-
BP43
Bit 3
Vdd
-
-
-
BP42
Enable
Bit 2
-
-
-
MP41
CP41
BP41
Bit 1
P41
MEGAWIN
MP40
BP40
CP40
Bit 0
P40
I/O PIN
P0.n
R
W
-

Related parts for MPC2F35E2