ATmega48 Automotive Atmel Corporation, ATmega48 Automotive Datasheet - Page 148

no-image

ATmega48 Automotive

Manufacturer Part Number
ATmega48 Automotive
Description
Manufacturer
Atmel Corporation

Specifications of ATmega48 Automotive

Flash (kbytes)
4 Kbytes
Pin Count
32
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
12
Hardware Qtouch Acquisition
No
Max I/o Pins
23
Ext Interrupts
24
Usb Speed
No
Usb Interface
No
Spi
2
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
0.5
Eeprom (bytes)
256
Self Program Memory
NO
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 125
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
3
Output Compare Channels
6
Input Capture Channels
1
Pwm Channels
6
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes
18.8.3
18.9
Table 18-2.
148
Temperature / °C
Voltage / mV
Temperature Measurement
Atmel ATtiny24/44/84 [Preliminary]
Bipolar Differential Conversion
Temperature vs. Sensor Output Voltage (Typical Case)
The voltage of the positive pin must always be larger than the voltage of the negative pin or
otherwise the voltage difference is saturated to zero. The result is presented in one-sided
form, from 0x000 (0d) through 0x3FF (+1023d). The GAIN is either 1x or 20x.
If differential channels and a bipolar input mode are used, the result is
where V
and V
from 0x200 (-512d) through 0x1FF (+511d). The GAIN is either 1x or 20x. Note that if the user
wants to perform a quick polarity check of the result, it is sufficient to read the MSB of the
result (ADC9 in ADCH). If the bit is one, the result is negative, and if this bit is zero, the result
is positive.
As default the ADC converter operates in the unipolar input mode, but the bipolar input mode
can be selected by writing the BIN bit in the ADCSRB to one. In the bipolar input mode
two-sided voltage differences are allowed and thus the voltage on the negative input pin can
also be larger than the voltage on the positive input pin.
The temperature measurement is based on an on-chip temperature sensor that is coupled to a
single-ended ADC8 channel. Selecting the ADC8 channel by writing the MUX5:0 bits in the
ADMUX register to "100010" enables the temperature sensor. The internal 1.1V reference
must also be selected for the ADC reference source in the temperature sensor measurement.
When the temperature sensor is enabled, the ADC converter can be used in single conversion
mode to measure the voltage over the temperature sensor. The measured voltage has a linear
relationship to the temperature, as described in Table 51. The voltage sensitivity is approxi-
mately 1mV/°C, and the accuracy of the temperature measurement is ±10°C after offset
calibration. Bandgap is always calibrated, and its accuracy is only guaranteed between 1.0V
and 1.2V
The values described in
cess variation, the temperature sensor output voltage varies from one chip to another. To be
capable of achieving more accurate results, the temperature measurement can be calibrated
in the application software. The software calibration requires that a calibration value be mea-
sured and stored in a register or EEPROM for each chip as a part of the production test. The
software calibration can be done utilizing the formula:
where ADCn are the ADC data registers, k is a fixed coefficient and T
sensor offset value determined and stored into EEPROM as a part of the production test.
243mV
-40°C
REF
POS
the selected voltage reference. The result is presented in two’s complement form,
is the voltage on the positive input pin, V
Table 18-2 on page 148
ADC
T = {[(ADCH << 8) | ADCL] - TOS} / k
314mv
+25°C
=
-------------------------------------------------------
V
POS
V
V
REF
NEG
are typical values. However, due to the pro-
512
NEG
380mV
+85°C
the voltage on the negative input pin,
GAIN
OS
is the temperature
+125°C
424mV
7701E–AVR–02/11

Related parts for ATmega48 Automotive