![TENX TECHNOLOGY TM57PE10 Скачать руководство пользователя страница 27](http://html.mh-extra.com/html/tenx-technology/tm57pe10/tm57pe10_user-manual_1087886027.webp)
Advance Information
UM-TM57PE10_E
8-Bit Microcontroller
27
tenx technology inc.
Preliminary
Rev 1.4, 2012/01/19
4. I/O Port
4.1 PA0-2
These pins can be used as Schmitt-trigger input, CMOS push-pull output or “pseudo-open-drain” output.
The pull-up resistor is assignable to each pin by S/W setting. To use the pin in Schmitt-trigger input
mode, S/W needs to set the PAE=0 and PAD=1. To use the pin in pseudo-open-drain mode, S/W sets
the PAE=0.The benefit of pseudo-open-drain structure is that the output rise time can be much faster
than pure open-drain structure. S/W sets PAE=1 to use the pin in CMOS push-pull output mode.
Reading the pin data (PAD) has different meaning. In “Read-Modify-Write” instruction, CPU actually
reads the output data register. In the other instructions, CPU reads the pin state. The so-called “Read-
Modify-Write” instruction includes BSF, BCF and all instructions using F-Plane as destination.
D
Q
D
Q
D
Q
WR_PAD
WR_PAE
DATA
Write
Pin
PAE
SN
RN
SYS_RESETn
RN
WR_nPAPU
nPAPU
1
0
RD_PAD
Read_Modify_Write
R
pull-up
PAD
Port
Pre-Driver
MP
MR
MN
Delay
1 CLK
DATA
Read
MN
Drive
PAE
PAD
MP
Drive
1 CLK
PA0-2, nPAPU=0
MN
Drive
MN
Drive
MR
Drive
MP
Drive