| Electronic Components Datasheet Search |
|
SN8P2743KB Datasheet(PDF) 69 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8P2743KB Datasheet(HTML) 69 Page - SONiX Technology Company |
|
69 / 136 page ![]() SN8P2740 Series ADC, OP-amp, Comparator 8-Bit Micro-Controller SONiX TECHNOLOGY CO., LTD Page 69 Version 2.0 7.2 I/O PORT MODE The port direction is programmed by PnM register. When the bit of PnM register is “0”, the pin is input mode. When the bit of PnM register is “1”, the pin is output mode. 0B8H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 P0M - P06M P05M - P03M P02M - P00M Read/Write - R/W R/W - R/W R/W - R/W After reset - 0 0 - 0 0 - 0 0C1H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 P1M - P16M P15M P14M P13M P12M P11M P10M Read/Write - R/W R/W R/W R/W R/W R/W R/W After reset - 0 0 0 0 0 0 0 0C4H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 P4M P47M P46M P45M P44M P43M P42M P41M P40M 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 Bit[7:0] PnM[7:0]: Pn mode control bits. (n = 0~4). 0 = Pn is input mode. 1 = Pn is output mode. Note: 1. Users can program them by bit control instructions (B0BSET, B0BCLR). 2. P0.4 input pin only, and the P0M.4 is undefined Example: I/O mode selecting CLR P0M ; Set all ports to be input mode. CLR P4M MOV A, #0FFH ; Set all ports to be output mode. B0MOV P0M, A B0MOV P4M,A B0BCLR P4M.0 ; Set P4.0 to be input mode. B0BSET P4M.0 ; Set P4.0 to be output mode. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |