1 / 39

PART 5 TRAINING INPUT

PART 5 TRAINING INPUT. Input. Input 1 = Mikrokontroler menerima Input berupa tegangan (+) Input 0 = Mikrokontroler menerima Input berupa tegangan (–) ataupun Ground. Cara kerja Push Button. System Push Button. Jenis-Jenis Push Button. Rangkaian Push Button.

tameka
Download Presentation

PART 5 TRAINING INPUT

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PART 5TRAINING INPUT

  2. Input • Input 1 = Mikrokontrolermenerima Input berupategangan (+) • Input 0 = Mikrokontrolermenerima Input berupategangan (–) ataupun Ground Published by. imeldaflorensia91

  3. Cara kerja Push Button Published by. imeldaflorensia91

  4. System Push Button Published by. imeldaflorensia91

  5. Jenis-Jenis Push Button Published by. imeldaflorensia91

  6. Rangkaian Push Button • Mikrokontrolermenerimasinyal Ground Published by. imeldaflorensia91

  7. Rangkaian Push Button PadaUc Published by. imeldaflorensia91

  8. Struktur program kode INPUT if (syarat ==) {statement/proses;} Published by. imeldaflorensia91

  9. Struktur program kode INPUT else if (syarat ==) {statement/proses;} else {statement/proses;} Published by. imeldaflorensia91

  10. New Project Run CodeVision Published by. imeldaflorensia91

  11. Published by. imeldaflorensia91

  12. Chip select Published by. imeldaflorensia91

  13. configuration chip select Chip ATMEGA 8535 Clock 8.000000 Mhz Published by. imeldaflorensia91

  14. Untuk port gunakan PORTC untuk LED PORTC.0 – PORTC.7 = output (0) Published by. imeldaflorensia91

  15. Gunakan PORTD.2 dan PORTD.3 sebagai Input pullup (P) Published by. imeldaflorensia91

  16. Save and Generate Published by. imeldaflorensia91

  17. Save File – make folder and files Published by. imeldaflorensia91

  18. Display Published by. imeldaflorensia91

  19. Configuration ready compile Published by. imeldaflorensia91

  20. Published by. imeldaflorensia91

  21. CODE PROGRAM Untukmenyalakanled padaposisiPORTC .0dengan syaratharusmenekan pushbutton PORTD.2; while(1){ if (PIND.2==0) // jika PIND.2 ditekan {PORTC=0b11111110;} // led nyala PORTC.0 } } Published by. imeldaflorensia91

  22. SETTING USB – DOWNLOADER : INSTALL DEVICE USB DOWNLOADER CONNECT USB DOWNLOADER TO PC/LAPTOP SETTING COM PORT: COMPUTER -> MANAGE -> DEVICE MANAGER PORT (COM &LPT) -> PROLIFIC USB TO SERIAL COMM PORT (COM....) Published by. imeldaflorensia91

  23. Configuration PORT Programmer Published by. imeldaflorensia91

  24. Choice : AVR Chip programmer type COM PORT BAUD RATE Published by. imeldaflorensia91

  25. COMPILER AND BUILD ALL PROGRAM Or Shift F9 Published by. imeldaflorensia91

  26. Connecting USB Downloader - PC/Laptop - Microcontroller, And.... Published by. imeldaflorensia91

  27. Process Downloading......... Published by. imeldaflorensia91

  28. FINISH Published by. imeldaflorensia91

  29. Solution : • Check COM PORT • Check Baud Rate • Check Connection Downloader • Check Prog/Serial TTL select Error DOWNLOADING Published by. imeldaflorensia91

  30. CV AVR WITH PROTEUS OPEN PROGRAM ISIS PROTEUS PROFESSIONAL Published by. imeldaflorensia91

  31. synchronization cv avr with proteus Creat Project and Design Double click pict microcntroller Published by. imeldaflorensia91

  32. synchronization cv avr with proteus Select clock frequency Select program file, (HEX file type) Published by. imeldaflorensia91

  33. synchronization cv avr with proteus • Running ISIS Proteus • FINISH... Created by. DwisnantoPutro, Manado, September 2012 Published by. imeldaflorensia91

  34. TASK BUATLAH project dengan system: JIKA PUSH BUTTON PADA PORTD.2 DITEKAN MAKA LED pada PORTC.2 MENYALA JIKA TIDAK DITEKAN PUSHBUTTON PADA PORTD.2 MAKA LED PADA PORTC.2 MATI Published by. imeldaflorensia91

  35. TASK BUATLAH project dengan system: JIKA PUSH BUTTON PADA PORTD.2 DITEKAN MAKA LED pada PORTC.2 MENYALA JIKA PUSH BUTTON PADA PORTD.3 DITEKAN MAKA LED pada PORTC.3 MENYALA Published by. imeldaflorensia91

  36. TASK BUATLAH project dengan system: JIKA PUSH BUTTON PADA PORTD.2 DITEKAN MAKA LED pada PORTC.2 MENYALA JIKA PUSH BUTTON PADA PORTD.3 DITEKAN MAKA LED pada PORTC.3 MENYALA JIKA TIDAK DITEKAN PUSHBUTTON PADA PORTD.2 dan PORTD.3 MAKA LED PADA PORTC.2 DAN PORTC.3 MATI Published by. imeldaflorensia91

  37. TASK BUATLAH project dengan system: JIKA PUSH BUTTON PADA PORTD.2 DITEKAN MAKA LED pada PORTC.2 MENYALA BERKEDIP SEBANYAK 2 KALI JIKA PUSH BUTTON PADA PORTD.3 DITEKAN MAKA LED pada PORTC.3 MENYALA BERKEDIP SEBANYAK 3 KALI DENGAN DELAY = 300 ms Published by. imeldaflorensia91

  38. TASK BUATLAH project dengan system: JIKA PUSH BUTTON PADA PORTD.2 DITEKAN MAKA LED pada PORTC.2 MENYALA JIKA PUSH BUTTON PADA PORTD.3 DITEKAN MAKA LED pada PORTC.3 MENYALA JIKA PUSH BUTTON PADA PORTD.2 DAN PORTD.3 DITEKAN BERSAMAAN MAKA LED SEMUA MATI Published by. imeldaflorensia91

  39. TASK BUATLAH project dengan system: JIKA PUSH BUTTON PADA PORTD.2 DITEKAN MAKA terjadi proses LED berjalan pada PORTC.0 s/d PORTC.7 JIKA PUSH BUTTON PADA PORTD.3 DITEKAN MAKA terjadi proses LED berjalan pada PORTC.7 s/d PORTC.0 Published by. imeldaflorensia91

More Related