PonyProg :  PonyProg Phorum PonyProg
PonyProg open discussion 
ATMega8 & Osc. Calibration Byte
Posted by: kortix ()
Date: October 19, 2007 02:39PM

The ATMega 8 has Osc. Calibration Bytes. One for 1Mhz, one for 4MHz and one for 8 MHz.
How can I read these Calibration Bytes with Ponyprog. I can only read the first Calibration Byte.

Options: ReplyQuote
Re: ATMega8 & Osc. Calibration Byte
Posted by: lancos ()
Date: January 03, 2008 02:39PM

It's in my TODO list.
In the meantime you can use scripts to access all calibration bytes.



Edited 1 time(s). Last edit at 01/05/2008 09:46PM by lancos.

Options: ReplyQuote
Re: ATMega8 & Osc. Calibration Byte
Posted by: gulfstreamer84 ()
Date: January 30, 2009 08:22PM

lancos Wrote:
-------------------------------------------------------
> It's in my TODO list.
> In the meantime you can use scripts to access all
> calibration bytes.

What is the precise form of the script command for the 8MHz byte and ATTINY26 device? So far everything I have tried returned the same 1MHz calibration byte...

Nick

Options: ReplyQuote
Re: ATMega8 & Osc. Calibration Byte
Posted by: gulfstreamer84 ()
Date: February 11, 2009 09:35AM

kortix Wrote:
-------------------------------------------------------
> The ATMega 8 has Osc. Calibration Bytes. One for
> 1Mhz, one for 4MHz and one for 8 MHz.
> How can I read these Calibration Bytes with
> Ponyprog. I can only read the first Calibration
> Byte.

Hope you have solved the problem. For a case, the following worked in my case of ATTINY26:

make the following file calibr.e2s:


SELECTDEVICE ATTINY26
READ-CALIBRATION 0 DATA 0
READ-CALIBRATION 1 DATA 1
READ-CALIBRATION 2 DATA 2
READ-CALIBRATION 3 DATA 3


Make a "blank" program hex file and load it to PonyProg (e.g., load any existing hex file and clear it up with the command).

Now load and run the script calibr.e2s

The previously clear program file in the PonyProg window will now contain four values in the first four bytes; these are the calibration bytes for 1MHz, 2MHz, 4MHz and 8MHz, respectively.



Edited 1 time(s). Last edit at 02/11/2009 09:36AM by gulfstreamer84.

Options: ReplyQuote


Return to LancOS.
Powered by Phorum.