TTP258
TonTouchTM
Preliminary
I/O port with internal output
The standard input/output port has the I/O control register for switching
input or output mode and output data register stores the output data in output
mode. If control data=1 and output data=1, the I/O port is programmed as
input with pull-up resistor and also actives the wake-up function. User intends
to read the port data with differed read instruction. The read PI is reading data
comes from PAD input data. The data register reading result will have the same
value with output register data. If enable internal output, the internal output
will control by output data (on/off) and outputs to PAD.
I/O control Data
Output data
Pull-up
No
Wake-up
No
0
X
0
1
1
1
No
No
Enable
Enable
X: don’t care the value
I/O control Data
Internal output
PAD
0
enable
disable
X
Output internal data
Output Register data
PAD input data
0
1
X: don’t care the value
Read PI
Mode
Output mode
Input mode
Read Input Data
Output Register data
PAD input data
0
1
Pull-up R
P
S
Data Bus
D
Q
CK QB
I/O ctrl Register Write
PR
S
P
D
Q
CK QB
Data Register Write
Read PI
N
PAD
M
U
X
0
Read
Wake-up
N
N
Internal output signal
MUX
Output enable (PWMEN)
Figure IO-B: Standard I/O Port with internal output signal
16’/04/06
Page 29 of 44
Ver.: 1.2