| Electronic Components Datasheet Search |
|
SN8P1602A Datasheet(PDF) 62 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8P1602A Datasheet(HTML) 62 Page - SONiX Technology Company |
|
62 / 76 page ![]() SN8P1602B 8-Bit Micro-Controller SONiX TECHNOLOGY CO., LTD Page 62 Version 1.1 I/O PULL UP REGISTER SN8P1602B 0BEH Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 PUR - - - - - PUR2 PUR1 PUR0 Read/Write - - - - - W W W After reset - - - - - 0 0 0 Example: I/O Pull up Register CLR PUR ; Disable all ports Pull-up register. MOV A, #07H ; Enable Port0, 1, 2 Pull-up register, B0MOV PUR, A ; I/O PORT DATA REGISTER SN8P1602B 0D0H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 P0 - - - - - - - P00 Read/Write - - - - - - - R After reset - - - - - - - 0 SN8P1602B 0D1H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 P1 - - - P14 P13 P12 P11 P10 Read/Write - - - R/W R/W R/W R/W R/W After reset - - - 0 0 0 0 0 SN8P1602B 0D2H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 P2 P27 P26 P25 P24 P23 P22 P21 P20 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 Example: Read data from input port. B0MOV A, P0 ; Read data from Port 0 B0MOV A, P1 ; Read data from Port 1 B0MOV A, P2 ; Read data from Port 2 Example: Write data to output port. MOV A, #55H ; Write data 55H to Port 1 and Port 2 B0MOV P1, A B0MOV P2, A Example: Write one bit data to output port. B0BSET P1.3 ; Set P1.3 and P2.5 to be “1”. B0BSET P2.5 B0BCLR P1.3 ; Set P1.3 and P2.5 to be “0”. B0BCLR P2.5 Example: Port bit test. B0BTS1 P0.0 ; Bit test 1 for P0.0 B0BTS0 P1.2 ; Bit test 0 for P1.2 |
|
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 |