Rainbow Electronics ATmega8HVD User Manual
Atmega4hvd atmega8hvd preliminary, Features
![background image](/manuals/281365/1/background.png)
Features
•
High Performance, Low Power AVR
®
8-bit Microcontroller
•
Advanced RISC Architecture
– 124 Powerful Instructions - Most Single Clock Cycle Execution
– 32 x 8 General Purpose Working Registers
– Fully Static Operation
– Up to 4 MIPS Throughput at 4 MHz
•
Nonvolatile Program and Data Memories
– 4K/8K Bytes of In-System Self-Programmable Flash (ATmega4HVD/8HVD)
– 256 Bytes EEPROM
– 512 Bytes Internal SRAM
– Write/Erase Cycles: 10,000 Flash/ 100,000 EEPROM
– Data Retention: 20 years at 85°C /100 years at 25°C
– Programming Lock for Software Security
•
Battery Management Features
– One Cell Batteries
– Short-circuit Protection (Discharge)
– Over-current Protection (Charge and Discharge)
– External Protection Input
– High Voltage Outputs to Drive N-Channel Charge/Discharge FETs
– Operation with 1 FET or 2 FETs supported
Charge FET is optional
– Battery authentication features (Available only under NDA)
•
Peripheral Features
– Two 8/16-bit Timer/Counters with Separate Prescaler and two output compare
units
– 10-bit ADC with One External Input
– Two High-voltage open-drain I/O pins
– Programmable Watchdog Timer
•
Special Microcontroller Features
– debugWIRE On-chip Debug System
– In-System Programmable
– Power-on Reset
– On-chip Voltage Reference with built-in Temperature Sensor
– On-chip Voltage Regulator
– External and Internal Interrupt Sources
– Sleep Modes:
Idle, ADC Noise Reduction, Power-save, and Power-off
•
Package
– 18-pad DRDFN/ MLF
•
Operating Voltage (VFET): 2.1 - 6.0V
•
Operating Voltage (V
CC
):2.0 - 2.4V
•
Maximum Withstand Voltage (VFET): 12V
•
Maximum Withstand Voltage (High-voltage pins): 5V
•
Temperature Range: -20°C to 85°C
•
Speed Grade: 1 - 4 MHz
8-bit
Microcontroller
with 4K/8K
Bytes In-System
Programmable
Flash
ATmega4HVD
ATmega8HVD
Preliminary
8052B–AVR–09/08
Document Outline
- Features
- 1. Pin Configurations
- 2. Overview
- 3. Resources
- 4. Data Retention
- 5. About Code Examples
- 6. AVR CPU Core
- 7. AVR Memories
- 8. System Clock and Clock Options
- 8.1 Clock Systems and their Distribution
- 8.2 Clock Sources
- 8.3 Calibrated Fast RC Oscillator
- 8.4 Slow RC Oscillator
- 8.5 Ultra Low Power RC Oscillator
- 8.6 CPU, I/O, Flash, and ADC Clock
- 8.7 Watchdog Timer and Battery Protection
- 8.8 Clock Startup Sequence
- 8.9 Clock Output
- 8.10 System Clock Prescaler
- 8.11 ADC Clock Prescaler
- 8.12 OSI – Oscillator Sampling Interface
- 8.13 Register Description
- 9. Power Management and Sleep Modes
- 10. System Control and Reset
- 11. Interrupts
- 12. External Interrupt
- 13. High Voltage I/O Ports
- 14. Low Voltage I/O-Ports
- 15. Timer/Counter0 and Timer/Counter1 Prescalers
- 16. Timer/Counter(T/C0,T/C1)
- 16.1 Features
- 16.2 Overview
- 16.3 Timer/Counter Clock Sources
- 16.4 Counter Unit
- 16.5 Modes of Operation
- 16.6 Input Capture Unit
- 16.7 Output Compare Unit
- 16.8 Timer/Counter Timing Diagrams
- 16.9 Accessing Registers in 16-bit Mode
- 16.10 Register Description
- 16.10.1 TCCRnA – Timer/Counter n Control Register A
- 16.10.2 TCNTnL – Timer/Counter n Register Low Byte
- 16.10.3 TCNTnH – Timer/Counter n Register High Byte
- 16.10.4 OCRnA – Timer/Counter n Output Compare Register A
- 16.10.5 OCRnB – Timer/Counter n Output Compare Register B
- 16.10.6 TIMSKn – Timer/Counter n Interrupt Mask Register
- 16.10.7 TIFRn – Timer/Counter n Interrupt Flag Register
- 17. ADC - Analog-to-Digital Converter
- 18. Voltage Reference
- 19. Voltage Regulator
- 20. Battery Protection
- 20.1 Features
- 20.2 Overview
- 20.3 Short-circuit Protection
- 20.4 Discharge Over-current Protection
- 20.5 Charge Over-current Protection
- 20.6 External Protection Input
- 20.7 Battery Protection CPU Interface
- 20.8 Register Description
- 20.8.1 BPPLR – Battery Protection Parameter Lock Register
- 20.8.2 BPCR – Battery Protection Control Register
- 20.8.3 BPSCTR – Battery Protection Short-current Timing Register
- 20.8.4 BPOCTR – Battery Protection Over-current Timing Register
- 20.8.5 BPSCD – Battery Protection Short-circuit Detection Level Register
- 20.8.6 BPDOCD – Battery Protection Discharge-Over-current Detection Level Register
- 20.8.7 BPCOCD – Battery Protection Charge-Over-current Detection Level Register
- 20.8.8 BPIMSK – Battery Protection Interrupt Mask Register
- 20.8.9 BPIFR – Battery Protection Interrupt Flag Register
- 21. FET Control
- 22. debugWIRE On-chip Debug System
- 23. Self-Programming the Flash
- 24. Memory Programming
- 24.1 Program And Data Memory Lock Bits
- 24.2 Fuse Bits
- 24.3 Signature Bytes
- 24.4 Calibration Bytes
- 24.5 Page Size
- 24.6 Serial Downloading
- 24.7 High-voltage Serial Programming
- 24.8 High-voltage Serial Programming Algorithm
- 24.8.1 Enter High-voltage Serial Programming Mode
- 24.8.2 Considerations for Efficient Programming
- 24.8.3 Chip Erase
- 24.8.4 Programming the Flash
- 24.8.5 Programming the EEPROM
- 24.8.6 Reading the Flash
- 24.8.7 Reading the EEPROM
- 24.8.8 Programming and Reading the Fuse and Lock Bits
- 24.8.9 Reading the Signature Bytes and Calibration Byte
- 24.8.10 Power-off sequence
- 25. Operating Circuit
- 26. Electrical Characteristics
- 27. Typical Characteristics – TBD
- 28. Register Summary
- 29. Instruction Set Summary
- 30. Ordering Information
- 31. Packaging Information
- 32. Errata
- 33. Datasheet Revision History
- Table of Contents