CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Question about 18F series (18F252)

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Pete Smith
Guest







Question about 18F series (18F252)
PostPosted: Mon Mar 24, 2003 1:59 pm     Reply with quote

Hi all.

I'm thinking of upgrading my compiler to PCH, so I can use 18F parts (specifically 18F252, because it's pin compatible with the 16F876A we use at present - hopefully I can track down some 18LF parts eventually).

I see the 252 has 1536 bytes of RAM.

How is this accessed? In the 16 series, it's limited to 96 bytes per array (due to the register layout). As far as I can tell, looking at the data sheet, the 18F252, the user RAM is from locations 0x0018-0x7fff.

Is this a totally different way of looking at a PIC, rather than having a limited set of registers, actually having RAM as such?

Does this mean I could actually define an array of 1024 bytes, and it all work?

Many thanks,

Pete.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13020
Tomi
Guest







Re: Question about 18F series (18F252)
PostPosted: Tue Mar 25, 2003 1:14 am     Reply with quote

Yes. For example I have a declaration of:
char MMCPuffer[512];
and it works fine :)

:=Does this mean I could actually define an array of 1024 bytes, and it all work?
___________________________
This message was ported from CCS's old forum
Original Post ID: 13039
Pete Smith
Guest







Re: Question about 18F series (18F252)
PostPosted: Tue Mar 25, 2003 1:57 am     Reply with quote

:=Yes. For example I have a declaration of:
:=char MMCPuffer[512];
:=and it works fine

That's great.

Now all I need to do is scrape up enough to get the compiler - or get work to buy it for me!

Thanks,

Pete.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13040
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group