| 数据搜索系统,热门电子元器件搜索 |
|
MLC331B 数据表(PDF) 21 Page - Megawin Technology Co., Ltd |
|
|
|||||||||||||||||||||||||||||
MLC331B 数据表(HTML) 21 Page - Megawin Technology Co., Ltd |
|
21 / 30 page ![]() MEGAWIN MLC0xxB Series Technical Summary 21 I/O Ports Port 0 Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 R W 00D8H P0 P07 P06 P05 P04 P03 P02 P01 P00 √ √ 0240H P0CR CP07 CP06 CP05 CP04 CP03 CP02 CP01 CP00 √ √ 0241H P0MR - MP06 MP05 MP04 - MP02 MP01 MP00 √ √ Port 0 is an 8-bit I/O port; each pin can be programmed as input or output individually. P0CR: p0.0~p0.7 is input or output. 0: input, 1: output P0MR: p0.0~p0.7, pull-high, CMOS/NMOS and pull-high value setting P0MR.0: P0.0 ~ P0.3 Pull-high control, 0: disable, 1:enable P0MR.1: P0.0 ~ P0.3 CMOS/NMOS selector, 0: CMOS, 1:NMOS P0MR.2: P0.0 ~ P0.3 Pull-high resistor value control, 0: large, 1: small P0MR.4: P0.4 ~ P0.7 Pull-high control, 0: disable, 1: enable P0MR.5: P0.4 ~ P0.7 CMOS/NMOS selector, 0: CMOS, 1:NMOS P0MR.6: P0.4 ~ P0.7 Pull-high resistor value control, 0: large, 1: small (350K or 50K selector) At initial reset, the port P0 is all in input mode. Each pin of port P0 can be specified as input or output mode independently by the P0CR registers. When P0 is used as output port, CMOS or NMOS open drain output type can be selected by the P0MR register. Port P0 has the internal pull-high resistors that can be enabled/disabled by specifying the P0MR.0 and P0MR.4 respectively. The pull-high resistors will be temporarily disable if the port is specified as output mode. The read value will be the contents of output buffer in output mode. When P0 port is used as input mode and the RLH_EN, and IRQ_EN corresponding to the P0 port are set, a signal change at the port P0 (any pin) will execute the halt mode release or interrupt subroutine. Both the raising or falling signal will set the port P0 event. The Schmitt trigger circuit is added in the input port part of all I/O pins. Please set port 0 as output high before set it as input mode, if speeds up the internal pull-high effect is needed. If the I/O ports are not used in your application, please set them as input with pull-high or output mode to avoid unnecessary power consumption. |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |