Perancangan Sistem Pengukur Detak Jantung Secara Jarak Jauh Berbasis ATmega 8535 Dengan Tampilan PC
Lampiran
Universitas Sumatera Utara
LISTING PROGRAM
#include
#include
// Declare your global variables here
char buff[16];
unsigned int frekuensi,x;
unsigned int detak;
// External Interrupt 0 service routine
interrupt [EXT_INT0] void ext_int0_isr(void)
{
// Place your code here
frekuensi++;
}
#define DATA_REGISTER_EMPTY (1
Universitas Sumatera Utara
LISTING PROGRAM
#include
#include
// Declare your global variables here
char buff[16];
unsigned int frekuensi,x;
unsigned int detak;
// External Interrupt 0 service routine
interrupt [EXT_INT0] void ext_int0_isr(void)
{
// Place your code here
frekuensi++;
}
#define DATA_REGISTER_EMPTY (1