20 December 2010

Mysterious Opcodes in PIC16 Instruction Set

Did you ever have a look at the PIC16 family instruction set ?

Microchip datasheets announce 35 instructions, for sure they are here, but can't we get a little bit much from these PICs ?

It's time to become closer to PIC16 reduced instruction set, to see if we can extend it.

First, get familiar with instruction format : PIC16 family has a 14 bits wide instruction set, with MSBs as opcode and LSBs as sub-opcode or operand.

Here is the link to the "Microchip PICmicro Mid-Range MCU Family Reference Manual" (datasheet DS33023A) :

http://ww1.microchip.com/downloads/en/devicedoc/33023a.pdf

this figure is coming from this manual :

PIC16 Family instruction set format

Microchip Datasheet DS33023A P.526

 Here is the instruction set list sorted by type, you can count once more : 35 official mnemonics.

PIC Official Instruction Set

 Microchip Datasheet DS33023A P.525

Now, we can try to re-arrange the table, and sort it by opcode number.
I wrote the documented opcodes in green, and the undocumented opcodes in red :

PIC Unused Opcodes

1 comments:

Naviya Nair said...

I have read your blog its very attractive and impressive. I like it your blog.

Java Online Training Java EE Online Training Java EE Online Training Java 8 online training Core Java 8 online training

Java Online Training from India Java Online Training from India Core Java Training Online Core Java Training Online Java Training InstitutesJava Training Institutes

Post a Comment

Related Posts with Thumbnails

Popular Posts

 
;