| 数据搜索系统,热门电子元器件搜索 |
|
TMP86FS28DFG 数据表(PDF) 67 Page - Toshiba Semiconductor |
|
|
|||||||||||||||||||||||||||||
TMP86FS28DFG 数据表(HTML) 67 Page - Toshiba Semiconductor |
|
67 / 272 page ![]() Page 55 TMP86FS28DFG 5.2 Port P1 (P10 to P17) Port P1 is an 8-bit input/output port that can be configured as an input or an output on a bit basis. Port P1 is also used for analog input or key-on wake-up input. The Port P1 input/output control register (P1CR1) and Port P1 input control register (P1CR2) are used to specify the function of each pin. A reset initializes P1CR1 to “0”, P1CR2 to “1”, and the output latch (P1DR) to “0” so that Port P1 becomes an input port. To use a pin in Port P1 as an input port, set P1CR1 to “0” and then set P1CR2 to “1”. To use a pin in Port P1 as an analog input or key-on wake-up input, set P1CR1 to “0” and then set P1CR2 to “0”. To use a pin in Port P1 as an output port, set the corresponding bit in P1CR1 to “1”. To read the output latch data, set P1CR1 to “1”and read P1DR. To read the pin state, set P1CR1 to “0” and P1CR2 to “1” and then read P1DR. When P1CR1 = “0” and P1CR2 = “0”, P1DR is read as “0”. Bits not used as analog inputs are used as input/output pins. During AD conversion, however, output instructions must not be executed to ensure the accuracy of conversion results. Also, during AD conversion, do not input signals that fluctuate widely to pins near analog input pins. Note: An asterisk (*) indicates that either “1” or “0” can be set. Table 5-4 Register Programming for Port P1 (P10 to P17) Function Programmed Value P1DR P1CR1 P1CR2 Port input * “0” “1” Analog input, key-on wake-up input * “0” “0” Port “0” output “0” “1” * Port "1" output “1” “1” * Table 5-5 Values Read from P1DR according to Register Programming Conditions Values Read from P1DR P1CR1 P1CR2 “0” “0” “0” “0” “1” Pin state “1” “0” Output latch state “1” |
|
链接网址 |
| 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 |