Datasheet complete atmega48/v, atmega88/v, atmega168/v (atmel)
Содержание
Общее описание
ATMega48, ATMega88, ATMega168 — низкопотребляющие 8 битные КМОП микроконтроллеры с AVR RISC архитектурой. Выполняя команды за один цикл, ATMega48, ATMega88, ATMega168 достигают производительности 1 MIPS при частоте задающего генератора 1 МГц, что позволяет разработчику оптимизировать отношение потребления к производительности.
AVR ядро объединяет богатую систему команд и 32 рабочих регистра общего назначения. Все 32 регистра непосредственно связаны с арифметико-логическим устройством (АЛУ), что позволяет получить доступ к двум независимым регистрам при выполнении одной команды. В результате эта архитектура позволяет обеспечить в десятки раз большую производительность, чем стандартная CISC архитектура.
ATMega48, ATMega88, ATMega168 имеют следующие характеристики: 4/8/16 КБ внутрисистемно программируемой Flash память программы, 256/512/512 байтную EEPROM память данных, 512/1К/1К байтное SRAM (статическое ОЗУ), 23 линии ввода — вывода общего применения, 32 рабочих регистра общего назначения, три гибких таймера/счетчика со схемой сравнения, внутренние и внешние источники прерывания, последовательный программируемый USART, байт- ориентированный последовательный 2- проводный интерфейс, 6 канальный АЦП (8- канальный у приборов в TQFP и MFL корпусах), 4 (6) канала которых имеют 10- битное разрешение, а 2- 8- битное, программируемый сторожевой таймер со встроенным генератором, SPI порт и пять программно инициализируемых режима пониженного потребления. В режиме Idle останавливается ядро, а SRAM, таймеры/счетчики, SPI порт и система прерываний продолжают функционировать. В Power-down режиме содержимое регистров сохраняется, но останавливается задающий генератор и отключаются все внутренние функции микропроцессора до тех пор, пока не произойдет прерывание или аппаратный сброс. В режиме Power-save асинхронные таймеры продолжают функционировать, позволяя отсчитывать временные интервалы в то время, когда микропроцессор находится в режиме сна. В режиме ADC Noise Reduction останавливается вычислительное ядро и все модули ввода-вывода, за исключением асинхронного таймера и самого АЦП, что позволяет минимизировать шумы в течение выполнения аналого-цифрового преобразования. В Standby режиме задающий генератор работает, в то время как остальная часть прибора бездействует. Это позволяет быстро сохранить возможность быстрого запуска приборов при одновременном снижении потребления.
Прибор изготовлен по высокоплотной энергонезависимой технологии изготовления памяти компании Atmel. Встроенная ISP Flash позволяет перепрограммировать память программы в системе через последовательный SPI интерфейс программой-загрузчиком, выполняемой в AVR ядре, или обычным программатором энергонезависимой памяти. Программа-загрузчик способна загрузить данные по любому интерфейсу, имеющегося у микроконтроллера. Программа в загрузочном секторе продолжает выполняться даже при загрузке области памяти прикладной программы, обеспечивая реальный режим «считывания при записи». Объединив 8- битное RISK ядро и самопрограммирующейся внутри системы Flash памятью корпорация Atmel сделала приборы ATMega48, ATMega88, ATMega168 мощными микроконтроллерами, обеспечивающими большую гибкость и ценовую эффективность широкому кругу управляющих устройств.
Getting started with MiniCore
Ok, so you’re downloaded and installed MiniCore, but how to get started? Here’s a quick guide:
- Hook up your microcontroller as shown in the , or simply just plut it into an Arduino UNO board.
- Open the Tools > Board menu item, and select a MiniCore compatible microcontroller.
- If the BOD option is presented, you can select at what voltage the microcontroller will shut down at. Read more about BOD .
- Select your prefered clock frequency. 16 MHz is standard on most Arduino boards, including the Arduino UNO.
- Select what kind of programmer you’re using under the Programmers menu.
- If the Variants option is presented, you’ll have to specify what version of the microcontroller you’re using. E.g the ATmega328 and the ATmega328P got different device signatures, so selecting the wrong one will result in an error.
- Hit Burn Bootloader. If an LED is connected to pin PB5 (Arduino pin 13), it should flash twice every second.
- Now that the correct fuse settings is sat and the bootloader burnt, you can upload your code in two ways:
- Disconnect your programmer tool, and connect a USB to serial adapter to the microcontroller, like shown in the . Then select the correct serial port under the Tools menu, and click the Upload button. If you’re getting some kind of timeout error, it means your RX and TX pins are swapped, or your auto reset circuity isn’t working properly (the 100 nF capacitor on the reset line).
- Keep your programmer connected, and hold down the button while clicking Upload. This will erase the bootloader and upload your code using the programmer tool.
Your code should now be running on your microcontroller! If you experience any issues related to bootloader burning or serial uploading, please use or create an issue on Github.
Datasheets
ATmega48PA/88PA/168PAAVRВ Microcontroller with picoPowerВ TechnologyIntroductionВ The picoPower ATmega48PA/88PA/168PA is a low-power CMOS 8-bit microcontroller based on theВAVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, theВATmega48PA/88PA/168PA achieves throughputs close to 1 MIPS per MHz. This empowers systemdesigners to optimize the device for power consumption versus processing speed. FeatureВ High Performance, Low-Power AVR 8-Bit Microcontroller FamilyAdvanced RISC Architecture – 131 Powerful instructions– Most single clock cycle execution– 32 x 8 General purpose working registers– Fully static operation– Up to 20 MIPS throughput at 20 MHz– On-chip 2-cycle multiplier High Endurance Nonvolatile Memory Segments– 4K/8K/16K Bytes of in-system self-programmable Flash program memory– 256/512/512 Bytes EEPROM– 512/1K/1K Bytes internal SRAM– Write/erase cycles: 10,000 Flash/100,000 EEPROM– Data retention: 20 years at 85В°C/100 years at 25В°C(1)– Optional boot code section with independent lock bits In-system programming by on-chip boot program True read-while-write operation– Programming lock for software security QTouch Library Support …
ATmega48PA/88PA/168PA — Summary Datasheet
PDF, 439 Кб, Файл опубликован: 10 дек 2016
Выписка из документа
8-bit AVR Microcontrollers ATmega48PA/88PA/168PADATASHEET SUMMARY IntroductionВ В The Atmel picoPower ATmega48PA/88PA/168PA is a low-power CMOS 8bit microcontroller based on the AVRВ enhanced RISC architecture. Byexecuting powerful instructions in a single clock cycle, the ATmega48PA/88PA/168PA achieves throughputs close to 1MIPS per MHz. This empowerssystem designer to optimize the device for power consumption versusprocessing speed. FeatureHigh Performance, Low Power AtmelВAVRВ 8-Bit Microcontroller Family Advanced RISC Architecture– 131 Powerful Instructions– Most Single Clock Cycle Execution– 32 x 8 General Purpose Working Registers– Fully Static Operation– Up to 20 MIPS Throughput at 20MHz– On-chip 2-cycle Multiplier High Endurance Non-volatile Memory Segments– 4K/8K/16KBytes of In-System Self-Programmable Flash programMemory– 256/512/512Bytes EEPROM– 512/1K/1KBytes Internal SRAM– Write/Erase Cycles: 10,000 Flash/100,000 EEPROM– Data Retention: 20 years at 85В°C/100 years at 25В°C(1)– Optional Boot Code Section with Independent Lock Bits In-System Programming by On-chip Boot Program True Read-While-Write Operation– Programming Lock for Software Security AtmelВ QTouchВ Library Support– Capacitive Touch Buttons, Sliders and Wheels …
How to install
Boards Manager Installation
This installation method requires Arduino IDE version 1.6.4 or greater.
-
Open the Arduino IDE.
-
Open the File > Preferences menu item.
-
Enter the following URL in Additional Boards Manager URLs:
-
Open the Tools > Board > Boards Manager… menu item.
-
Wait for the platform indexes to finish downloading.
-
Scroll down until you see the MiniCore entry and click on it.
-
Click Install.
-
After installation is complete close the Boards Manager window.
-
Note: If you plan to use the *PB series, you need the latest version of the Arduino toolchain. This toolchain is available through IDE 1.8.6 or newer. Here’s how you install/enable the toolchain:
- Open the Tools > Board > Boards Manager… menu item.
- Wait for the platform indexes to finish downloading.
- The top is named Arduino AVR boards. Click on this item.
- Make sure the latest version is installed and selected
- Close the Boards Manager window.
Manual Installation
Click on the «Download ZIP» button in the upper right corner. Exctract the ZIP file, and move the extracted folder to the location «~/Documents/Arduino/hardware». Create the «hardware» folder if it doesn’t exist.
Open Arduino IDE, and a new category in the boards menu called «MiniCore» will show up.
Модельный ряд для этого даташита
ATmega168
ATmega168-20AU ATmega168-20AUR ATmega168-20MU ATmega168-20MUR ATmega168-20PU
ATmega168V
ATmega168V-10AU ATmega168V-10AUR(4) ATmega168V-10MU ATmega168V-10MUR(4) ATmega168V-10PU
ATmega48
ATmega48-20AU ATmega48-20AUR ATmega48-20MMH ATmega48-20MMHR ATmega48-20MMU ATmega48-20MMUR ATmega48-20MU ATmega48-20MUR ATmega48-20PU
ATmega48V
ATmega48V-10AU ATmega48V-10AUR ATmega48V-10MMH ATmega48V-10MMHR ATmega48V-10MMU ATmega48V-10MMUR ATmega48V-10MU ATmega48V-10MUR ATmega48V-10PU
ATmega88
ATmega88-20AU ATmega88-20AUR ATmega88-20MU ATmega88-20MUR ATmega88-20PU
ATmega88V
ATmega88V-10AU ATmega88V-10AUR ATmega88V-10MU ATmega88V-10MUR ATmega88V-10PU
Write to own flash
MiniCore implements @majekw fork of Optiboot, which enables flash writing functionality within the running application. This means that content from e.g. a sensor can be stored in the flash memory directly, without the need of external memory. Flash memory is much faster than EEPROM, and can handle about 10 000 write cycles.
To enable this feature your original bootloader needs to be replaced by the new one. Simply hit «Burn Bootloader», and it’s done!
Check out the Optiboot flasher example for more info about how this feature works, and how you can try it on your MiniCore compatible microcontroller.
Supported clock frequencies
MiniCore supports a variety of different clock frequencies. Select the microcontroller in the boards menu, then select the clock frequency. You’ll have to hit «Burn bootloader» in order to set the correct fuses and upload the correct bootloader.
Make sure you connect an ISP programmer, and select the correct one in the «Programmers» menu. For time critical operations an external crystal/oscillator is recommended.
You might experience upload issues when using the internal oscillator. It’s factory calibrated but may be a little «off» depending on the calibration, ambient temperature and operating voltage. If uploading failes while using the 8 MHz internal oscillator you have these options:
- Edit the baudrate line in the boards.txt file, and choose either 115200, 57600, 38400 or 19200 baud.
- Upload the code using a programmer (USBasp, USBtinyISP etc.) or skip the bootloader by holding down the shift key while clicking the «Upload» button
- Use the 4, 2 or 1 MHz option instead
Frequency | Oscillator type | Comment |
---|---|---|
16 MHz | External crystal/oscillator | Default clock on most AVR based Arduino boards and MiniCore |
20 MHz | External crystal/oscillator | |
18.4320 MHz | External crystal/oscillator | Great clock for UART communication with no error |
14.7456 MHz | External crystal/oscillator | Great clock for UART communication with no error |
12 MHz | External crystal/oscillator | Useful when working with USB 1.1 (12 Mbit/s) |
11.0592 MHz | External crystal/oscillator | Great clock for UART communication with no error |
8 MHz | External crystal/oscillator | Common clock when working with 3.3V |
7.3728 MHz | External crystal/oscillator | Great clock for UART communication with no error |
4 MHz | External crystal/oscillator | |
3.6864 MHz | External crystal/oscillator | Great clock for UART communication with no error |
2 MHz | External crystal/oscillator | |
1.8432 MHz | External crystal/oscillator | Great clock for UART communication with no error |
1 MHz | External crystal/oscillator | |
8 MHz | Internal oscillator | Might cause UART upload issues. See comment above this table |
4 MHz | Internal oscillator | Derived from the 8 MHz internal oscillator |
2 MHz | Internal oscillator | Derived from the 8 MHz internal oscillator |
1 MHz | Internal oscillator | Derived from the 8 MHz internal oscillator |
Модельный ряд для этого даташита
ATmega168
ATmega168-20AU ATmega168-20AUR ATmega168-20MU ATmega168-20MUR ATmega168-20PU
ATmega168V
ATmega168V-10AU ATmega168V-10AUR(4) ATmega168V-10MU ATmega168V-10MUR(4) ATmega168V-10PU
ATmega48
ATmega48-20AU ATmega48-20AUR ATmega48-20MMH ATmega48-20MMHR ATmega48-20MMU ATmega48-20MMUR ATmega48-20MU ATmega48-20MUR ATmega48-20PU
ATmega48V
ATmega48V-10AU ATmega48V-10AUR ATmega48V-10MMH ATmega48V-10MMHR ATmega48V-10MMU ATmega48V-10MMUR ATmega48V-10MU ATmega48V-10MUR ATmega48V-10PU
ATmega88
ATmega88-20AU ATmega88-20AUR ATmega88-20MU ATmega88-20MUR ATmega88-20PU
ATmega88V
ATmega88V-10AU ATmega88V-10AUR ATmega88V-10MU ATmega88V-10MUR ATmega88V-10PU
Параметры
Parameters / Models | ATMEGA48PA-15AZ | ATMEGA48PA-15MZ | ATMEGA48PA-AN | ATMEGA48PA-ANR | ATMEGA48PA-AU | ATMEGA48PA-AUA8 | ATMEGA48PA-AUR | ATMEGA48PA-CCU | ATMEGA48PA-CCUR | ATMEGA48PA-MMH | ATMEGA48PA-MMHR | ATMEGA48PA-MMN | ATMEGA48PA-MMNR | ATMEGA48PA-MN | ATMEGA48PA-MNR | ATMEGA48PA-MU | ATMEGA48PA-MUR | ATMEGA48PA-PN | ATMEGA48PA-PU |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
# of Comparators | 1 | ||||||||||||||||||
ADC Input | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | |
ADC with Computation | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | |
ADCC with Computation | No | ||||||||||||||||||
Angular Timer | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No |
Архитектура | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 8 |
CPU | 8-bit AVR | ||||||||||||||||||
CPU Type | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | 8-bit AVR | |
CRC | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | |
CRC/Scan | No | ||||||||||||||||||
Class B Hardware | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | |
EEPROM / HEF | 256 | ||||||||||||||||||
Emulated EEPROM in Flash | 256 | 256 | 256 | 256 | 256 | 256 | 256 | 256 | 256 | 256 | 256 | 256 | 256 | 256 | 256 | 256 | 256 | 256 | |
High Voltage Capable | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No |
I2C | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
Internal Oscillator | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
Internal Voltage Reference, Bandgap | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
Lead Count | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 28 | 28 | 28 | 28 | 32 | 32 | 32 | 32 | 28 | 28 | |
Math Accelerator | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No |
Max # PWM outputs, including complementary outputs | 6 | ||||||||||||||||||
Max 16 Bit Digital Timers | 1 | ||||||||||||||||||
Max 16-Bit Digital Timers | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |
Max 8 Bit Digital Timers | 2 | ||||||||||||||||||
Max 8-Bit Digital Timers | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | |
Max A/D Resolution, bits | 10 | ||||||||||||||||||
Max ADC Resolution, Bits | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | |
Max CPU Speed, МГц | 20 | 20 | 20 | 20 | 20 | 20 | 20 | 20 | 20 | 20 | 20 | 20 | 20 | 20 | 20 | 20 | 20 | 20 | |
Max PWM outputs, including complementary | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | |
Max. CPU Speed MHz | 20 | ||||||||||||||||||
Количество компараторов | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |
Рабочий диапазон температур, °C | от -40 до +85 | ||||||||||||||||||
Operation Voltage Max, В | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | 5.5 | |
Operation Voltage Max.(V) | 5.5 | ||||||||||||||||||
Operation Voltage Min, В | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | 1.8 | |
Operation Voltage Min.(V) | 1.8 | ||||||||||||||||||
Package Width | 7x7x1mm | 5x5x0.9mm | 7x7x1mm | 7x7x1mm | 7x7x1mm | 7x7x1mm | 4x4x0.6mm | 4x4x0.6mm | 4x4x1mm | 4x4x1mm | 4x4x1mm | 4x4x1mm | 5x5x1mm | 5x5x1mm | 5x5x1mm | 5x5x1mm | .300in | .300in | |
Peripheral Pin Select, PPS | No | ||||||||||||||||||
Peripheral Pin Select / Pin Muxing | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | |
Pin count | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 | 32 |
Размер памяти программ, KB | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 |
RAM, bytes | 512 | ||||||||||||||||||
SPI | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 |
SRAM, Bytes | 512 | 512 | 512 | 512 | 512 | 512 | 512 | 512 | 512 | 512 | 512 | 512 | 512 | 512 | 512 | 512 | 512 | 512 | |
Temp Range Max | 85 | 85 | 85 | 85 | 85 | 85 | 85 | 85 | 85 | 85 | 85 | 85 | 85 | 85 | 85 | 85 | 85 | 85 | |
Temp Range Min | -40 | -40 | -40 | -40 | -40 | -40 | -40 | -40 | -40 | -40 | -40 | -40 | -40 | -40 | -40 | -40 | -40 | -40 | |
Temp. Range Max. | 85 | ||||||||||||||||||
Temp. Range Min. | -40 | ||||||||||||||||||
Total # of A/D channels | 8 | ||||||||||||||||||
UART | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
Windowed Watchdog Timer, WWDT | No | ||||||||||||||||||
Zero Cross detect | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No |