Perancangan Kulkas Mini Menggunakan Peltier Super Cooler Berbasis Mikrokontroller Atmega32

41

Lampiran 1. Konfigurasi Program Menghitung Data Komputer (Assembly)
/*******************************************************
This program was created by the
CodeWizardAVR V2.60 Standard
Automatic Program Generator
© Copyright 1998-2012 Pavel Haiduc, HP InfoTech s.r.l.
http://www.hpinfotech.com

Project :
Version :
Date :
Author :
Company :
Comments:

Chip type

: ATmega32


Program type

: Application

AVR Core Clock frequency: 16.000000 MHz
Memory model

: Small

External RAM size

:0

Data Stack size

: 128

*******************************************************/
#include
#include

#define led PORTC.7
#define peltier PORTC.6

// Declare your global variables here
unsigned char fc_l, fc_h;

// Standard Input/Output functions
#include

Universitas Sumatera Utara

42

// Timer1 overflow interrupt service routine
interrupt [TIM1_OVF] void timer1_ovf_isr(void)
{
// Reinitialize Timer1 value
TCNT1H=0x9E58 >> 8;
TCNT1L=0x9E58 & 0xff;
// Place your code here

led = ! led;
}

#define ADC_VREF_TYPE ((1