| 전자부품 데이터시트 검색엔진 |
|
SN8P1602AX 데이터시트(PDF) 73 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8P1602AX 데이터시트(HTML) 73 Page - SONiX Technology Company |
|
73 / 94 page ![]() SN8P1600 8-bit micro-controller SONiX TECHNOLOGY CO., LTD Page 73 Revision 1.94 I/O PORT MODE The port direction is programmed by PnM register. Port 0 is always input mode. Port 1 and Port 2 can select input or output direction. The each bit of PnM is set to “0”, the I/O pin is input mode. The each bit of PnM is set to “1”, the I/O pin is output mode. SN8P1602/1603 0C1H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 P1M 0 0 0 P14M P13M P12M P11M P10M Read/Write - - - R/W R/W R/W R/W R/W After reset - - - 0 0 0 0 0 SN8P1604 0C1H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 P1M P17M P16M P15M P14M P13M P12M P11M P10M Read/Write R/W R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 0 SN8P1602/1603/1604 0C2H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 P2M P27M P26M P25M P24M P23M P22M P21M P20M Read/Write R/W R/W R/W R/W R/W R/W R/W R/W After reset 0 0 0 0 0 0 0 0 SN8P1604 0C5H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 P5M 0 0 0 0 P53M P52M P51M P50M Read/Write - - - - R/W R/W R/W R/W After reset - - - - 0 0 0 0 The PnM registers are read/write bi-direction registers. Users can program them by bit control instructions (B0BSET, B0BCLR). Example: I/O mode selecting. CLR P1M ; Set all ports to be input mode. CLR P2M MOV A, #0FFH ; Set all ports to be output mode. B0MOV P1M, A B0MOV P2M, A B0BCLR P1M.2 ; Set P1.2 to be input mode. B0BSET P1M.2 ; Set P1.2 to be output mode. |
|
링크 URL |
| 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 |