APPENDIX A

PIC24 Architecture and Instruction Set Summary

This appendix contains a summary of the PIC24 architecture and instruction set. Figures A.3 through A.10 give the instruction set summary, with Figures A.1 through A.2 providing symbols and encodings used in these summaries. The instruction set encodings and definitions are taken from the 16-bit MCU and DSC Programmer’s Reference Manual [5].

Register placeholder symbols used in instruction mnemonics are:

image Wn: Register direct addressing; Wn specifies one of W0, W1, ... W15.

image Wns: Register direct addressing; Wns specifies one of W0, W1, ... W15.

image Wnd: Register direct addressing; Wnd specifies one of W0, W1, ... W15.

image Wb: Register direct addressing; Wb specifies one of W0, W1, ... W15.

image WREG: The working register, specifies W0 in file register instructions.

image Ws: Register direct (Ws) and indirect addressing modes ([Ws], [Ws ++], [Ws --], [++ Ws], [-- Ws]); Ws specifies one of W0, W1, ... W15.

image Wd: Register direct (Wd) and indirect addressing modes ([ Wd ], [ Wd ++], [ Wd --], [++ Wd ], [-- Wd ]); Wd specifies one of W0, W1, ... W15.

image Wso: All of the addressing modes of Ws, with the additional mode of register offset indirect [Wso + Wb]; Wso specifies one of W0, W1, ... W15.

image Wdo: All of the addressing modes of Wd, with the additional mode of register offset indirect [Wdo + Wb]; Wdo specifies one of W0, W1, ... W15.

image Wsi: Indirect addressing modes ([Ws], [Ws ++], [Ws --], [++ Ws ], [-- Ws ]); Ws specifies one of W0, W1, ... W15. Used only by the tblrdl and tblrdh instructions.

image Wdi: Indirect addressing modes ([Wd], [Wd ++], [Wd --], [++ Wd ], [-- Wd ]); Wd specifies one of W0, W1, ... W15. Used only by the tblwtl and tblwth instructions.

Figure A.1
Machine code symbols

image

Figure A.2
Addressing mode encodings

image

Figure A.3
Instruction table (part 1)

image

Figure A.4
Instruction table (part 2)

image

Figure A.5
Instruction table (part 3)

image

Figure A.6
Instruction table (part 4)

image

Figure A.7
Instruction table (part 5)

image
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.151.144