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

how to add Internal register file of uP to c file?

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







how to add Internal register file of uP to c file?
PostPosted: Wed Feb 25, 2009 11:18 am     Reply with quote

i would like to access the internal register of 16f628a, is there any way to add in c file as default? so that i no need define every register that i use...
it is need include some file?
Ttelmah
Guest







PostPosted: Wed Feb 25, 2009 11:32 am     Reply with quote

I already answered this in your thread about how to access an individual register...
Seriously though, one of the whole points about using a compiler, is to let the compiler do the register accesses for you. 99% of the code written, need never touch a single register by name. This allows it to be portable to other chips, without having to redefine the register locations.

Best Wishes
dyeatman



Joined: 06 Sep 2003
Posts: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Wed Feb 25, 2009 11:37 am     Reply with quote

Here is another thread that might have useful information on register definitions.

http://www.ccsinfo.com/forum/viewtopic.php?t=37195
Guest








PostPosted: Thu Feb 26, 2009 1:33 am     Reply with quote

Ttelmah wrote:
I already answered this in your thread about how to access an individual register...
Seriously though, one of the whole points about using a compiler, is to let the compiler do the register accesses for you. 99% of the code written, need never touch a single register by name. This allows it to be portable to other chips, without having to redefine the register locations.

Best Wishes


can u send me the link? i not sure which one u mention about... Smile
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