| Electronic Components Datasheet Search |
|
ST9 Datasheet(PDF) 19 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST9 Datasheet(HTML) 19 Page - STMicroelectronics |
|
19 / 146 page ![]() 19/146 ST9 USER GUIDE inc R19 ; increment the same register again The following table summarizes the use of the srp instruction and its effect in terms of group selection. Table 1. Register Page Number Summary Notes: Though it is possible, it normally makes no sense to set the working register group either to group E (14) or F (15), since the registers in these groups have pre-defined meanings. You can- not use them to store intermediate values of calculations without greatly affecting the behavior of the microcontroller in an unpredictable way. However, bit-level instructions are only available using working register addressing, so when you need to do bit manipulations in these groups, setting the register pointer to either 28 or 30 is an efficient way of programming when accessing these two groups. The srp instruction is the only one you have to use to switch register groups, and is the way working registers are used in most programs. However, the working register scheme includes a subtlety that is seldom used, but that could give you even more flexibility in some cases. This is what is described in the next paragraph. The same register group number can be selected by an odd or even number. In fact, the for- mula is: srp 2*n+1 ; for group n or srp 2*n ; for group n Hexadecimal register number Decimal register number Function Register group decimal (hexadecimal) srp #n instruction to select a group to provide r0-r15 F0-FF 240-255 Paged registers 15 (F) srp #30 E0-EF 224-239 System registers 14 (E) srp #28 D0-DF 208-223 General purpose registers 13 (D) srp #26 C0-CF 192-207 12 (C) srp #24 B0-BF 176-191 11 (B) srp #22 A0-AF 160-175 10 (A) srp #20 90-9F 144-159 9 srp #18 80-8F 128-143 8 srp #16 70-7F 112-127 7 srp #14 60-6F 96-111 6 srp #12 50-5F 80-95 5 srp #10 40-4F 64-79 4 srp #8 30-3F 48-63 3 srp #6 20-2F 32-47 2 srp #4 10-1F 16-31 1 srp #2 00-0F 00-15 0 srp #0 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | 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 |