420 likes | 559 Views
AVR 8-bitMicrocontroller. AVR ialah singkatan dari Alf and Vegard RISC Microcontroller. Apakah AVR?. Single cycle execution Up to 16 MIPS at 16 MHz 32K Bytes ISP Flash, 2K Byte SRAM, 1024 Bytes EEPROM (ATmega32) Two 8-bit Timer/Counter, separate prescaler , and Compare Mode
E N D
AVR ialahsingkatandari Alf and Vegard RISC Microcontroller Apakah AVR?
Single cycle execution Up to 16 MIPS at 16 MHz 32K Bytes ISP Flash, 2K Byte SRAM, 1024 Bytes EEPROM (ATmega32) Two 8-bit Timer/Counter, separate prescaler, and Compare Mode One 16-bit Timer/Counter, Compare Mode Four PWM channel 8-channel, 10-bit ADC Programmable serial USART Master/Slave SPI serial interface Fitur-fiturstandar AVR
Ketersediaandipasarbanyak Fitur yang lengkapdenganharga yang murah Sudahmulaibanyak yang menggunakan AVR Referensimengenai AVR banyaktersedia Mengapa AVR?
Konfigurasi pin (DIP 40) Fitur-fiturstandar AVR
ContohSistem Minimum AVR Fitur-fiturstandar AVR
C programming language RISC assembly Pemrograman
CodeVision AVR C compiler WinAVR AVR studio IAR Compiler
SFR I/O External Interrupt Timer/Counter ADC I2C USART SPI AVR lebihdalam
Setiapmodulpada AVR memiliki register-register khususmasing-masing Register-register inidigunakanuntukkeperluankonfigurasi, setting, dan monitoring SFR (Special function register)
AVR ATmega32 memiliki 32 I/O port Port-port inibernama port A, B, C, dan D Setiap port memilikitiga register: DDRx, PORTx, danPINx I/O (Input/output)
Skematikumum I/O I/O (Input/output)
Konfigurasi Register I/O (Input/output)
Fungsialternatiftiap I/O I/O (Input/output)
Fungsialternatiftiap I/O I/O (Input/output)
Fungsialternatiftiap I/O I/O (Input/output)
Fungsialternatiftiap I/O I/O (Input/output)
Apaituinterupsi? • Sumberinterupsi: • Internal • Eksternal • Pin-pin yang memilikifungsialternatifini: INT0, INT1,dan INT2 External Interrupt
Register External Interrupt
Register External Interrupt
Apaitu Timer/Counter? • Jenis Timer/Counter: • Timer/Counter 8-bit (Timer/Counter0 & 2) • Timer/Counter 16-bit(Timer/Counter1) Timer/counter
Register Timer/counter
Apaitu ADC? Rangkaianeksternalpendukung ADC ADC (Analog to digital)
Fitur ADC (Analog to digital)
Rangkaianeksternal ADC (Analog to digital)
Apaitu I2C? Pada AVR modul I2C built-in dinamakan TWI (Two Wire Interface) I2C (Inter ic communication)
Fitur I2C (Inter ic communication)
Interkoneksi I2C (Inter ic communication)
Terminologi I2C (Inter ic communication)
Format data I2C (Inter ic communication)
Terminologi I2C (Inter ic communication)
Apaitu USART? USART
Fitur USART
Diagram blok USART
Apaitu SPI? SPI (serial peripheral interface)
Fitur SPI (serial peripheral interface)
Interkoneksi SPI (serial peripheral interface)
Direction pin yang harusdi set SPI (serial peripheral interface)