I couldn't resist buying some chips of a new PIC type, the PIC16F1619. This is an "enhanced midrange" unit with a lot of new hardware features and greatly increased speed compared with my existing favorite processor, the PIC16F690, and the pinout is compatible, so I can just replace the processor in existing projects.
All the old assembly instructions seem to be unchanged, so I can continue using the same compiler. However, there are several new instructions which the compiler obviously won't know anything about. My first thought was "I'll just put those into blocks of assembler whenever I think it's worth using them" but then it occurred to me that the assembler won't recognize them either! Now the best I can come up with is some crock involving a #define operation that replaces particular assembly instructions with inline data words, though I'm totally unsure whether that will work.
Here's the data sheet. The chips aren't fully available through vendors yet, but I paid about $1.50 each from Microchip Direct.
http://ww1.microchip.com/downloads/en/DeviceDoc/40001770A.pdf
Example:
The MOVIW instruction moves data from an indirect memory location to W, using either of 2 different memory pointers, with pre- or post- increment or decrement, or with an offset in the range -32 to +31. Sounds like fun!
Any brilliant ideas for making the new features work? I suppose the obvious thing is to get Microchip's own software, but it would be a pain to switch compilers.
All the old assembly instructions seem to be unchanged, so I can continue using the same compiler. However, there are several new instructions which the compiler obviously won't know anything about. My first thought was "I'll just put those into blocks of assembler whenever I think it's worth using them" but then it occurred to me that the assembler won't recognize them either! Now the best I can come up with is some crock involving a #define operation that replaces particular assembly instructions with inline data words, though I'm totally unsure whether that will work.
Here's the data sheet. The chips aren't fully available through vendors yet, but I paid about $1.50 each from Microchip Direct.
http://ww1.microchip.com/downloads/en/DeviceDoc/40001770A.pdf
Example:
The MOVIW instruction moves data from an indirect memory location to W, using either of 2 different memory pointers, with pre- or post- increment or decrement, or with an offset in the range -32 to +31. Sounds like fun!
Any brilliant ideas for making the new features work? I suppose the obvious thing is to get Microchip's own software, but it would be a pain to switch compilers.
Last edited: