| データシートサーチシステム |
|
PIC16F15213 データシート(PDF) 35 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213 データシート(HTML) 35 Page - Microchip Technology |
|
35 / 439 page ![]() RETLW DATA1 ;Index1 data RETLW DATA2 RETLW DATA3 my_function ;LOTS OF CODE.... MOVLW DATA_INDEX call constants ;THE CONSTANT IS IN W The BRW instruction eases the implementation of this type of table. 9.1.1.2 Indirect Read with FSR The program memory can be accessed as data by setting bit 7 of an FSRxH register and reading the matching INDFx register. The MOVIW instruction will place the lower eight bits of the addressed word in the W register. Writes to the program memory cannot be performed via the INDFx registers. Instructions that read the program memory via the FSR require one extra instruction cycle to complete. The following example demonstrates reading the program memory via an FSR. The high directive will set bit 7 if a label points to a location in the program memory. This applies to the assembly code shown below. Example 9-2. Read of Program Memory Using FSR Register constants RETLW DATA0 ;Index0 data RETLW DATA1 ;Index1 data RETLW DATA2 RETLW DATA3 my_function ;LOTS OF CODE.... MOVLW LOW constants MOVWF FSR1L MOVLW HIGH constants MOVWF FSR1H MOVIW 2[FSR1] ;DATA2 IS IN W 9.1.2 Memory Access Partition (MAP) User Flash is partitioned into: • Application Block • Boot Block • Storage Area Flash (SAF) Block The user can allocate the memory usage by setting the BBEN bit, selecting the size of the partition defined by BBSIZE bits and enabling the Storage Area Flash by the SAFEN bit. 9.1.2.1 Application Block Default settings of the Configuration bits (BBEN = 1 and SAFEN = 1) assign all memory in the user Flash area to the application block. 9.1.2.2 Boot Block If BBEN = 1, the Boot Block is enabled and a specific address range is allotted as the Boot Block, based on the value of the BBSIZE bits. 9.1.2.3 Storage Area Flash Storage Area Flash (SAF) is enabled by clearing the SAFEN bit. If enabled, the SAF block is placed at the end of memory and spans 128 words. If the Storage Area Flash (SAF) is enabled, the SAF area is not available for program execution. PIC16F15213/14/23/24/43/44 Memory Organization © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 35 |
|
リンク URL |
| 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 |