Pir With Atmega328.docx

  • Uploaded by: Dwiky Firmansyah
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Pir With Atmega328.docx as PDF for free.

More details

  • Words: 55
  • Pages: 1
#include #define F_CPU 8000000UL #include int main() { DDRC=0x00; //configuring PortC pin 0 as input PORTC=0x00; DDRB=0x01; // configuring PortB as output PORTB=0x00; // buzzer/LED off while(1) { if((PINC&(1<<0))) // check for sensor pin PC.0 using bit { PORTB=0x01; // buzzer /LED on _delay_ms(5000); PORTB=0x00; } else PORTB=0x00; // buzzer/LED off } return 0; }

Related Documents

Examenes Pir
November 2019 10
Examen Pir 2000
November 2019 13
Examen Pir Comentado 2005
November 2019 8
Pir Loc.18
August 2019 15
Blank Pir New
November 2019 13

More Documents from ""