English
Language : 

MA014B Datasheet, PDF (11/14 Pages) Megawin Technology Co., Ltd – Single chip 8-bit CPU
Port 2 pad
Address
00FDH
Name
P2pad
Bit 7
-
Bit 6
-
Bit 5
-
Bit 4
-
Bit 3
-
Bit 2
-
Bit 1
P21
Bit 0 R W
P20  -
When P2 is used as an input, the corresponding bit of P2obuf must be 1. In this condition, the
corresponding pin is pulled to high by the internal pull-high resistor and it can be pulled to low by an
external source. Reading P2pad.n would always read the logic value from pad.
※ Bit-manipulation instructions are not available on this register.
IRO Buffer
Address
Name
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 R W
00FAH
IRO
IR
-
-
-
-
-
-
-
-
Note: The IRO pin output status is the inverted value of IRO.7. So, write “1” to bit7 of the IRO buffer
the IRO will output low voltage and write “0” to bit7 of the IR buffer the IRO will output high voltage.
Programming Notice
The status after different reset condition is listed below:
Power on reset
CPU /RES pin reset
SRAM Data
Unknown
Unchanged
CPU Register
Unknown
Unknown
Special Function Register
Default value
Default value
Mask Option
WDT
Enable / Disable
MEGAWIN
MA014B Series Technical Summary
11