English
Language : 

MA014B Datasheet, PDF (10/14 Pages) Megawin Technology Co., Ltd – Single chip 8-bit CPU
I/O Ports
Port 0 Pad
Address
00F1H
Name
P0pad
Bit 7
P07
Bit 6
P06
Bit 5
P05
Bit 4
P04
Bit 3
P03
Bit 2
P02
Bit 1
P01
Bit 0 R W
P00  -
Port 0 is an 8-bit input port with pull high resistors. Reading P0pad.n would always read the logic
value from pad.
Port 1 Buffer
Address
Name
00F5H
P1obuf
Bit 7
P17
Bit 6
P16
Bit 5
P15
Bit 4
P14
Bit 3
P13
Bit 2
P12
Bit 1
P11
Bit 0 R W
P10 - 
Port 1 is an 8-bit output port with selectable pull-high resistors. This register is used to buffer the out
value of P1.0 ~ P1.7 and it is write-only. The pull-high resistors will be temporarily disable if the
output value is low.
※ Bit-manipulation instructions are not available on this register.
Port 1 Open-Drain Control Register
Address
Name
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 R W
00F6H
P1opd
OD7 OD6 OD5 OD4
-
-
-
-
-
0: Disable open-drain output (CMOS output), 1: Enable open-drain output
OD4 ~ OD7: These control bits are used to enable the open-drain of P1.4 ~ P1.7 pin.
※ Bit-manipulation instructions are not available on this register.
Port 1 Pull-high Control Register
Address
Name
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 R W
00F7H
P1plh
PH7 PH6 PH5 PH4 PH3 PH2 PH1 PH0 - 
0: Disable internal pull-high, 1: Enable internal pull-high
PH0 ~ PH7: These control bits are used to enable the pull-high of P1.0 ~ P1.7 pin.
※ Bit-manipulation instructions are not available on this register.
Port 2 Buffer
Address
Name
00FCH
P2obuf
Bit 7
-
Bit 6
-
Bit 5
-
Bit 4
-
Bit 3
-
Bit 2
-
Bit 1
P21
Bit 0 R W
P20 - 
Port 2 is a 2-bit quasi-bi-directional open drain output port with internal pull-high resistors. This
register is used to buffer the out value of P2.0 ~ P2.1 and it is write-only. Reading from the P2obuf
would always read “0” from buffer. The pull-high resistors will be temporarily disable if the
output value is low.
※ Bit-manipulation instructions are not available on this register.
MEGAWIN
MA014B Series Technical Summary
10