View previous topic :: View next topic |
Author |
Message |
adrian
Joined: 08 Sep 2003 Posts: 92 Location: Glasgow, UK
|
BOR settings |
Posted: Thu Sep 22, 2005 5:20 am |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Thu Sep 22, 2005 7:58 am |
|
|
Could you do something like what i do for RCREG register
#BYTE RCREG=0XFAE
so yours
#BYTE BOR=0x2008 //note no semicolin |
|
![](templates/subSilver/images/spacer.gif) |
adrian
Joined: 08 Sep 2003 Posts: 92 Location: Glasgow, UK
|
|
Posted: Thu Sep 22, 2005 8:10 am |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Thu Sep 22, 2005 8:17 am |
|
|
I'm sorry. I don't use mplab. |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Thu Sep 22, 2005 9:49 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
adrian
Joined: 08 Sep 2003 Posts: 92 Location: Glasgow, UK
|
|
Posted: Thu Sep 22, 2005 10:18 am |
|
|
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? |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Fri Sep 23, 2005 1:56 am |
|
|
'Programmer', 'read', then 'configure', 'configuration bits', should show the values read from the chip.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
|