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

BOR settings

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



Joined: 08 Sep 2003
Posts: 92
Location: Glasgow, UK

View user's profile Send private message

BOR settings
PostPosted: Thu Sep 22, 2005 5:20 am     Reply with quote

Anybody know how to view the BOR calibration setting? They are at address 2008h i.e one above the configuration register at 2007h which can be viewed in MPLab.
treitmey



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

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

PostPosted: Thu Sep 22, 2005 7:58 am     Reply with quote

Could you do something like what i do for RCREG register
#BYTE RCREG=0XFAE


so yours


#BYTE BOR=0x2008 //note no semicolin
adrian



Joined: 08 Sep 2003
Posts: 92
Location: Glasgow, UK

View user's profile Send private message

PostPosted: Thu Sep 22, 2005 8:10 am     Reply with quote

treitmey wrote:
Could you do something like what i do for RCREG register
#BYTE RCREG=0XFAE


Nope, from the data sheet:
Address 2008h is beyond the user program memory
space. It belongs to the special configuration memory
space (2000h-3FFFh), which can be accessed only
during programming

I was wondering as MPLab allows you to view the configuration register, whether it was possible to view the BOR calibration register.
treitmey



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

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

PostPosted: Thu Sep 22, 2005 8:17 am     Reply with quote

I'm sorry. I don't use mplab.
Ttelmah
Guest







PostPosted: Thu Sep 22, 2005 9:49 am     Reply with quote

First thing to understand, is that what a 'development enviroment' can do, does not necessarily correspond to what a chip can actually do.
The memory area corresponding to the calibration registers, is not readable on a chip, _unless_ this is a flash programmable type, which supports access of this type. On these chips, the 'read_program_memory' function, will allow these bytes to be read. The fact you are talking about the BOR fuses being at 0x2008, implies this is a 16 family chip, and on a device like the 16F688, these fuses are accessible using this function.

Best Wishes
adrian



Joined: 08 Sep 2003
Posts: 92
Location: Glasgow, UK

View user's profile Send private message

PostPosted: Thu Sep 22, 2005 10:18 am     Reply with quote

OK I don't think I explained my self very well. I do not want the 'chip' to read it's own calibration register. I was wondering if within the 'development enviroment' , the ICD2 programmer could load the calibration data into MPLab to be viewed, and if so how?
Ttelmah
Guest







PostPosted: Fri Sep 23, 2005 1:56 am     Reply with quote

'Programmer', 'read', then 'configure', 'configuration bits', should show the values read from the chip.

Best Wishes
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