Sistem Rancang Bangun Brankas Berpassword Berbasis Mikrokontroller Atmega32 Menggunakan Program Code Vision AVR

LAMPIRAN

44
Universitas Sumatera Utara

GAMBAR RANGKAIAN ALAT

45
Universitas Sumatera Utara

LAMPIRAN
PROGRAM LENGKAP

/*******************************************************
This program was created by the
CodeWizardAVR V3.12 Advanced
Automatic Program Generator
© Copyright 1998-2014 Pavel Haiduc, HP InfoTech s.r.l.
http://www.hpinfotech.com

Project :

Version :
Date

: 05/25/2016

Author :
Company :
Comments:

Chip type

: ATmega32A

Program type

: Application

AVR Core Clock frequency: 8.000000 MHz
Memory model


: Small

External RAM size

:0

Data Stack size

: 512

*******************************************************/

#include
#include
#include

// Alphanumeric LCD functions
#include

46

Universitas Sumatera Utara

unsigned int a=0,b,c,d;
unsigned char temp[12], array[10], i=0;
unsigned int nilai=0;
unsigned int t;

// Declare your global variables here

/*void simpan_dlm_1variabel()
{
if (i==1){nilai=array[i];}
if (i>=2 && i