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

spbrgh on 18f2680

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



Joined: 30 Oct 2003
Posts: 24
Location: skegness

View user's profile Send private message Visit poster's website

spbrgh on 18f2680
PostPosted: Wed Oct 04, 2006 2:32 pm     Reply with quote

hello guys.
has anyone noticed that the spbrgh register is non existent on the 18f2680.

i need 1200 baud on the uart on a 8mhz internal clock + pll ( 32 mhz).
and i now find spbrgh is unavailable, so i cant get to 1200 baud.

any ideas ????
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Wed Oct 04, 2006 3:31 pm     Reply with quote

I think its 0xFB0 spec pg 72
enable is baudcon bit 3 spec pg 232
lewiseley



Joined: 30 Oct 2003
Posts: 24
Location: skegness

View user's profile Send private message Visit poster's website

PostPosted: Thu Oct 05, 2006 2:55 am     Reply with quote

yes i have baudcon bit 3 set.
but it seems to be inaccessible, from icd2 when you view spec func registers
it has '--' in the place of spbrgh.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Thu Oct 05, 2006 7:52 am     Reply with quote

So you mean to say that the ICD doesn't show the register value where you expect to find it. I miss-understood you.

It could be the ICD or the chip def. Are you using 3.249?

I don't have one of these chips. I can't help more.
I figure you could edit a chip to have this value where you want to see it.

Or maybe you could find a simular chip(with this reg in correct spot) and compile it as that. The icd will complain a little(("i didn't find a 16F877)) but you can force it to load.

Does anyone have this chip?
lewiseley



Joined: 30 Oct 2003
Posts: 24
Location: skegness

View user's profile Send private message Visit poster's website

PostPosted: Thu Oct 05, 2006 8:33 am     Reply with quote

thanks treitmey

it turns out to be an icd2 problem, it is there and accessible, but icd2
seems to think its a restricted memory location.
and will not display it.
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