winavr tutorial

1,783 views

Published on

winavr tutorial in indonesian language

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,783
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
50
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

winavr tutorial

  1. 1. WinAvr Tutorial [email_address] http://lecturer.eepis-its.edu/~hendri
  2. 2. Winavr adalah toolset crosscompiler untuk mikrokontroller avr yang melengkapi dirinya dengan avrgcc(complier), programmer notepad(editor), avrdude (downloader/programmer)
  3. 3. 1. Jalankan programmer notepad
  4. 4. Tampilan programmer notepad
  5. 5. 2. Ketik program #include <avr/io.h> #include <util/delay.h> int main(void) { DDRD=0xFF; while(1) { PORTD=0x00; _delay_ms(200);_delay_ms(200); _delay_ms(200); PORTD=0xFF; _delay_ms(200);_delay_ms(200); _delay_ms(200); } }
  6. 6. 3. Jalankan MFILE
  7. 7. 4. Pilih File utama
  8. 8. 5. Tentukan device yang diprogram
  9. 9. 6. Pilih Optimasi (code,size)
  10. 10. 7. Pilih Downloader yang sesuai
  11. 11. 8. Pilih Sambungan ke PC
  12. 12. 9. Simpan pada folder program
  13. 13. 10. Build file hexa
  14. 14. 11. Hasil di command prompt
  15. 15. 12. Download program

×