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 CCS Technical Support

PIC 18fxx31 register address

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



Joined: 13 Mar 2005
Posts: 3
Location: Paris

View user's profile Send private message

PIC 18fxx31 register address
PostPosted: Sun Mar 13, 2005 1:04 pm     Reply with quote

I'm using a 18f4431 and when I read the 18fxx31 datasheet I've noticed that there was different adresses for the same register (http://ww1.microchip.com/downloads/en/DeviceDoc/39616b.pdf).
For example, the register SSPCON had the address FC6h at the page 67 (register map) and on the page 215 (register 18-2) it had the address 14h.

With Mplab the first address seems to work but in every application I've seen evrybody use the second. What address should I use?

Am I going crazy or is it totally normal and I don't know how to read a datasheet ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Mar 13, 2005 3:03 pm     Reply with quote

No, I saw it too, when I was recently working on a 18F4431 problem
for someone on this board. What you're seeing is laziness by the
tech writer at Microchip. They must have copied a section of the
SSPCON data sheet from a 16F series PIC where the SSPCON address
is normally at 0x14.

Do you want to report this error to them ? If so, go here
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=676
In the section under Literature Requests, there's a link to send an
email to their technical document team to report errors.
raf



Joined: 13 Mar 2005
Posts: 3
Location: Paris

View user's profile Send private message

PostPosted: Tue Mar 15, 2005 2:37 am     Reply with quote

ok thanks you of your quick reply
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