Acessing "linear data memory" in P16F1455 with "absolute"

Beta Testing discussion on mikroPascal PRO for PIC.
Post Reply
Author
Message
Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Acessing "linear data memory" in P16F1455 with "absolute"

#1 Post by Dany » 14 Feb 2013 16:56

Hi, I do try to access the USB data memory in a P16F1455 in the "linear data memory" mode with the "absolute" modifier.

The code:

Code: Select all

program Test_Ldm;

{ Declarations section }

var
    arr1: array[64] of byte; absolute $2000; ldm;
I do get the error "bad absolute address 'arr1' ", no matter which absolute address I use. I use mP v5.8.0.

[added]: If I use e.g. the absolute address $20 then I get no error, but the size of the array is limited to 109 bytes (so, no "linear data memory", I think anyway that, if there should be a limit, it should be 80 decimal according the datasheet).

p.s.
1. I see no USB library in the library manager for this PIC type? Is it not available yet?
2. I do not see the P16F1455 in the menu of the MikroProg suite. Is it not available yet? (I use the PICFlash2 hardware).

Thanks in advance!
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

User avatar
dejan.odabasic
mikroElektronika team
Posts: 2649
Joined: 30 Apr 2012 14:20

Re: Acessing "linear data memory" in P16F1455 with "absolute

#2 Post by dejan.odabasic » 18 Feb 2013 15:12

Hello,

Currently, USB library is not provided for PIC16F MCUs and USB feature is not supported by compiler.

Also, PIC16F1455 is not supported by mikroProg Suit but it's on our wish list.
Our developers are working on it.

Best regards.

Post Reply

Return to “mikroPascal PRO for PIC Beta Testing”