ST10F269-T3 Datasheet

  • ST10F269-T3

  • 16-BIT MCU WITH MAC UNIT, 256K BYTE FLASH MEMORY AND 12K BYT...

  • 1513.42KB

  • 160页

  • STMICROELECTRONICS   STMICROELECTRONICS

扫码查看芯片数据手册

上传产品规格书

PDF预览

ST10F269-T3
12.5 - Port 2
If this 16-bit port is used for general purpose I/O, the direction of each line can be configured via the
corresponding direction register DP2. Each port line can be switched into push/pull or open drain mode
via the open drain control register ODP2.
P2 (FFC0h / E0h)
15
14
13
12
11
10
9
8
P2.8
RW
SFR
7
P2.7
RW
6
P2.6
RW
5
P2.5
RW
4
P2.4
RW
3
P2.3
RW
Reset Value: 0000h
2
P2.2
RW
1
P2.1
RW
0
P2.0
RW
P2.15 P2.14 P2.13 P2.12 P2.11 P2.10 P2.9
RW
RW
RW
RW
RW
RW
RW
P2.y
Port Data Register P2 Bit y
SFR
12
DP2
.12
RW
11
DP2
.11
RW
10
DP2
.10
RW
9
DP2
.9
RW
8
DP2
.8
RW
7
DP2
.7
RW
6
DP2
.6
RW
5
DP2
.5
RW
4
DP2
.4
RW
3
DP2
.3
RW
DP2 (FFC2h / E1h)
15
DP2
.15
RW
14
DP2
.14
RW
13
DP2
.13
RW
Reset Value: 0000h
2
DP2
.2
RW
1
DP2
.1
RW
0
DP2
.0
RW
DP2.y
Port Direction Register DP2 Bit y
DP2.y = 0: Port line P2.y is an input (high-impedance)
DP2.y = 1: Port line P2.y is an output
ESFR
12
11
10
9
8
7
6
5
4
3
ODP2 (F1C2h / E1h)
15
14
13
Reset Value: 0000h
2
1
0
ODP2 ODP2 ODP2 ODP2 ODP2 ODP2 ODP2 ODP2 ODP2 ODP2 ODP2 ODP2 ODP2 ODP2 ODP2 ODP2
.15
RW
.14
RW
.13
RW
.12
RW
.11
RW
.10
RW
.9
RW
.8
RW
.7
RW
.6
RW
.5
RW
.4
RW
.3
RW
.2
RW
.1
RW
.0
RW
ODP2.y
Port 2 Open Drain Control Register Bit y
ODP2.y = 0: Port line P2.y output driver in push/pull mode
ODP2.y = 1: Port line P2.y output driver in open drain mode
When a Port 2 line is used as a compare output
(compare modes 1 and 3), the compare event (or
the timer overflow in compare mode 3) directly
effects the port output latch. In compare mode 1,
when a valid compare match occurs, the state of
the port output latch is read by the CAPCOM
control hardware via the line 鈥淎lternate Latch Data
Input鈥? inverted, and written back to the latch via
the line 鈥淎lternate Data Output鈥?
The port output latch is clocked by the signal
鈥淐ompare Trigger鈥?which is generated by the
CAPCOM unit. In compare mode 3, when a match
occurs, the value '1' is written to the port output
latch via the line 鈥淎lternate Data Output鈥? When
an overflow of the corresponding timer occurs, a
'0' is written to the port output latch. In both cases,
the output latch is clocked by the signal 鈥淐ompare
Trigger鈥?
12.5.1 - Alternate Functions of Port 2
All Port 2 lines (P2.15...P2.0) serve as capture
inputs or compare outputs (CC15IO...CC0IO) for
the CAPCOM1 unit.
When a Port 2 line is used as a capture input, the
state of the input latch, which represents the state
of the port pin, is directed to the CAPCOM unit via
the line 鈥淎lternate Pin Data Input鈥? If an external
capture trigger signal is used, the direction of the
respective pin must be set to input.
If the direction is set to output, the state of the port
output latch will be read since the pin represents
the state of the output latch.
This can be used to trigger a capture event
through software by setting or clearing the port
latch. Note that in the output configuration, no
external device may drive the pin, otherwise
conflicts would occur.
66/160

ST10F269-T3相关型号PDF文件下载

您可能感兴趣的PDF文件资料

热门IC型号推荐

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈
返回顶部

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!