View previous topic :: View next topic |
Author |
Message |
lewiseley
Joined: 30 Oct 2003 Posts: 24 Location: skegness
|
spbrgh on 18f2680 |
Posted: Wed Oct 04, 2006 2:32 pm |
|
|
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
|
|
Posted: Wed Oct 04, 2006 3:31 pm |
|
|
I think its 0xFB0 spec pg 72
enable is baudcon bit 3 spec pg 232 |
|
|
lewiseley
Joined: 30 Oct 2003 Posts: 24 Location: skegness
|
|
Posted: Thu Oct 05, 2006 2:55 am |
|
|
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
|
|
Posted: Thu Oct 05, 2006 7:52 am |
|
|
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
|
|
Posted: Thu Oct 05, 2006 8:33 am |
|
|
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. |
|
|
|