Part 5 training input
This presentation is the property of its rightful owner.
Sponsored Links
1 / 39

PART 5 TRAINING INPUT PowerPoint PPT Presentation


  • 85 Views
  • Uploaded on
  • Presentation posted in: General

PART 5 TRAINING INPUT. Dosen : Dwisnanto Putro , ST, M.Eng. 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.

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Part 5 training input

PART 5TRAINING INPUT

Dosen : DwisnantoPutro, ST, M.Eng


Part 5 training input

Input

  • Input 1 = Mikrokontrolermenerima Input berupategangan (+)

  • Input 0 = Mikrokontrolermenerima Input berupategangan (–) ataupun Ground

Published By Stefanikha69


Cara kerja push button

Cara kerja Push Button

Published By Stefanikha69


System push button

System Push Button

Published By Stefanikha69


Jenis jenis push button

Jenis-Jenis Push Button

Published By Stefanikha69


Rangkaian push button

Rangkaian Push Button

  • Mikrokontrolermenerimasinyal Ground

Published By Stefanikha69


Rangkaian push button pada uc

Rangkaian Push Button PadaUc

Published By Stefanikha69


Struktur program kode input

Struktur program kode INPUT

if (syarat ==)

{statement/proses;}

Published By Stefanikha69


Struktur program kode input else

Struktur program kode INPUT else

if (syarat ==)

{statement/proses;}

else

{statement/proses;}

Published By Stefanikha69


New project

New Project

Run CodeVision

Published By Stefanikha69


Part 5 training input

Published By Stefanikha69


Part 5 training input

Chip select

Published By Stefanikha69


Part 5 training input

configuration chip select

  • Chip ATMEGA 8535

  • Clock 8.000000 Mhz

Published By Stefanikha69


Part 5 training input

  • Untuk port gunakan PORTC untuk LED

    PORTC.0 – PORTC.7 = output (0)

Published By Stefanikha69


Part 5 training input

Gunakan PORTD.2 dan PORTD.3 sebagai Input pullup (P)

Published By Stefanikha69


Part 5 training input

Save and Generate

Published By Stefanikha69


Part 5 training input

Save File – make folder and files

Published By Stefanikha69


Part 5 training input

Display

Published By Stefanikha69


Configuration ready compile

Configuration ready compile

Published By Stefanikha69


Part 5 training input

Published By Stefanikha69


Code program

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 Stefanikha69


Part 5 training input

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 Stefanikha69


Configuration port programmer

Configuration PORT Programmer

Published By Stefanikha69


Part 5 training input

Choice :

  • AVR Chip programmer type

  • COM PORT

  • BAUD RATE

Published By Stefanikha69


Compiler and build all program

COMPILER AND BUILD ALL PROGRAM

Or Shift F9

Published By Stefanikha69


Part 5 training input

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

Published By Stefanikha69


Part 5 training input

Process Downloading.........

Published By Stefanikha69


Part 5 training input

FINISH

Published By Stefanikha69


Part 5 training input

  • Solution :

  • Check COM PORT

  • Check Baud Rate

  • Check Connection Downloader

  • Check Prog/Serial TTL select

Error DOWNLOADING

Published By Stefanikha69


Cv avr with proteus

CV AVR WITH PROTEUS

OPEN PROGRAM ISIS PROTEUS PROFESSIONAL

Published By Stefanikha69


Synchronization cv avr with proteus

synchronization cv avr with proteus

  • Creat Project and Design

  • Double click pict microcntroller

Published By Stefanikha69


Synchronization cv avr with proteus1

synchronization cv avr with proteus

Select clock frequency

Select program file, (HEX file type)

Published By Stefanikha69


Synchronization cv avr with proteus2

synchronization cv avr with proteus

  • Running ISIS Proteus

  • FINISH...

    Created by. DwisnantoPutro, Manado, September 2012

Published By Stefanikha69


Part 5 training input

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 Stefanikha69


Part 5 training input

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 Stefanikha69


Part 5 training input

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 Stefanikha69


Part 5 training input

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 Stefanikha69


Part 5 training input

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 Stefanikha69


Part 5 training input

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 Stefanikha69


  • Login