DEFINE USE_LFSR ... Handy or not?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default DEFINE USE_LFSR ... Handy or not?

    Hi all,
    Is there any advantage and/or inconvenient to use DEFINE USE_LFSR on 18F serie?

    Just curious.

    Thanks
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    As far as I can tell, using the DEFINE just tells PBP to use a shorter method of executing the instruction:

    QUOTE:
    Early PIC18Xxxx devices do not include the LFSR assembler op-code. By
    default, PBP will not use the LFSR op-code but will use a longer method
    instead. If the PIC18Xxxx device does have the LFSR op-code, a Define may
    be added to the BASIC program to tell PBP to use it:

    Define USE_LFSR 1

  3. #3
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Talking

    Quote Originally Posted by Archilochus View Post
    Define USE_LFSR 1
    I think, this Define changes nothing ! The LFSR isn't used in several PIC18F I used...
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

Similar Threads

  1. RF Modules
    By tonyfelloni in forum mel PIC BASIC Pro
    Replies: 44
    Last Post: - 26th June 2010, 17:42
  2. PIC16F877A analog problem
    By DeViLa_Q8 in forum mel PIC BASIC
    Replies: 0
    Last Post: - 30th July 2009, 20:19
  3. RX TX modules - intermitent communication
    By ruijc in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 11th June 2009, 00:13
  4. PIC HSERIN problem
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 20th July 2008, 11:08
  5. Replies: 8
    Last Post: - 17th September 2006, 17:46

Members who have read this thread : 0

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