| Electronic Components Datasheet Search |
|
SN8A1702AX Datasheet(PDF) 35 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8A1702AX Datasheet(HTML) 35 Page - SONiX Technology Company |
|
35 / 145 page ![]() SN8P1700 8-bit micro-controller build-in 12-bit ADC SONiX TECHNOLOGY CO., LTD Page 35 Revision 1.94 RAM BANK SELECTION The RBANK is a 1-bit register located at 87H in RAM bank 0. The user can access RAM data by using this register pointing to working RAM bank for ACC to read/write RAM data. RBANK initial value = xxxx xxx0 087H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 RBANK 0 0 0 0 0 0 0 RBNKS0 - - - - - - - R/W RBNKSn: RAM bank selecting control bit. 0 = bank 0, 1 = bank 1. Example: RAM bank selecting. ; BANK 0 CLR RBANK ; b0bclr FRBNKS0 . ; BANK 1 MOV A, #1 ; b0bset FRBNKS0 B0MOV RBANK, A . Note: “B0MOV” instruction can access the RAM of bank 0 in other bank situation directly. Example: Access RAM bank 0 in RAM bank 1. ; BANK 1 B0BSET RBNKS0 ; Get into RAM bank 1 B0MOV A, BUF0 ; Read BUF0 data. BUF0 is in RAM bank0. MOV BUF1, A ; Write BUF0 data to BUF1. BUF1 is in RAM bank1. . . . MOV A, BUF1 ; Read BUF1(bank1) data and store in ACC. B0MOV BUF0, A ; Write ACC data to BUF0(bank0). Under bank 1 situation, using “B0MOV” instruction is an easy way to access RAM bank 0 data. User can make a habit to read/write system register (0087H~00FFH). Then user can access system registers without switching RAM bank. Example: To Access the system registers in bank 1 situation. ; BANK 1 B0BSET RBNKS0 ; Switch the Ram Bank into bank 1 . . MOV A, #0FFH ; Set all pins of P1 to be logic high. B0MOV P1, A ; Operate the bank 0 special register by the b0mov instruction . ; while the RAM system in the bank1. B0MOV A, P0 ; Read P0 data in the Bank 0 and store into BUF1 in the bank 1. MOV BUF1, A ; |
|
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 |