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

Read/Write to internal registers

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



Joined: 16 Nov 2006
Posts: 1

View user's profile Send private message

Read/Write to internal registers
PostPosted: Thu Nov 16, 2006 8:40 am     Reply with quote

In order to directly read/write to internal registers, where can I find some header files with description of all internal registers of a microcontroller ?

i.e.

#BYTE TMR0 = 0x01

#BIT T0IF = 0x0B.2

Thanks !!!
dbotkin



Joined: 08 Sep 2003
Posts: 197
Location: Omaha NE USA

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Nov 16, 2006 8:53 am     Reply with quote

The .H file for your processor will have some. For the common ones, I haven't found anything but it would be pretty simple to write using the data sheet. I usually just add a few #defines for any registers I need to set directly.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Nov 16, 2006 11:02 am     Reply with quote

Example header files for the PIC18F452 and PIC18F458 can be found in http://www.ccsinfo.com/forum/viewtopic.php?p=72346

A header file for the PIC16F877 can be found in http://www.ccsinfo.com/forum/viewtopic.php?t=20697
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