| データシートサーチシステム |
|
PIC16F15213 データシート(PDF) 48 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213 データシート(HTML) 48 Page - Microchip Technology |
|
48 / 439 page ![]() Figure 9-14. Loading of PC in Different Situations Filename: 10-000042A.vsd Title: LOADING OF PC IN DIFFERENT SITUATIONS Last Edit: 7/30/2013 First Used: PIC16F1508/9 Note: 7 8 6 14 0 0 4 11 0 6 0 14 7 8 6 0 0 14 15 0 14 0 14 PCL PCL PCL PCL PCL PCH PCH PCH PCH PCH PC PC PC PC PC PCLATH PCLATH PCLATH Instruction with PCL as Destination GOTO, CALL CALLW BRW BRA ALU result OPCODE [10:0] W PC + W PC + OPCODE [8:0] Rev. 10-000042A 7/30/2013 15 9.4.1 Modifying PCL Executing any instruction with the PCL register as the destination simultaneously causes the Program Counter PC[14:8] bits (PCH) to be replaced by the contents of the PCLATH register. This allows the entire contents of the Program Counter to be changed by writing the desired upper seven bits to the PCLATH register. When the lower eight bits are written to the PCL register, all 15 bits of the Program Counter will change to the values contained in the PCLATH register and those being written to the PCL register. 9.4.2 Computed GOTO A computed GOTO is accomplished by adding an offset to the Program Counter (ADDWF PCL). When performing a table read using a computed GOTO method, care has to be exercised if the table location crosses a PCL memory boundary (each 256-byte block). Refer to application note AN556, “Implementing a Table Read” (DS00556). 9.4.3 Computed Function Calls A computed function CALL allows programs to maintain tables of functions and provide another way to execute state machines or Look-up Tables. When performing a table read using a computed function CALL, care has to be exercised if the table location crosses a PCL memory boundary (each 256-byte block). If using the CALL instruction, the PCH[2:0] and PCL registers are loaded with the operand of the CALL instruction. PCH[6:3] is loaded with PCLATH[6:3]. The CALLW instruction enables computed calls by combining PCLATH and W to form the destination address. A computed CALLW is accomplished by loading the W register with the desired address and executing CALLW. The PCL register is loaded with the value of W and PCH is loaded with PCLATH. PIC16F15213/14/23/24/43/44 Memory Organization © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 48 |
|
リンク 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 |