Searching \ for '12C509 FSR used for direct addressing?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/index.htm?key=12c509+fsr+used
Search entire site for: '12C509 FSR used for direct addressing?'.

Truncated match.
PICList Thread
'12C509 FSR used for direct addressing?'
1999\12\14@170722 by quozl

flavicon
face
DS40139B Page 17, Figure 4-7, suggests that bit 5 of FSR is used to
form the bank select for direct addressing.  The text doesn't
state this, however.

Does this mean that to clear, say, the register at 0x1f, one has to
ensure that FSR bit 5 is clear?

       BCF     FSR,5
       CLRF    1F

If so, this may explain a few problems I have ... I'm using FSR to
manage a data stack in the upper portion of bank 1, 0x30 - 0x3f.

--
James Cameron   spam_OUTquozlTakeThisOuTspamus.netrek.org   http://quozl.us.netrek.org/

1999\12\15@045916 by ruben

flavicon
face
Hi James,

Yes, for the PIC's with a 12 bit core there are only 5 bits used in
the opcode to form the address of a file register. The other 2 bits
come from bits 5 and 6 of FSR (Only bit 5 is used for 12C509).

Note also that subroutines and lookuptables has to be in the lower
half (first 256 addresses) of a program memory page (0x000-0x0ff and
0x200-0x2ff for the 12C509). Bit 9 is allways cleard with a call
instruction and instructions that modify the PC.


{Quote hidden}

==============================
Ruben Jvnsson
AB Liros Elektronik
Box 9124, 200 39 Malmv, Sweden
TEL INT +4640 142078
FAX INT +4640 947388
rubenspamKILLspam2.sbbs.se
==============================

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...