Searching \ for '[PIC] Bank confusion.' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/memory.htm?key=bank
Search entire site for: 'Bank confusion.'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] Bank confusion.'
2005\12\18@105339 by Phil Cross

picon face
Forgive me - I am a beginner wrestling with use of an 18F452, and maybe I am
not understanding ban selection properly.

All going well so far, but I am puzzled by bank selection for the following
case:

   movff    reg1,reg2

If reg1 and reg2 are defined to be in different banks, how can this work,
please?

Regards, Phil.


2005\12\18@112833 by olin piclist

face picon face
Phil Cross wrote:
>     movff    reg1,reg2
>
> If reg1 and reg2 are defined to be in different banks, how can this
> work, please?

Given this question, an obvious thing to do would have been to read the
MOVFF instruction description.  Go do that then report back on how many
address bits are encoded in the instrution for REG1 and REG2.


******************************************************************
Embed Inc, Littleton Massachusetts, (978) 742-9014.  #1 PIC
consultant in 2004 program year.  http://www.embedinc.com/products

2005\12\18@181550 by Jan-Erik Soderholm

face picon face
Phil Cross wrote :

>     movff    reg1,reg2
>
> If reg1 and reg2 are defined to be in different banks,
> how can this work, please?

MOVFF can adress the whole RAM memory directly,
without any bank switching.

The MOVF, MOVWF can not.

Also note, that MOVFF can have WREG as one of it's
arguments, so you can move to/from W from *any*
RAM location without any bank switching at all.

But it's better if you just read the data sheet instead... :-)

Jan-Erik.



2005\12\19@140523 by Phil Cross

picon face
Thank you Messrs. Lathrop and Soderholm for the information.

I was a little stung by the rebukes, but I guess I deserved them.  In future
I shall try to avoid spamming the list with my stupid questions.

Regards, Phil.


2005\12\19@142600 by Mike Hagen

flavicon
face
Phil,

Don't feel like the "Lone Ranger"!

You have to have "thick skin" to post here!

Merry Xmas everyone!

Mike ):

----- Original Message -----
From: "Phil Cross" <spam_OUTpj_crossTakeThisOuTspamhotmail.com>
To: <.....piclistKILLspamspam@spam@mit.edu>
Sent: Monday, December 19, 2005 11:05 AM
Subject: RE: [PIC] Bank confusion.


> Thank you Messrs. Lathrop and Soderholm for the information.
>
> I was a little stung by the rebukes, but I guess I deserved them.  In
> future
> I shall try to avoid spamming the list with my stupid questions.
>
> Regards, Phil.
>
>
> --

2005\12\19@142928 by John Nall

picon face
Phil Cross wrote:
> Thank you Messrs. Lathrop and Soderholm for the information.
>
> I was a little stung by the rebukes, but I guess I deserved them.  In future
> I shall try to avoid spamming the list with my stupid questions.
Well, the rebukes were a little stinging, I'll have to admit.  Both Olin
and Jan-Erik tend to say what they think though.  And you'll probably
have to admit that they were correct.  Not diplomatic, perhaps, but
correct.  :-)

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