Re: PIC16與PIC18 PC+?

作者 jason680 於 2019年06月06日 14:27:50
個人感覺與看法...

這個應該不是 +1, +2問題...

而是去了解instruction set寬度(幾bits?)才是重點...

PIC12, PIC16, PIC18, PIC24, PIC30, dsPIC33

除了PIC12及PIC16以外,其他的都是
The PC addresses bytes in the program memory. To
prevent the PC from becoming misaligned with word
instructions, the Least Significant bit of PCL is fixed to
a value of ‘0’.
The PC increments by 2 to address
sequential instructions in the program memory

來自: http://www.microchip.com.tw/newbb/viewtopic.php?forum=1&topic_id=22668&post_id=79700