ATmega16HVB Atmel Corporation, ATmega16HVB Datasheet - Page 20

no-image

ATmega16HVB

Manufacturer Part Number
ATmega16HVB
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega16HVB

Flash (kbytes)
16 Kbytes
Pin Count
44
Max. Operating Frequency
8 MHz
Cpu
8-bit AVR
# Of Touch Channels
8
Hardware Qtouch Acquisition
No
Max I/o Pins
17
Ext Interrupts
15
Usb Speed
No
Usb Interface
No
Spi
1
Twi (i2c)
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
12
Adc Speed (ksps)
1.9
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
1
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
4.0 to 25
Operating Voltage (vcc)
4.0 to 25
Fpu
No
Mpu / Mmu
no / no
Timers
2
Output Compare Channels
4
Input Capture Channels
2
32khz Rtc
No
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATmega16HVB-8X3
Manufacturer:
LT
Quantity:
51
Part Number:
ATmega16HVB-8X3
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
8.5.1
8.6
8.6.1
8.6.2
20
Register description
ATmega16HVB/32HVB
General purpose I/O registers
EEARH and EEARL– The EEPROM Address Register High and Low
EEDR – The EEPROM data register
IN and OUT, the I/O addresses 0x00 - 0x3F must be used. When addressing I/O Registers as
data space using LD and ST instructions, 0x20 must be added to these addresses. The Atmel
ATmega16HVB/32HVB is a complex microcontroller with more peripheral units than can be sup-
ported within the 64 location reserved in Opcode for the IN and OUT instructions. For the
Extended I/O space from 0x60 - 0xFF in SRAM, only the ST/STS/STD and LD/LDS/LDD instruc-
tions can be used.
For compatibility with future devices, reserved bits should be written to zero if accessed.
Reserved I/O memory addresses should never be written.
Some of the status flags are cleared by writing a logical one to them. Note that the CBI and SBI
instructions will only operate on the specified bit, and can therefore be used on registers contain-
ing such status flags. The CBI and SBI instructions work with registers 0x00 to 0x1F only.
The I/O and peripherals control registers are explained in later sections.
The ATmega16HVB/32HVB contains three General Purpose I/O Registers. These registers can
be used for storing any information, and they are particularly useful for storing global variables
and Status Flags. General Purpose I/O Registers within the address range 0x00 - 0x1F are
directly bit-accessible using the SBI, CBI, SBIS, and SBIC instructions.
• Bits 15:10 – Reserved
These bits are reserved bits in the ATmega16HVB/32HVB and will always read as zero.
• Bits 9:0 – EEAR9:0: EEPROM address
The EEPROM Address Registers – EEAR specify the EEPROM address in the 512/1Kbytes
EEPROM space. The EEPROM data bytes are addressed linearly between 0 and 511/1023.
The initial value of EEAR is undefined. A proper value must be written before the EEPROM may
be accessed.
Bit
0x22 (0x42)
0x21 (0x41)
Bit
Read/Write
Initial Value
Bit
0x20 (0x40)
Read/Write
Initial Value
EEAR7
MSB
R/W
R/W
15
R
X
7
0
7
0
EEAR6
R/W
R/W
14
R
X
6
0
6
0
EEAR5
R/W
R/W
13
R
X
5
0
5
0
EEAR4
R/W
R/W
12
R
X
4
0
4
0
EEAR3
R/W
R/W
11
R
3
0
X
3
0
EEAR2
R/W
R/W
10
R
X
2
0
2
0
EEAR9
EEAR1
R/W
R/W
R/W
9
1
X
X
1
0
EEAR8
EEAR0
R/W
R/W
LSB
R/W
X
X
8
0
0
0
8042D–AVR–10/11
EEARH
EEARL
EEDR

Related parts for ATmega16HVB