What does Access mean after dimensioning a variable?


Today 13:01
Forum: PICKit Plus
Starter: evan
Views: 0
Replies: 2
Today 10:55
Forum: Proton 24
Starter: craig
Views: 0
Replies: 9
Today 10:46
Forum: Proton 24
Starter: GAMBOA
Views: 0
Replies: 0
Yesterday 21:44
Forum: The Lounge
Starter: Tim
Views: 0
Replies: 18
Yesterday 21:37
Forum: Proton Plus Compiler v3
Starter: BenBarber
Views: 4587
Replies: 44
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member Dompie's Avatar
    Join Date
    Apr 2012
    Posts
    100
    Thumbs Up
    Received: 19
    Given: 11
    Total Downloaded
    2.54 GB

    0 Not allowed!

    Default What does Access mean after dimensioning a variable?

    I know the System and Heap directive at the end of a variable declare i.e. Dim bVar as Byte System (or Heap).
    But in Les his WS2812B_Inc I discovered:
    Code:
    Dim WS2812B_bIndex    As Byte Access
    Dim WS2812B_bBitIndex As Byte Access
    Dim WS2812B_dRGB      As Dword Access
    As far as I understand:
    -System will create the variable at the begin of the Dim list.
    -Heap will create the variable at the end of the Dim list

    But does anybody know the meaning of Access?

    Johan

  2. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Senior Member Mellbreak's Avatar
    Join Date
    Jun 2012
    Posts
    518
    Thumbs Up
    Received: 52
    Given: 22
    Total Downloaded
    2.49 GB

    0 Not allowed!

    Default Re: What does Access mean after dimensioning a variable?

    Now that is an interesting question, as I'm about to start playing with this program it would be good to know the answer to your question.

    Looking at the Proton manual, I can't find Access in the list of reserved words.

    Bob
    Last edited by Mellbreak; 4th December 2018 at 08:17.

  4. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,982
    Thumbs Up
    Received: 183
    Given: 169
    Total Downloaded
    3.60 GB

    0 Not allowed!

    Default Re: What does Access mean after dimensioning a variable?

    It the first bank of RAM so it's quicker as no bank setting.

    See Microchip datasheet eg 18F25K50 and search for "Access Bank"
    Last edited by towlerg; 4th December 2018 at 12:41.
    George.

  6. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  7. #4
    Prolific Poster charliecoultas's Avatar
    Join Date
    Sep 2010
    Posts
    1,280
    Thumbs Up
    Received: 77
    Given: 39
    Total Downloaded
    3.21 GB

    0 Not allowed!

    Default Re: What does Access mean after dimensioning a variable?

    Thanks George, that's useful to know.

    Charlie

  8. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  9. #5
    Member Dompie's Avatar
    Join Date
    Apr 2012
    Posts
    100
    Thumbs Up
    Received: 19
    Given: 11
    Total Downloaded
    2.54 GB

    0 Not allowed!

    Default Re: What does Access mean after dimensioning a variable?

    Oh yes George that must be the solution!

    In the datasheet for 18F26K22 in 5.4:
    ""To ensure that commonly used registers (SFRs and select GPRs) can be accessed in a single cycle, PIC18 devices implement an Access Bank. This is a 256-byte memory space that provides fast access to SFRs and the lower portion of GPR Bank 0 without using the Bank Select Register (BSR).""

    I must read the datasheet better, I didn't know. Thanks!

    Johan

  10. Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Selecting variable bit using another variable
    By ricardourio in forum Wish List / Product Feedback
    Replies: 2
    Last Post: 30th June 2017, 12:23
  2. Toggle variable + Nibble variable
    By Oldhack in forum Wish List / Product Feedback
    Replies: 2
    Last Post: 21st September 2013, 22:18
  3. What does Heap mean after dimensioning a variable?
    By towlerg in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 11th February 2013, 10:27
  4. Variable assignment while defining a Variable
    By SELCUK in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 14th April 2010, 10:39
  5. Variable crossing Bank Boundary access
    By Dave-S in forum Proton Plus Compiler v3
    Replies: 3
    Last Post: 20th April 2007, 22:17

Members who have read this thread since 22nd March 2019, 15:01 : 0

Actions :  (Set Date)  (Clear Date)

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts