ATmega8HVA_16HVA_signature.h File Reference


Detailed Description

Signature row defines for ATmega8HVA and ATmega16HVA.

Contains define for signaure reading and address defines for the bytes.

Application note:
AVR351: Runtime calibration and compensation of RC oscillators using the Oscillator Sampling Interface
Documentation
For comprehensive code documentation, supported compilers, compiler settings and supported devices see readme.html
Author:
Atmel Corporation: http://www.atmel.com
Support email: avr@atmel.com
Revision
4809
Date
2008-11-04 12:17:59 +0100 (ti, 04 nov 2008)

Copyright (c) 2008, Atmel Corporation All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. The name of ATMEL may not be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file ATmega8HVA_16HVA_signature.h.

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define READ_SIGNATUREBYTE(addr)   __AddrToZByteToSPMCR_LPM( ((void __flash*)addr), ((1 << SIGRD) | (1 << SPMEN)) )
 Define for IAR signature reading. Must be changed for other compilers, possibly to a function.
#define SIG_BGCCR_CALIB_25C   0x0F
#define SIG_BGCCR_CALIB_HOT   0x13
#define SIG_BGCRR_CALIB_25C   0x11
#define SIG_DEVICE_ID0   0x00
#define SIG_DEVICE_ID1   0x02
#define SIG_DEVICE_ID2   0x04
#define SIG_FOSC_SEGMENT   0x03
#define SIG_FOSCCAL_DEFAULT   0x01
#define SIG_RESERVED_0x05   0x05
#define SIG_RESERVED_0x0C   0x0C
#define SIG_RESERVED_0x0D   0x0D
#define SIG_RESERVED_0x0E   0x0E
#define SIG_RESERVED_0x10   0x10
#define SIG_RESERVED_0x12   0x12
#define SIG_RESERVED_0x26   0x26
#define SIG_RESERVED_0x27   0x27
#define SIG_RESERVED_0x28   0x28
#define SIG_RESERVED_0x29   0x29
#define SIG_SLOW_RC_FREQ   0x0B
#define SIG_SLOW_RC_H   0x07
#define SIG_SLOW_RC_L   0x06
#define SIG_SLOW_RC_PRED_H   0x09
#define SIG_SLOW_RC_PRED_L   0x08
#define SIG_TEMPERATURE_HOT   0x30
#define SIG_ULP_RC_FREQ   0x0A
#define SIG_VADC_ADC0_GAIN_H   0x21
#define SIG_VADC_ADC0_GAIN_L   0x20
#define SIG_VADC_ADC0_OFFSET   0x24
#define SIG_VADC_ADC1_GAIN_H   0x23
#define SIG_VADC_ADC1_GAIN_L   0x22
#define SIG_VADC_ADC1_OFFSET   0x25
#define SIG_VADC_CELL1_GAIN_H   0x1B
#define SIG_VADC_CELL1_GAIN_L   0x1A
#define SIG_VADC_CELL1_OFFSET   0x1E
#define SIG_VADC_CELL2_GAIN_H   0x1D
#define SIG_VADC_CELL2_GAIN_L   0x1C
#define SIG_VADC_CELL2_OFFSET   0x1F
#define SIG_VADC_RAW_ADC0_H   0x17
#define SIG_VADC_RAW_ADC0_L   0x16
#define SIG_VADC_RAW_CELL1_H   0x15
#define SIG_VADC_RAW_CELL1_L   0x14
#define SIG_VPTAT_H   0x19
#define SIG_VPTAT_L   0x18


Define Documentation

#define READ_SIGNATUREBYTE ( addr   )     __AddrToZByteToSPMCR_LPM( ((void __flash*)addr), ((1 << SIGRD) | (1 << SPMEN)) )

Define for IAR signature reading. Must be changed for other compilers, possibly to a function.

Definition at line 52 of file ATmega8HVA_16HVA_signature.h.

Referenced by CalculateSlowRCperiod(), CalibrateFastRCruntime(), InitBandgap(), and main().

#define SIG_BGCCR_CALIB_25C   0x0F

Definition at line 73 of file ATmega8HVA_16HVA_signature.h.

Referenced by InitBandgap().

#define SIG_BGCCR_CALIB_HOT   0x13

Definition at line 77 of file ATmega8HVA_16HVA_signature.h.

Referenced by InitBandgap().

#define SIG_BGCRR_CALIB_25C   0x11

Definition at line 75 of file ATmega8HVA_16HVA_signature.h.

Referenced by InitBandgap().

#define SIG_DEVICE_ID0   0x00

Address defines for the signature row data in ATmega8HVA and ATmega16HVA. See datasheet and application note for details.

Definition at line 58 of file ATmega8HVA_16HVA_signature.h.

#define SIG_DEVICE_ID1   0x02

Definition at line 60 of file ATmega8HVA_16HVA_signature.h.

#define SIG_DEVICE_ID2   0x04

Definition at line 62 of file ATmega8HVA_16HVA_signature.h.

#define SIG_FOSC_SEGMENT   0x03

Definition at line 61 of file ATmega8HVA_16HVA_signature.h.

Referenced by CalibrateFastRCruntime().

#define SIG_FOSCCAL_DEFAULT   0x01

Definition at line 59 of file ATmega8HVA_16HVA_signature.h.

Referenced by CalibrateFastRCruntime().

#define SIG_RESERVED_0x05   0x05

Definition at line 63 of file ATmega8HVA_16HVA_signature.h.

#define SIG_RESERVED_0x0C   0x0C

Definition at line 70 of file ATmega8HVA_16HVA_signature.h.

#define SIG_RESERVED_0x0D   0x0D

Definition at line 71 of file ATmega8HVA_16HVA_signature.h.

#define SIG_RESERVED_0x0E   0x0E

Definition at line 72 of file ATmega8HVA_16HVA_signature.h.

#define SIG_RESERVED_0x10   0x10

Definition at line 74 of file ATmega8HVA_16HVA_signature.h.

#define SIG_RESERVED_0x12   0x12

Definition at line 76 of file ATmega8HVA_16HVA_signature.h.

#define SIG_RESERVED_0x26   0x26

Definition at line 96 of file ATmega8HVA_16HVA_signature.h.

#define SIG_RESERVED_0x27   0x27

Definition at line 97 of file ATmega8HVA_16HVA_signature.h.

#define SIG_RESERVED_0x28   0x28

Definition at line 98 of file ATmega8HVA_16HVA_signature.h.

#define SIG_RESERVED_0x29   0x29

Definition at line 99 of file ATmega8HVA_16HVA_signature.h.

#define SIG_SLOW_RC_FREQ   0x0B

Definition at line 69 of file ATmega8HVA_16HVA_signature.h.

#define SIG_SLOW_RC_H   0x07

Definition at line 65 of file ATmega8HVA_16HVA_signature.h.

Referenced by CalculateSlowRCperiod().

#define SIG_SLOW_RC_L   0x06

Definition at line 64 of file ATmega8HVA_16HVA_signature.h.

Referenced by CalculateSlowRCperiod().

#define SIG_SLOW_RC_PRED_H   0x09

Definition at line 67 of file ATmega8HVA_16HVA_signature.h.

Referenced by CalculateSlowRCperiod().

#define SIG_SLOW_RC_PRED_L   0x08

Definition at line 66 of file ATmega8HVA_16HVA_signature.h.

Referenced by CalculateSlowRCperiod().

#define SIG_TEMPERATURE_HOT   0x30

Definition at line 100 of file ATmega8HVA_16HVA_signature.h.

Referenced by CalculateSlowRCperiod().

#define SIG_ULP_RC_FREQ   0x0A

Definition at line 68 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_ADC0_GAIN_H   0x21

Definition at line 91 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_ADC0_GAIN_L   0x20

Definition at line 90 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_ADC0_OFFSET   0x24

Definition at line 94 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_ADC1_GAIN_H   0x23

Definition at line 93 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_ADC1_GAIN_L   0x22

Definition at line 92 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_ADC1_OFFSET   0x25

Definition at line 95 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_CELL1_GAIN_H   0x1B

Definition at line 85 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_CELL1_GAIN_L   0x1A

Definition at line 84 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_CELL1_OFFSET   0x1E

Definition at line 88 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_CELL2_GAIN_H   0x1D

Definition at line 87 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_CELL2_GAIN_L   0x1C

Definition at line 86 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_CELL2_OFFSET   0x1F

Definition at line 89 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_RAW_ADC0_H   0x17

Definition at line 81 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_RAW_ADC0_L   0x16

Definition at line 80 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_RAW_CELL1_H   0x15

Definition at line 79 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VADC_RAW_CELL1_L   0x14

Definition at line 78 of file ATmega8HVA_16HVA_signature.h.

#define SIG_VPTAT_H   0x19

Definition at line 83 of file ATmega8HVA_16HVA_signature.h.

Referenced by main().

#define SIG_VPTAT_L   0x18

Definition at line 82 of file ATmega8HVA_16HVA_signature.h.

Referenced by main().


Generated on Tue Nov 4 14:58:58 2008 for AVR351 Runtime calibration and compensation of oscillators by  doxygen 1.5.5