PDA

View Full Version : DEFINE USE_LFSR ... Handy or not?



mister_e
- 29th January 2006, 20:02
Hi all,
Is there any advantage and/or inconvenient to use DEFINE USE_LFSR on 18F serie?

Just curious.

Thanks

Archilochus
- 29th January 2006, 21:27
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

BigWumpus
- 9th December 2010, 22:13
Define USE_LFSR 1

I think, this Define changes nothing ! The LFSR isn't used in several PIC18F I used...