Menu

#66 support 6bits movlb and movffl for newer pic18

None
open
nobody
None
1
2021-06-27
2018-06-26
No

Hello,
newer pic18 (e.g. pic18f25k42, the one I'm working on), has extended the ram space to 16KB, that is, 14 bits addresses. As a consequence, they introduced a new movffl instruction (which uses 3 words), and expanded the bank register by 2 bits, to be able to reach the whole ram/sfr space (and they moved SFRs to the top of the new space, in the 0x3800-0x3fff range, so the new instructions are really required to use these devices).
Attached is a patch (against 1.5.0) which adds support for these devices and instruction. You may want to clean it up (maybe this deserves a new instruction table for example), but I could generate working code with it (talks with serial port, write to flash).

Hope this helps,

1 Attachments

Discussion

  • Manuel Bouyer

    Manuel Bouyer - 2018-07-06
    Post awaiting moderation.
  • Ben Tesch

    Ben Tesch - 2020-11-01

    This is brilliant. Has anyone seen it?

     
  • Anonymous

    Anonymous - 2021-06-27

    how to import the patch. Does everything have to be changed by hand?
    Andreas, DL4JAL

     
    • Manuel Bouyer

      Manuel Bouyer - 2021-06-27

      On Sun, Jun 27, 2021 at 02:29:22PM -0000, noreply@sourceforge.net wrote:

      how to import the patch. Does everything have to be changed by hand?

      it's been a while ... but if I remember properly, the patch is self-contained,
      nothing else has to be changed

      --
      Manuel Bouyer bouyer@antioche.eu.org
      NetBSD: 26 ans d'experience feront toujours la difference
      --

       

Anonymous
Anonymous

Add attachments
Cancel