| 数据搜索系统,热门电子元器件搜索 |
|
ST9 数据表(PDF) 30 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST9 数据表(HTML) 30 Page - STMicroelectronics |
|
30 / 146 page ![]() 30/146 ST9 USER GUIDE Example: Assuming that data has been mapped in a page aligned on address 0xC000, this means that DPR3 will be used, therefore the following code is correct: ld DPR3,#PAG data ldw rr2,data ld r4,(rr2) In assembly language, it is possible to access data through another DPR: Example: Still using data at an address aligned with 0xC000, following code is correct: ld DPR2,#PAG data ; if data address=0x01C765, DPR2=7 ldw rr2, #(POF data)+0x8000; rr2=0x8765 ; #(POF data) to reset bit 15 and 14 ; and 0x8000 to use DPR2 ld r4,(rr2) ; indirect addressing mode ... ld r4, (POF data)+0x8000 ; direct addressing mode It is important to look at the explicit usage of the immediate addressing mode (#) to get the page number and the offset; it is consistent with the ST9 assembly syntax shown in the fol- lowing example: ldw rr2,#Var ld r4,(rr2) ... ld r4, Var The same functions exist in C language: PAG(data); POF(data); |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |