1 / 33

CODEVISION AVR C

CODEVISION AVR C. CODEVISION AVR C. Code vision AVR merupakan compiller bagi bahasa pemrograman C, sistem IDEAPG ( Integrated Development Environment and Automatic Program Generator ) yang di disain khusus untuk keluarga mikrokontroler Atmel AVR dapat mempermudah pemrograman C.

abiola
Download Presentation

CODEVISION AVR C

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. CODEVISION AVR C

  2. CODEVISION AVR C • Code vision AVR merupakancompillerbagibahasapemrograman C, sistem IDEAPG (Integrated Development Environment and Automatic Program Generator) yang didisainkhususuntukkeluargamikrokontroler Atmel AVR dapatmempermudahpemrograman C.

  3. CODEVISION AVR C • Sebagai CompillerC, Code Vision AVR telahmengandunghampirsemuaelemenbahasapemrograman ANSI C. Dengandisediakannyabeberapafiturtambahan yang merupakankebutuhandariarsitektur AVR dansistem embedded.

  4. CODEVISION AVR C • Sistem Integrated Development Environment (IDE) telahdisediakandalam Chip AVR padaSystem Programmer Software yang memungkinkanmentransfer program secaraotomatiskedalamchipmikrokontrolersetelahproseskompilasisukses.

  5. CODEVISION AVR C • System ProgramerSofwaredidisainuntukbekerjasecarakonjungsidenganproduk Atmel STK500/AVRISP/AVRProg (AVR910 application note), sistem Kanda, STK200+/300, Dontronics DT006, Vogel Elektronik VTEC-ISP, futurlec JRAVRdanMicro Tronics ATCPU/Mega2000 development boards.

  6. New Project Run CodeVision

  7. Chip select

  8. configuration chip select Chip ATMEGA 8535 Clock 11.059200 Mhz

  9. Untuk port gunakan PORTC untuk LED PORTC.0 – PORTC.7 = output (0)

  10. Save and Generate

  11. Save File – make folder and files

  12. Display

  13. Configuration ready compile

  14. CODE PROGRAM Untukmenyalakansebuah led misalkanpadaposisiPORTC.0 (PORTC memiliki 8 buah PIN. Pin 0-7), makaDapatdituliskanpadaakhir program yang paling bawah; while(1){ //Place your code here) PORTC.0=0; PORTC.1=1; PORTC.2=1; PORTC.3=1; PORTC.4=1; PORTC.5=1; PORTC.6=1; PORTC.7=1; } }

  15. Penulisan code dengan Cara lain : PORTC= 0b1111110; Atau PORTC = 0x7E ;// 1111110

  16. 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....)

  17. Configuration PORT Programmer

  18. Choice : AVR Chip programmer type COM PORT BAUD RATE

  19. COMPILER AND BUILD ALL PROGRAM Or Shift F9

  20. Connecting USB Downloader - PC/Laptop - Microcontroller, And....

  21. Process Downloading.........

  22. FINISH

  23. Solution : • Check COM PORT • Check Baud Rate • Check Connection Downloader • Check Prog/Serial TTL select Error DOWNLOADING

  24. CV AVR WITH PROTEUS OPEN PROGRAM ISIS PROTEUS PROFESSIONAL

  25. synchronization cv avr with proteus Creat Project and Design Double click pict microcntroller

  26. synchronization cv avr with proteus Select clock frequency Select program file, (HEX file type)

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

  28. TASK BUATLAH project dengan system menyalakan led hanya pada PORTC.1, PORTC.3, PORTC.5, dan PORTC.7 . PORT Yang lainnya MATI

  29. TASK BUATLAH project dengan system menyalakan led hanya pada PORTC.0, PORTC.2, PORTC.4,PORTC.6ndan PORTC.8 . PORT Yang lainnya MATI

  30. TASK BUATLAH project dengan system menyalakan led hanya pada PORTC.1, PORTC.4, PORTC.6, dan PORTC.7. PORT Yang lainnya MATI. Dengan menggunakan cara pengalamatan HEXA.

  31. TASK BUATLAH project dengan system menyalakan led hanya pada PORTC.7, PORTC.6, PORTC.3, PORTC.1 dan PORTC.0. PORT Yang lainnya MATI.

More Related