piclist 2008\07\01\155914a >
Thread: Strange PIC12F675 or user problem... pin cross-connect?
face picon face BY : email (remove spam text)(Olin Lathrop)

Rolf wrote:
> I presume it is safe to suggest that the 12F675 is one of the 'Common
> RAM' devices, where ALL GPR memory is common, (but the 32 SFR
> addresses in each bank are not).

Yes, it appears to be one of those.

> Hence, I presume this confirms that there is no need to do banking for
> GPR memory for the PIC12F675

It means all your variables only live in bank 0.  They are also aliased from
bank 1, and that PIC only has banks 0 and 1, so you don't need to worry
about banking when accessing a variable in RAM.

However, don't get to used to that.  Most PICs don't work that way.  It's a
good idea to learn the discipline the right way even if you could get away
with being more sloppy in this case.

You can define all your variables in a UDATA_SHR section.  That states that
they must go in shared memory.  If the code is ever built for a PIC that
doesn't have that much shared memory, you will get build errors.  Then you
can inspect the variables and decide how to move them around and add the
necessary bank switching code.

Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.
<001f01c8dbb5$3f9015b0$0300a8c0@main> 7bit

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Strange PIC12F675 or user problem... pin cross-connect?

month overview.

new search...