| Electronic Components Datasheet Search |
|
SN8P1602A Datasheet(PDF) 61 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8P1602A Datasheet(HTML) 61 Page - SONiX Technology Company |
|
61 / 76 page ![]() SN8P1602B 8-Bit Micro-Controller SONiX TECHNOLOGY CO., LTD Page 61 Version 1.1 I/O PORT FUNCTION TABLE SN8P1602B Port/Pin I/O Function Description Remark General-purpose input function External interrupt (INT0) See <P00G1,P00G0> P0.0 I Wakeup from power down mode See <P00G1,P00G0> General-purpose input/output function P1.0~P1.4 I/O Wakeup from power down mode Level Change P2.0~P2.7 I/O General-purpose input/output function Note: The P1.4 enables when the external oscillator is RC type. 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. SN8P1602B 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 SN8P1602B 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 When PnM=0, the Pn is input mode PnM=1, the Pn is output mode 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. |
|
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 |